Update: It was a usb 3 hub that did not work with linux. plugging it into a usb2 port on the pc improved boot time. its now 25 sec!
Hi there!
So i build a new pc with hardware < year old and installed mint on it and it takes annoyingly long to boot, 1:50min from the output of systemd-analyze
:
Startup finished in 14.075s (firmware) + 10.681s (loader) + 51.070s (kernel) + 34.573s (userspace) = 1min 50.400s
graphical.target reached after 34.570s in userspace.
The 50sec on kernel boot seems strange to me, maybe 34sec of userspace as well.
It seems to be the systemd-usdev-settle.service
according to the output of systemd-analyze blame
:
29.451s systemd-udev-settle.service
3.254s NetworkManager-wait-online.service
948ms zfs-load-module.service
491ms NetworkManager.service
154ms blueman-mechanism.service
The output of systemctl status systemd-udev-settle.service
shows:
systemd-udev-settle.service - Wait for udev To Complete Device Initialization
Loaded: loaded (/usr/lib/systemd/system/systemd-udev-settle.service; static)
Active: active (exited) since Wed 2025-01-22 12:06:16 CET; 5min ago
Docs: man:systemd-udev-settle.service(8)
Main PID: 526 (code=exited, status=0/SUCCESS)
CPU: 2ms
Jan 22 12:05:47 tower systemd[1]: Starting systemd-udev-settle.service - Wait for udev To Complete Device Initialization...
Jan 22 12:05:47 tower udevadm[526]: systemd-udev-settle.service is deprecated. Please fix zfs-load-module.service, zfs-import-cache.service not to pull it in.
Jan 22 12:06:16 tower systemd[1]: Finished systemd-udev-settle.service - Wait for udev To Complete Device Initialization.
So i think i need to fix the zfs modules, because they slow udev down, but how?
Any other tips to improve boot time of my system? Ubuntu on my 4 yo laptop takes maybe 20-30 seconds to boot, so linux should be a lot faster. I appreciate any helpl!
If you run
dmesg -T
you can see the entire boot log with human readable timestamps.puh, there is a lot in there. anything i should look out for?