[systemd-devel] Improving boot time of systemd based initrd?
Mikko Rapeli
mikko.rapeli at linaro.org
Fri Feb 14 11:53:26 UTC 2025
Hi,
I'm able to shave 7 seconds from initrd udev work by changing
systemd-udev-trigger.service udevadm trigger argument from
--type=all to --type=devices which is the default also
without --type argument. Now initrd boottime on qemu drops
from 30 seconds to 23 seconds. In my case this could be ok
as default since udev is only to provide HW support and not
used to setup more complex SW stacks.
The processing time with --type=subsystems seems like a lot.
Kernel and drivers have already initialized and thus I don't really
understand why udev is doing so much work and so slowly in userspace.
Does anyone have ideas or comments about this?
Cheers,
-Mikko
More information about the systemd-devel
mailing list