[Mageia-dev] Debugging boot times

Colin Guthrie mageia at colin.guthr.ie
Wed Nov 9 00:55:49 CET 2011


'Twas brillig, and Colin Guthrie at 08/11/11 23:48 did gyre and gimble:
> Hi,
> 
> I've just pushed bootchart to the build system.
> 
> If you want to get a nice log of how things work, just install
> bootchart-daemon and then boot with the kernel command line:
> 
> init=/sbin/bootchartd
> 
> If you normally need init=/bin/systemd, then use instead:
> 
> init=/sbin/bootchartd bootchart_init=/bin/systemd
> 
> 
> Once you've booted, you can analyse the chart info via running
> "bootchart". This will create a bootchart.png file which we can then use
> to help diagnose problems etc.
> 
> At the moment on my system, waiting for network-up is causing some
> slowdowns for example. I don't need the network to be up to be able to
> login (on my system) and thus I'd rather display gdm sooner rather than
> wait. Useful stuff.

Incidentally, this will only work for stuff that is done post initrd.
There is also a dracut module to enable bootchart inside the initrd, but
I've not played with that nor know how to enable it (if you even need to
enable it - perhaps it just works - like I say, I've not looked)

Col


-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list