Thursday, February 14, 2013

Analyzing the boot process

Something I want to investigate further in the future, so I'm making a note of it here.
Arch uses systemd to initialize the OS, which has some cool features for analyzing the boot process and showing where the time is taken.

Show the hogs:
$ systemd-analyze blame
  7977ms NetworkManager.service
  2796ms colord.service
  2788ms bluetooth.service
  2728ms systemd-logind.service
  1558ms polkit.service
   516ms systemd-tmpfiles-setup.service
   488ms tmp.mount
   486ms systemd-binfmt.service
   484ms dev-mqueue.mount
  ...
Create a plot of processes:
$ systemd-analyze plot > ~/plot.svg
$ kde-open ~/plot.svg
There's also some way to create a "bootchart" but it may required a custom kernel or something, I don't remember.

No comments:

Post a Comment