I manage multiple systems with a single NixOS configuration, me and my brother’s laptops being two of them. However, my brother has had 2 mins+ boot times for the entire time since he’s switched to Linux afaik (the better part of a year ago), when he previously used Bazzite. Now however, he still has this issue even when sharing a configuration with me, with his being basically a pretty barebones system that he can use flatpaks and other stuff imperatively.
It’s worth noting that he has an Nvidia system, just because I know Nvidia is a pain point, but I don’t know if this is the source of his problems.
Anyways, here’s some information about boot times I got from his system, to try help with debugging the issue.
$ systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @1min 37.119s
└─multi-user.target @1min 37.118s
└─tailscaled.service @1min 36.618s +500ms
└─NetworkManager-wait-online.service @1min 32.290s +4.324s
└─NetworkManager.service @1min 31.575s +714ms
└─network-pre.target @1min 31.573s
└─resolvconf.service @1min 31.515s +56ms
└─basic.target @1min 31.488s
└─dbus-broker.service @1min 31.404s +84ms
└─dbus.socket @1min 31.400s +76us
└─sysinit.target @1min 31.386s
└─systemd-update-utmp.service @1min 31.295s +21ms
└─systemd-tmpfiles-setup.service @1min 31.257s +36ms
└─local-fs.target @1min 31.253s
└─run-wrappers.mount @1min 31.226s +26ms
└─local-fs-pre.target @1.285s
└─systemd-tmpfiles-setup-dev.service @1.276s +9ms
└─systemd-tmpfiles-setup-dev-early.service @1.252s +18ms
└─kmod-static-nodes.service @1.239s +11ms
└─systemd-journald.socket
└─system.slice
└─-.slice
$ systemd-analyze
Startup finished in 6.231s (firmware) + 1.050s (loader) + 512ms (kernel) + 22.851s (initrd) + 1min 37.186s (userspace) = 2min 7.831s
graphical.target reached after 1min 37.119s in userspace.
And the output of systemd-analyze plot:
If there’s any more info I can give to help debug, please let me know!
Thank you in advance for anyone willing to try help with this issue.
I’m noticing now that the image has gotten really compressed, is there somewhere I can upload it or the original svg file with it still being readable?
I’ve tried that (and I guess should’ve mentioned it, sorry), but for some reason I can’t upload to catbox for some reason (neither the original svg or the png):
Hmm, are you behind a VPN or in a blocked country?
I don’t know what other options are better if you can’t upload full-res SVG files here on Discourse.
My average boot time on most of my nixos machines is anywhere between 30-40 seconds usually because I like having the plymouth unlock icon if I removed it the startup would be faster.
systemd-analyze critical-chain took 1s 15:30
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @18.376s
└─multi-user.target @9.492s
└─mullvad-daemon.service @9.492s
└─network-online.target @9.489s
└─NetworkManager-wait-online.service @4.047s +5.441s
└─NetworkManager.service @2.581s +1.463s
└─network-pre.target @2.580s
└─resolvconf.service @2.498s +67ms
└─basic.target @2.475s
└─dbus-broker.service @2.411s +63ms
└─dbus.socket @2.406s +171us
└─sysinit.target @2.394s
└─systemd-update-utmp.service @2.322s +10ms
└─auditd.service @2.294s +26ms
└─systemd-tmpfiles-setup.service @2.267s +25ms
└─systemd-journal-flush.service @1.295s +272ms
└─systemd-journald.service @1.226s +67ms
└─systemd-journald-audit.socket @1.235s +52us
└─system.slice
└─-.slice