WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Best boot code for tinycore 4.7.7  (Read 4556 times)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Best boot code for tinycore 4.7.7
« on: April 04, 2014, 02:39:50 AM »
i need to start my tiny core in 15 to 20 seconds with my java application. i am running only java application and my boot code that i use :-

linux /boot/vmlinuz quiet console=/dev/null libata.dma=0 tce=sda1 home=sda1 opt=sda1 noicons nodhcp
initrd /boot/core.gz

my tiny core is installed on 1 gb sd card
and i create a script to run my jar file in .X.d to auto start on boot.
problem is that when i boot it open my application about 33 to 35 seconds

Any suggestion Please

Malik Awan

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Best boot code for tinycore 4.7.7
« Reply #1 on: April 04, 2014, 03:12:51 AM »
Hi malikawan
I suggest you add the following boot codes:
Code: [Select]
printk.time=Y syslogThen open the  /var/log/messages  file. It will contain timing information allowing you to determine where the bottlenecks are.
I suspect you will find loading Java is slowing you down.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Best boot code for tinycore 4.7.7
« Reply #2 on: April 04, 2014, 03:36:18 AM »
Sir how can i determine where the bottlenecks are?
my printk.time=y syslog file is attached

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Best boot code for tinycore 4.7.7
« Reply #3 on: April 04, 2014, 05:00:20 AM »
Your log shows the boot only taking about 5 seconds up to the start of your Java app. And you have some ext4 corruption on your card.

So any slowness is either from your Java app, or from the bootloader loading the kernel slowly.
The only barriers that can stop you are the ones you create yourself.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Best boot code for tinycore 4.7.7
« Reply #4 on: April 04, 2014, 05:09:38 AM »
Sir where you find that boot start in 5 sec. Do you calculate the time by adding all fig or its present in file that boot time 5 sec

Malik Awan

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Best boot code for tinycore 4.7.7
« Reply #5 on: April 04, 2014, 05:46:21 AM »
[    4.736509] The number inside brackets shows time since kernel start. At that point the WM was up.

One second later your Java app starts.
The only barriers that can stop you are the ones you create yourself.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Best boot code for tinycore 4.7.7
« Reply #6 on: April 04, 2014, 06:28:51 AM »
When i manually start the java application after x it take 12 seconds so if my  boot start in 5 seconds its means 12+5 = 17 seconds so in 17 seconds my java application run after power on but its start 30 to 32 seconds now

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Best boot code for tinycore 4.7.7
« Reply #7 on: April 04, 2014, 06:51:13 AM »
You omitted the time before kernel boot in your equation, e.g. BIOS POST, bootloader, decompression.

Are you really referring to CorePlus?
If so why, if time seems to be crucial to you?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: Best boot code for tinycore 4.7.7
« Reply #8 on: April 04, 2014, 11:35:22 AM »
Hi malikawan
Quote
When i manually start the java application after x it take 12 seconds ...
Was the script to auto start your application disabled when you made that measurement? If it started and you then shut down
the application and then manually restarted it, your timing is not valid since your application was cached.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: Best boot code for tinycore 4.7.7
« Reply #9 on: April 07, 2014, 03:12:05 AM »
Thanx sir