You are not logged in.

#1 2025-04-24 08:00:24

valo1234
Member
Registered: 2025-04-24
Posts: 8

Slow booting - userspace & kernal takes more time

I have just configured/install my arch linux from the arch iso via my usb.
After struggling to lot, and following wiki, I successfully installed arch on my system.

I have installed arch on my SSD of 256 GB.

I have notices that my boot time is genrally more than the windows I used to have. So, I run the command.

systemd-analyze
Startup finished in 4.188s (firmware) 5.210s (loader) 22.314s (kernel) + 36.590s (userspace) = 1min 8.303s[/ins]
graphical.target reached after 36.588s in userspace.

Then i ran -

systemd-analyze critical chain 

output

suggest me some steps i should do to decrease my boot time to 15-20 sec

Last edited by valo1234 (2025-04-25 14:56:50)

Offline

#2 2025-04-24 10:24:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,973

Re: Slow booting - userspace & kernal takes more time

Please post the full outputs of

$ systemd-analyze blame
$ find /etc/systemd -type l -exec test -f {} \; -print

Also please edit your post to use code tags for program output instead of ins tags.
(the bright yellow hurts peoples eyes and often makes things less readable, use it sparingly.]


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-04-24 14:04:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,311

Re: Slow booting - userspace & kernal takes more time

Also please post text, not pictures of text.
The critical chain suggests journald is stalling the boot (but not the flushing part)

And please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

22s in the kernel is a lot and suggests there might be some HW acting up or you system is running on handbrake (locked CPU frequency or so)

Offline

#4 2025-04-25 14:56:10

valo1234
Member
Registered: 2025-04-24
Posts: 8

Re: Slow booting - userspace & kernal takes more time

Hi, thanx for the suggestion
I will keep in mind from the next time.

Update on the issue.

I noticed that ,when i just installed arch, that time, it was taking around 36sec - 1 min , but then when i reboot, it takes around 15-20 sec for one moment.
I remember , that I did have deleted the caches or logs stored in journalctl or something. But I m sure, when i did this, there was no effect. Issue was there.

and when i kept  my laptop ON for some time, for some reason, now any time i start my laptop or reboot or shutdown & start,  the avg time is 13-15 sec. Idk how ?

Startup finished in 2.586s (firmware) + 6.506s (loader) + 3.970s (kernel) + 2.442s (userspace) = 15.506s
graphical.target reached after 2.442s in userspace.

http://0x0.st/8Vl1.txt

I am also attaching the output of

systemd-analyze critical-chain
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 @2.442s
└─sddm.service @2.442s
  └─plymouth-quit.service @2.396s +43ms
    └─systemd-user-sessions.service @2.362s +29ms
      └─network.target @2.359s
        └─wpa_supplicant.service @2.334s +24ms
          └─basic.target @1.599s
            └─dbus-broker.service @1.540s +56ms
              └─dbus.socket @1.533s
                └─sysinit.target @1.530s
                  └─systemd-update-done.service @1.514s +15ms
                    └─ldconfig.service @1.421s +92ms
                      └─systemd-tmpfiles-setup.service @1.362s +56ms
                        └─local-fs.target @1.359s
                          └─efi.mount @1.316s +42ms
                            └─systemd-fsck@dev-disk-by\x2duuid-0770\x2d89B5.service @680ms +31ms
                              └─dev-disk-by\x2duuid-0770\x2d89B5.device @569ms

Last edited by valo1234 (2025-04-25 15:02:15)

Offline

Board footer

Powered by FluxBB