Startup finished in 1.740s (kernel) + 757ms (initrd) + 1.835s (userspace) = 4.333s on my Intel i3-4130.
Look here: http://mistelberger.net/plot.svg postfix.service takes 728ms from 1,835ms user space. However it is not in the critical chain. So it does not matter. btrfsmaintenance-refresh.service was enabled on my machine. However there was no such partition. Thus I disabled the service.
Yes… but… the OP stated the problem is with shutdown/reboot, not startup, which as can be seen from the “systemd-analyze blame” posted, is quite respectable. Looking at startup times with “systemd-analyze *” is all rather moot.
Depending what services or programs that are running shut down can be fast or slow. The OS must wait until all critical operations for all services and programs are complete
I have the opposite problem. I looked at systemd analyze and found it was just over 3 minutes in userspace. I just upgraded from LEAP 42.2. I have a dual boot and run LEAP 42.3 on another disk. That loads up extremely fast. What could be slowing this upgrade down?
I had the same problem
For the causes I suspected:
NetworkManager waitonline service
sp5100-tco stuff (For Ryzen 7 + ASUS ROG CH6 systems)
Nvidia driver stuff
systemd related
I tried to disable NetworkManager waitonline service. Did not solve the problem
At the end I figured out that it was Plymouth+nvidia driver problem
I removed Plymouth and viola it worked!
If you have nvme ssd you really do not need splash animation
Boot takes just a few seconds!!!