I want to measure the time it takes from loading grub until GNOME starts. Can I do this using existing logs?

What alternatives do I have to measure the time it takes from grub until GNOME loads?


It pretty much depends on the Operating System you are using.

If your OS still uses the old initscripts an rc.d system, then use something like Bootchart to measure the Booting time. Bootchart will require you to temporarily modify your kernel parameters to make it the first thing being executed. Add the following to your kernel line at the GRUB Menu:


So your Kernel line looks something like this:

kernel /boot/vmlinuz root=/dev/vg/root video=uvesafb:mtrr:3,ywrap,1680x1050-24@60 console=tty1 init=/sbin/bootchartd

In case you use the newer systemd init system (Fedora, Arch Linux, etc) then, the process is even simpler. Systemd comes with a boot process analyzer that you can simply run by calling:

$ systemd-analyze

To get more information about what is taking up maximum time, use the blame command.

$ systemd-analyze blame

For a Bootchart like SVG representation, use the plot command.

$ systemd-analyze plot > ~/bootup.svg

  • I have systemd init system but no systemd-analyze – Eduard Florinescu Apr 2 '13 at 9:31
  • What distro are you using? It is possible that your distro strips systemd-core from other utilities in separate packages. – darnir Apr 4 '13 at 12:28
  • systemd-analyze wasn't default , but I added it afterwards with zypper and it works. But I think bootchart is more appropriate. – Eduard Florinescu Apr 4 '13 at 12:39

This is how I would make a first attempt.

Check out the scripts in /etc/grub.d.

See if it is possible to echo the time to a file. Or what about displaying it on the screen?

Then, do the same in /etc/init.d/gdm3. Or, put a script to do this, to be executed right before the gdm3 script, in /etc/rc2.d (that is, if you don't want to muck around with the original desktop manager initialization file).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.