The problem is resolveconf-pull-resolved.service
and plymouth-quit-wait.service
are taking a lot of time to start making the overall boot process slow. The first one upon searching, I found various issues where it caused the boot to stuck there but none where it caused the boot to be slow overall, for the 2nd one I found this answer which says that this service is not at fault as it just waits for others to complete.
The whole process of my investigation is explained below:
systemd-analyze time
gives the following output:
Startup finished in 7.870s (firmware) + 3.118s (loader) + 19.467s (kernel) + 1min 56.978s (userspace) = 2min 27.435s
graphical.target reached after 1min 56.840s in userspace
Upon following this answer regarding slow userspace, mine problem was similar (meaning snapd
was one of the main culprits for slow down ) as systemd-analyze blame | grep snapd
gave the following output:
26.656s snapd.service
1.011s snapd.apparmor.service
915ms snapd.seeded.service
1ms snapd.socket
and systemd-analyze blame | grep dev-loop
gave
10.384s dev-loop19.device
10.236s dev-loop9.device
10.155s dev-loop0.device
10.151s dev-loop16.device
10.110s dev-loop14.device
9.776s dev-loop13.device
9.470s dev-loop15.device
9.294s dev-loop12.device
9.106s dev-loop6.device
8.982s dev-loop17.device
8.873s dev-loop11.device
8.864s dev-loop10.device
8.738s dev-loop8.device
8.731s dev-loop18.device
8.724s dev-loop21.device
8.052s dev-loop3.device
8.017s dev-loop2.device
5.861s dev-loop5.device
5.374s dev-loop1.device
4.883s dev-loop4.device
But if we look at the whole plot in the svg file ( I have posted the link as uploading the whole image here would make it unreadable because of the size compression ) resolveconf-pull-resolved.service
and plymouth-quit-wait.service
still take more time than them. Below I have posted a screenshot showing the relevant section of the svg
file.
I had a similar situation yesterday and after some cleanup
resolveconf-pull-resolved.service
disappeared from the list andplymouth-quit-wait.service
went back to third place. These are the steps I followed:$ sudo snap remove xxx
) and reinstall the tools using other means likeapt
or withdeb
packages. That had a big improvement in my boot time (a lot of loopback devices were turned off). I couldn't completely get rid of snap because I'm using Gnome Desktop and it seems it was installed using snap during the OS installation.This is my minimum snap list.$ sudo systemctl stop xxx
and$ sudo systemctl disable xxx
). In my case, I stoppedPostgreSQL
(takes a lot of time), I also stoppedApache
,InfluxDB
andOpenProject
(many services related)apt-daily.service
so it triggers after boot. Check this post to know how.After all of these actions, my boot time decreased dramatically. I'm thinking of using another Desktop manager like
Xfce
or uninstalling Gnome Desktop and reinstalling it without using Snaps.As a side note, I am surprised at how little time it takes to start an application without snaps, for instance, VLC shows up almost instantly before took some seconds, close to 5-10.
Hope this helps!