Hey. I know many people asked this question but I couldn’t find any helpful thread to solve my problem. My loading time is very high. The systemd-analyze shows about 1 minute and 40 seconds.
Startup finished in 9.811s (firmware) + 6.627s (loader) + 1.836s (kernel) + 14.843s (initrd) + 1min 6.498s (userspace) = 1min 39.617s
graphical.target reached after 1min 6.474s in userspace
I tried to see criticals and this happened:
The time when unit became active or started is printed after the>
The time the unit took to start is printed after the "+" charact>
graphical.target @1min 6.474s
└─multi-user.target @1min 6.473s
└─systemd-user-sessions.service @57.718s +26ms [RED]
└─iscsi-shutdown.service @57.546s +352us [RED]
└─wpa_supplicant.service @1min 167ms +167ms [RED]
└─dbus-broker.service @36.317s +698ms [RED]
└─systemd-update-utmp.service @36.131s +> [RED]
└─auditd.service @35.383s +745ms [RED]
└─systemd-tmpfiles-setup.service @34> [RED]
└─import-state.service @16.239s +4> [RED]
└─home.mount @15.905s +328ms [RED]
└─lvm2-monitor.service @> [RED]
I put a [RED] note after the ones that were colored red. I deleted all my snaps and snapd also to maybe reduce the boot time but it’s still very high.
Unless you’re actually using a modem, you can get rid of ModemManager.service by stopping, disabling and masking it. That saves about 10 seconds. If you’re not actually using lvm, do the same for .vm2-monitor.service and save almost 8 seconds more. In general, when posting the results of this, you can trim off anything that takes less than one second as being too small to worry about.
I’ve just enabled this repo for systemd update (dnf copr enable oleastre/systemd) and updated systemd (sudo dnf update systemd*). Then just disabled the repo. Guess you can find this patch on systemd master and rebuild your systemd from sources. But with oleastre corp repo it’s easier and faster ^)
i am interesting in Linux and some special cool Features. Can anyone explain me, what about these 3 commands in terminal.
are they to do, for having faster pc boot? or is that for having secure and more savety boot to system against default boot process?
i want to learn and think about - hhm. can i do that 3 commands or did i crash with that my system
Hi, if read the above posts, some users have experienced some very high boot time (like 6 minutes). These three commands enables a copr repository that contains some patches created to mitigates that problem.
sudo dnf copr enable oleastre/systemd enable the repository
sudo dnf update systemd* update the systemd packages (those are updated from the copr repositories that you have just enabled since they are newer)
sudo dnf copr disable oleastre/systemd disables the repository, because this is a user repository.
This is a temporary solution until the Fedora systemd manteiner updates the systemd packages.
[Edit] WARNING: do this only if you have this bug, because it can break the system or introduce vulnerabilities.
This if the Copr FAQ if you want to know more about it.
@dawson obviously my post was meant to clarify what those command are, you don’t need to run those command if you haven’t this specific problem and you know what you are doing. So please take my words simply as an explanation.
As @florian said (now deleted) you can break the system if you replace system level packages.
Excuse me if i haven’t warned you in my previous post, my bad. Thank you @florian to point this out.