Joined: Feb. 2007
||Posted: Feb. 15 2008,13:03
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
. 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.
- 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!