Optimizing Boot Time: systemd-analyze blame Results

Hey Guys,

I am trying to improve / optimize my boot time and needed some help analyzing the systemd-analyze blame results. Just for some background, I have a 2019 X1 Cabon with i7 (Kaby Lake) and 16GB of ram.

The output is below:

Startup finished in 6.679s (firmware) + 2.789s (loader) + 1.228s (kernel) + 4.405s (userspace) = 15.103s 
graphical.target reached after 4.405s in userspace.

systemd-analyze Blame Results:

 systemd-analyze blame                                                                                                                                                          
1.277s avahi-daemon.service
 837ms dev-nvme0n1p5.device
 456ms apparmor.service
 425ms systemd-tmpfiles-setup.service
 376ms ufw.service
 294ms systemd-udev-trigger.service
 262ms systemd-remount-fs.service
 257ms upower.service
 252ms user@1000.service
 227ms systemd-modules-load.service
 224ms systemd-tmpfiles-setup-dev.service
 222ms cups.service
 158ms systemd-timesyncd.service
 157ms systemd-rfkill.service
 144ms accounts-daemon.service
 139ms systemd-journal-flush.service
 128ms systemd-update-utmp.service
 125ms modprobe@fuse.service
 116ms boot-efi.mount
 115ms systemd-udevd.service
 106ms home.mount
 100ms systemd-fsck@dev-disk-by\x2duuid-b1597333\x2d7f3d\x2d4fd5\x2d868e\x2d342acdd761dd.service
  97ms modprobe@drm.service
  90ms systemd-random-seed.service
  89ms udisks2.service
  73ms systemd-journald.service
  68ms systemd-backlight@backlight:intel_backlight.service
  61ms gdm.service
  55ms systemd-fsck@dev-disk-by\x2duuid-E8AD\x2d6ECC.service
  55ms systemd-user-sessions.service
  54ms modprobe@dm_mod.service
  52ms user-runtime-dir@1000.service
  49ms systemd-sysctl.service
  45ms bluetooth.service
  45ms systemd-backlight@leds:tpacpi::kbd_backlight.service
  43ms colord.service
  42ms plymouth-quit-wait.service
  40ms systemd-logind.service
  36ms plymouth-read-write.service
  35ms dbus.service
  32ms alsa-restore.service
  31ms modprobe@configfs.service
  31ms kmod-static-nodes.service
  30ms power-profiles-daemon.service
  26ms dev-hugepages.mount
  24ms NetworkManager.service

I’m not sure where to start, as I am a bit of a Linux newbie. Any help or assistance anyone could provide would be greatly appreciated.

Thank you!

apparmor is one of the services that is useful to optimize
https://wiki.archlinux.org/title/Apparmor

Hi @A4orce84,

Here’s mine:

$ systemd-analyze
Startup finished in 21.995s (firmware) + 3.009s (loader) + 5.023s (kernel) + 7.347s (userspace) = 37.376s
graphical.target reached after 6.428s in userspace.

So I’m going to be honest with you when I say, ask _what so you want to “optimize”? Because it looks pretty optimized to me…

I just wasn’t sure if there are some services in my output that I can disable / kill?

systemd-analyze critical-chain is often what to look at to have tangible results in the optimizations.

how can we be able to answer this ? none of our crystal-glass-bowl does really work. for example, there is a “cups-service” for printers. do you use one ? if not you can disable and mask it. do we know if you’re using a printer ?

I think these kind of questions can help uncover those needs from how I understand it.

The answer: Yes, I use Cups and have a printer I connect to.

Well, I think you’ve got your answer, haven’t you?

the two links below are a good starting point but you need to get used to research a lot for yourself in linux-universe. that’s part of the game. nevertheless you can ask for specific questions but none of us can nor will predict your needs because this is impossible.

https://wiki.archlinux.org/

1 Like

Thanks everyone, appreciate the feedback and assistance!

1 Like