I've Ubuntu 18.04 installed on Dell Latitude E6320 (on Kingstone SSD), It used to boot in about 14 - 18 sec, but about three days ago the system started to take a lot of time to boot and in general slow performance.
systemd-analyze outputs
Startup finished in 7.782s (kernel) + 42.572s (userspace) = 50.354s
graphical.target reached after 42.544s in userspace
(I'm on EFI).
The actual boot time is about 2 min from grub screen until the Plymouth screen and then another 30s until the login screen shows up.
What caused the problem?
I did a usual software update and it included a kernel upgrade to 5.0.0-36-generic. restarted the system and the problem started.
What I've tried.
- Tried to boot with the previous kernel (5.0.0.32) but nothing happened
(grub hangs at
loading initial ramdiskthen shows Plymouth screen) - Removed swap 'file' and updated
fstabto not include it - Added
noresumeoption toGRUB_CMDLINE_LINUX_DEFAULTetc/default/grub/ - Tried the solution listed here (Slow boot, long kernel load time, due to wrong resume device)
Actually I didn't have
/etc/initramfs-tools/conf.d/resumefile so i created one.
System specification
- Dell Latitude E6320 with the latest BIOS update.
- Dual-booting Ubuntu 18.04 on SSD, and Windows 10 on completely separate HDD. both using EFI (Tried to boot with the HDD removed, nothing.)
It's not the first time I face this problem. I was using Kubuntu and the same problem happened but with 8 min boot time so I did a clean EFI install of Ubuntu (about a month ago) and achieved 14sec boot time.
I've noticed performance drop especially when it comes to reading or writing from the SSD. Even typing clare or any wrong command in the terminal takes a bit of time to be recognized as an unknown command.
Additional troubleshooting
The output of dmesg -k can be found here.
Update 1
systemd-analye blame output
systemd-analyze critical-chain
output