Originally Posted by
ml9104
That's about right for a HDD boot. SDD will be around 25% of that.
It is possible to get boot down to less than 20 seconds on spinning HDDs if all the extra crap the DEs load "to be easy" are prevented. There are lots of threads here where people are able to reduce their boot times by 50% just by disabling stuff they never use. For example, if you don't use ZFS, BTRFS, Bluetooth, snaps, autofs, samba, LVM, lpd and a bunch of other daemons, why have them run at startup, before the login screen is displayed?
As I look through a system and see a number 1sec "loop" device times, I know these are all for snaps that I seldom use. The apt-daily-upgrade.service needs to be stopped here too. I patch weekly and don't need any automatic stuff related to that.
Code:
sudo systemctl stop apt-daily-upgrade.service
sudo systemctl disable apt-daily-upgrade.service
sudo systemctl mask apt-daily-upgrade.service
Done. People who like to be nagged about available updates or have them installed automatically wouldn't want to do that.
On another system, these are killers:
Code:
36.925s systemd-udev-settle.service
20.171s systemd-fsck@dev-istar\x2d8TB-istar\x2dback3\x2da.service
19.684s systemd-fsck@dev-istar\x2d8TB\x2dB-lv4_back.service
Those are waiting for slow, huge, USB storage devices that go to sleep when not used recently. I need to prevent that if I want faster startups.
Even wasting 56 seconds,
Code:
$ systemd-analyze
Startup finished in 8.060s (kernel) + 1min 1.735s (userspace) = 1min 9.796s
That's a no-SSD, dual-core pentium, system with 30+TB of storage connected. I'll be swapping some of the USB storage to eSATA on that system soon. That will make those times drop or go away.
Bookmarks