Skip to content

Arch Linux 91 seconds userspace loading time

1 / 3
Not downloaded yet
Not downloaded yet
Not downloaded yet

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

https://preview.redd.it/xhxp3n8az6r41.png?width=1024&format=png&auto=webp&s=2d5e858048ad3d9797dae7e022ec8598495ee987

https://preview.redd.it/levkdj9p17r41.png?width=1024&format=png&auto=webp&s=48288b87b18da5ae5e2b93a357f5d2d571bd3d33

https://preview.redd.it/gcaigx8s17r41.png?width=1024&format=png&auto=webp&s=bb6e248752316f5ed5861343a8b5795befea633a

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.

7 points21 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
7 · 100% up
Kind
Gallery · 3 files
ID
fvxml9

Author

3
posts
17
comments
3
media
View profile

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?

systemd-analyze critical-chain
11 points

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?

2 points

I'm no expert on the subject, but the command outputs this at the beggining

The time when unit became active or started is printed after the "@" character.

The time the unit took to start is printed after the "+" character.

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

└─network-online.target @3.317s
  └─NetworkManager-wait-online.service @1.303s +2.013s
    └─NetworkManager.service @1.223s +79ms

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.

3 points

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.

1 points

How do I do that? Is that an option of grub (my Bootloader) or an arch setting?

1 points

Grub. If you reach the grub screen, press e and edit the grub options accordingly (this is only temporarily)

2 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.