WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: minimum time to boot tiny core X server  (Read 7178 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: minimum time to boot tiny core X server
« Reply #15 on: November 25, 2014, 04:59:28 AM »
@Misalf

If you disable the useBusybox function in tc-functions (replace the command inside with "true" for example, shells don't like empty functions), full process names should show in the bootchart.

@malikawan

What's unclear on the wiki page?
The only barriers that can stop you are the ones you create yourself.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #16 on: November 25, 2014, 05:15:51 AM »
Thanx for reply  curaga

after install  Bootchart-py.tcz what can i do to get  Bootchart just i install or do some configuration for geting Bootchart


sorry for bad english

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: minimum time to boot tiny core X server
« Reply #17 on: November 25, 2014, 05:23:05 AM »
As written in the wiki page, you need to remaster your initrd so that it gathers the required info. It's all written there.
The only barriers that can stop you are the ones you create yourself.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #18 on: November 25, 2014, 08:25:48 AM »
curaga thanx for reply but in wiki

 Extract to the initrd:
sudo tar -C /tmp/extract -xvf ubootchart.tgz

so i give this command it say no directory in tmp so i manually create directory in /tmp/extract
then it extract files in extract folder

 Replace every “sbin/init” with “sbin/ubootchartd” in /init:
sudo sed -i 's@sbin/init@sbin/ubootchartd@g' /tmp/extract/init

then i give this command it again says no init directory in extract

so how i do that its only 2 line wiki so how i understand

then i use script to extract core.gz in tmp folder it create folder core_extract then in use this folder to extract ubootchart by this command
sudo tar -C /tmp/core_extract -xvf ubootchart.tgz
after that i give this command
sudo sed -i 's@sbin/init@sbin/ubootchartd@g' /tmp/extract/init

all work good


after that i pack the extracted folder it give me core.gz then i boot that core.gz but i don't see any file in /var/log related to ubootchart

please tell me that its write procedure or if not so plz tell me what to do next

when i open top /sbin/ubootchartd_bin is running
thanx
« Last Edit: November 25, 2014, 08:42:48 AM by malikawan »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: minimum time to boot tiny core X server
« Reply #19 on: November 25, 2014, 09:00:23 AM »
Your second attempt is correct but, as described on the wiki page, you also need to kill the bootchart process in order for it to write the log.
I put the following command in  ~/.profile  (below the .ashrc stuff and above the startx stuff) and did a backup before reboot.
Code: [Select]
[ -f "/sbin/ubootchartd_bin" ] && sudo killall -USR1 ubootchartd_bin

After reboot, load bootchart-pl.tcz (not bootchart-py.tcz) and create the SVG image.
I used these commands to convert it to a .PNG image:
Code: [Select]
tce-load -i librsvg && rsvg-convert -a -f png -o /tmp/my_bootchart.png /tmp/my_bootchart.svg
« Last Edit: November 25, 2014, 09:09:33 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: minimum time to boot tiny core X server
« Reply #20 on: November 25, 2014, 09:46:17 AM »
Another wow! Drastically reduced boot time. All those busy boxes are gone after editing tc-functions.

However, I don't think that's just great since, while booting, I think coreutils.tcz complains about missing libgmp.so.10 even though gmp.tcz is already loaded. Also every extension after coreutils.tcz in onboot.lst won't get loaded at all.

https://db.tt/njIcZEC4

--

BTW, not recreating the font cache didn't seem to have any result regarding entire boot time. Anyway I'll put in in bootlocal.sh when I think need it.
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: minimum time to boot tiny core X server
« Reply #21 on: November 25, 2014, 10:44:00 AM »
Oh, yes... coreutils replaces busybox counterparts with gnu ones. Since I disabled busybox'es aliases, the system tryes to use the gnu programs just after loading coreutils.tcz but they're not ready to be used while loading extensions on-boot. I removed coreutils.tcz from onboot.lst.

However, bootchart don't really gives more info, or does it?

With  showapps  boot code
https://db.tt/D3M0UVBG

With  showapps=foo  boot code (I added this one to just shows the .LSTs and a rotdash but no .TCZs)
https://db.tt/pb7WFwCP
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: minimum time to boot tiny core X server
« Reply #22 on: November 25, 2014, 12:45:01 PM »
Ok, I found the 800+ forks were caused by depmod. Misalf, you can restore your system to how it was (well plus font changes obviously ;)).
The only barriers that can stop you are the ones you create yourself.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #23 on: November 25, 2014, 02:15:47 PM »
Misalf thanx thanx alotttttttttttttttttttttttt doneeeeeeeeeeeeeee

again thanx

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #24 on: November 25, 2014, 02:41:23 PM »
« Last Edit: November 25, 2014, 03:03:14 PM by malikawan »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: minimum time to boot tiny core X server
« Reply #25 on: November 25, 2014, 03:00:37 PM »
Does /tmp/my_bootchart.png already exist?
Does  tc have permission to write that file?
Try deleting it first.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #26 on: November 25, 2014, 03:07:38 PM »
Thanx gerald_clark  you are rite tmp/my_bootchart.png already exist when i delete it will create for me

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: minimum time to boot tiny core X server
« Reply #27 on: November 25, 2014, 03:40:37 PM »
malikawan, your chart shows CPU peaking almost constantly. That means there's little that can be optimized, other than doing less (load less extensions, etc).
The only barriers that can stop you are the ones you create yourself.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #28 on: November 25, 2014, 05:02:07 PM »
Thanx sir curaga for ur time to see my bootchart but it is not real system this was virtual box bootchart i am upload tomorrow the real pc bootchart then plz also suggest me that system boot in 5 sec with persistent home opt and tce folder

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: minimum time to boot tiny core X server
« Reply #29 on: November 26, 2014, 07:06:15 AM »
sir curaga this is my pc bootchart plz and suggestion or comments

https://www.dropbox.com/s/mssvgzug7nrlz78/my_bootchart.png?dl=0