Arch Linux 91 seconds userspace loading time
So I am an Arch noob. It's my 10th installment in my VM and finally everything works.I did some research because my Boot was rather slow and it turns out my userspace takes 1min 30sec to load and I don't know how to fix it.
systemd-analyzeled to the following:
startup finished in 1.759s (kernel) + 1min 30.212s (userspace) = 1min 31.972s
graphical.target reached after 1min 30.211s in userspace
My solution: As some of you suspect, I had installed it in a VM. So now I set up a second one, did the whole setup again. The only difference from my installation before was, that I installed "NetworkManager" instead of" dhcpcd" Somehow that f*cked with my startup. Now my new VM has a 4.176s boot time. Not perfect for Arch, but a hell of an improvement. Thanks to everyone who tried to help me with my problem, I learnt a lot!
Edited 7 Apr 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 7 · 100% up
- Kind
- Gallery · 3 files
- ID
- fvxml9
22 comments
I think 1:30 is the default timeout for starting/stopping services so it might indicate that something is failing and your system is waiting for it. Does the following produce any useful info?
Im not sure what I have to look out for. The first entry is "graphical.target @1min 30.267s"
Or are all the red lines the lines that are slowing my start down? And what should I do with them if so?
I'm no expert on the subject, but the command outputs this at the beggining
graphical.target is the end goal and the graph shows the chain of dependencies, ie graphical.target is waiting for whatever is shown right below it and that is waiting for the next thing etc. So I imagine we should look for lines with big values next to the "+" sign because these are holding up the entire process. For example, I have the following segment
This means that my system waited 2 seconds for a connection to go live ('systemctl help NetworkManager-wait-online.service' helps understand what that line means). Something along your chain is probably taking 1min+. You can post the output here so more people can chime in.
Could try disabling the quiet flag from kernel boot options. That should allow you to see everything systemd is doing during boot and you may notice something that's hanging.. The install iso always hangs waiting for an IP from dhcp on my wired NIC. But I don't have a hard line for network so it hangs. Something like that.
How do I do that? Is that an option of grub (my Bootloader) or an arch setting?
Grub. If you reach the grub screen, press e and edit the grub options accordingly (this is only temporarily)
i had the same error myself, the problem was, that i had both iwd and netctl installed, so what you need to do is actually to delete wifi manager you don`t use