Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Bootchart for DSL 4.2.5, And other thoughts of mine< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 15 2008,13:03 QUOTE

I decided to take a shot and measure the DSL boot with bootchart.
The extremely long boot time, nearly 5 minutes to runlevel 2, is because of Qemu.

Bootchart is an utility that logs the boot and presents the results in a nice chart, and is mostly used for optimizing the boot process.

The bootchart (121kb) (they'll host it for 30 days)

In case anyone has the chance of creating the log on real hardware, I would appreciate it, as Qemu is bound to cause some error into the results. Here's the initrd (301kb) I used; to use it, replace the old one with this and do a remaster. Then change isolinux.cfg so that all init=/etc/init lines become init=/etc/bootchartd.
Right after boot you need to stop it with
Quote
/etc/bootchartd stop
. It'll pack the results some seconds, and then the tarball is at /var/log/bootchart.tgz.
To create a chart out of that, upload it to bootchart.org, or if you have the java SDK, get the java tools from bootchart.org and use them to build the chart.


First thoughts:
- what? I added 20kb of files to the initrd, optimized with the usual (e2fsck -D and dd if=/dev/zero of=file; rm file) and the size dropped from 840kb to 301kb? I would seriously recommend this to be done to DSL too. Might help the bootfloppy also.
- HD stats are unfortunately not shown, because the parser looks at the root device (/dev/ram0) that doesn't get any activity after the initrd, and not the loop device that handles KNOPPIX and such all the traffic
- hwsetup takes only cpu. I knew this before, but didn't know it was this much. It's a real blocker, nothing else gets done. I propose starting another command in background right before it (parallel) and having a readahead process in the background at that time also.
- pump is run twice
- dsl_restore starts 7 instances of bash and 4 of sed in parallel. While this is good, bash is still a little heavy compared to ash.

These are the ones that jumped right at me after ~5min of looking at that. I'm sure we'll get better results from real hardware, and if someone sees something obvious about this chart, please enlighten us :)


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 15 2008,13:12 QUOTE

On the other hand, if someone does this on real HW, instead of uploading the tarball there, send it to me, as I think I can modify it to show HD stats also (they are an important part of boot though).

Of course I think of this 10min after deleting my result source. Oh well, Qemu results would still have differed from real hw.

Oh, I'm also interested in frugal installs, not only livecd's. So if you have a frugal install, just adapt the inctructions (backup your old minirt24.gz, copy this over, boot, restore the old minirt24.gz)


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Feb. 15 2008,13:22 QUOTE

I'd be interested to try with a frugal install - but I cannot download the file from rapidshare, I get "network error" every time I try...
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 15 2008,13:41 QUOTE

I just tested - worked for me. Any other service I could upload to, or should I email it to you?

edit: Here. I didn't know I still had that account, I stopped the order in Dec, but as it's still there..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Feb. 15 2008,14:37 QUOTE

OK - so the bootchart.tgz file from a usb boot is here

Interesting how your minirt24.gz apparently does the same and more as the original and yet is 0.5MB smaller.

Let me know how the chart looks.
Back to top
Profile PM 
10 replies since Feb. 15 2008,13:03 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Bootchart for DSL 4.2.5

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code