I am using Fedora 34 for home purposes. I am a web developer and therefore use docker and sometimes not so common software.
Nonetheless, I believe there is a fair amount of services I could disable to make my machine boot and (specially) shutdown quicker.
This is the result of systemd-analyze critical-chain:
└─plymouth-quit-wait.service @14.043s +3.824s
└─systemd-user-sessions.service @14.031s +6ms
└─gssproxy.service @4.493s +9ms
└─wpa_supplicant.service @5.299s +5ms
└─dbus-broker.service @4.008s +53ms
└─systemd-userdbd.service @14.097s +19ms
Is there a tool that can do that for me?
If not, which services can I disable?
September 10, 2021, 12:35am
It looks like most of the time is spent mounting an nfs share. Do you have an nfs share in your
/etc/fstab? If so, try converting it to a systemd-automount.
I am not sure what you can gain there. The total boot time shown is only 17.868 seconds.
September 10, 2021, 9:56pm
It looks like 10 seconds of that is from the NFS mount.
If that is an SSD, 14 seconds is pretty slow.
September 11, 2021, 6:31am
Do nothing as 1.2 GB of memory for default installation is fine … maybe just switch to NVMe drive for speed gain …
September 11, 2021, 2:55pm
How bad an idea is to disable
playmouth-quit-wait-service? Because it this only service which is taking the longest time from what I can see in my critical-chain.
@6.232s + 4.599s
September 11, 2021, 4:25pm
Plymouth runtime is a simple service that gives a nice boot screen, you can disable it entirely giving console boot messages but boot time is (nearly) identical. I have a desktop with two SSD and one NVMe M2 drives. EFI and Boot partions are on one SSD, the rest in single logical partition and boot time is really fast. With everything in NVMe you no longer access BIOS … playing around about boot time isn’t significant, processor, memory and storage performance needs to be tweaked together, operating system run times just waiting in the background don’t significantly impact performance.
September 12, 2021, 1:23am
I don’t think we can disable playmouth runtime. I tried. And reboot to see my system-critical chain. But it was sitting there in red color like it was sitting before. Instead of decreasing the boot time, instead, it increased my boot time by
1 second. Weird.
Before Vs After
I used this command:
sudo systemctl disable plymouth-quit-wait.service
Maybe, I need to completely mask it from running.
September 12, 2021, 12:53pm
Are you sure you are reading the output correctly? I don’t think that means that
plymouth-quit-wait.service is adding 4 seconds to your boot time.
September 12, 2021, 2:40pm
You might be right. Maybe Plymouth has nothing to do with the slow down.
Those lines were in red color which has a plus sign with extra seconds, so I thought that maybe they are the reason for the slowdown.
September 12, 2021, 2:43pm
I am not sure what the right way is but I usually compare the difference between the
September 12, 2021, 7:47pm
Time permitting it may be easier to start with
the everything iso and roll your own.
September 13, 2021, 3:27pm
You’re a web developer using containers and specific apps … aren’t you confusing Fedora, a simple operating system, with latency connecting and disconnecting from your virtual workspace? To accelerate boot, shutdown time use hardware tweaks like suspend function or non volatile memory (NVMe), to see unused processes in the background use gnome-system-monitor or other GUI/CLI tools …
Aparently not. Got one ext4 as / and a vfat as /boot/efi
Indeed. Time is not that bad to boot. Thanks!
But it takes minutes to shutdown! Packagetkit Daemon seems to be the problem (I literaly watched the shutdown process, is there a way to get a critical-chain of that?)
packagekit is likely trying to do an update.
I disabled packagekit since I HATE the microsoft way of forcing users to do updates and packagekit reminded me of that approach when it began doing automatic updates when shutting down.
What are the drawbacks of disabling it? Can I simply remove it alltogether?
I am really considering to do so.
September 24, 2021, 12:13pm
Without packagekit Gnome Software won’t work.
That’s what I did. Now Gnome Software never bothers me anymore. There is some freedesktop stuff that I have to upgrade with “flatpak update”, occasionally, but that’s a small price to pay.
September 24, 2021, 12:25pm
I use a systemd timer to keep my flatpaks updated. They should be safe to automatically update and that way I don’t have to worry about them.