Just updated 2021-04-26 11h am Eastern time.
Suddenly it takes an eternity to boot .
I have ran systemd-analyse blame and here is what I get for the first worst time :
[[email protected] ~]# systemd-analyze blame
2.695s [email protected]
I have an HP pavillion G6 laptop with an AMD cpu and a radeon graphic card 6Gb memory.
I boot over a USB disk encrypted with luks. I have 2 encrypted partition one for root and all (btrfs with subvolumes) and another for swap. I don't use LVM on the USB disk, but I have another linux on my laptop harddisk (opensuse encrypted with LVM partitions).
Do you have any clues on where should I start to reduce that startup time that seems to never end ???
As we haven't seen a bunch of similar posts on this, and the average user isn't setting up their system with full disk encryption I'd put my money on it somehow being related to your encryption setup.
None of the distro Devs use this type of setup, so searching recent posts online might be your best bet until someone with familiarity with your issue happens to stumbble upon your thread.
Not a fix of course, but you could try rolling back your system with timeshift if you make no progress and simply want to restore your boot times. Be sure to read the Garuda Wiki on restoring your system with timeshift.
Best of luck, and hello from BC.
There's nothing in there that would indicate something taking an "eternity". Could you be more specific, and perhaps look at
systemd-analyze --user blame, and
systemd-analyse critical-chain too?
I have outputed the other systemd-analyze :
> [[email protected] ~]# systemd-analyze
> Startup finished in 30.647s (kernel) + 21.810s (userspace) = 52.458s
> graphical.target reached after 21.810s in userspace
> ❯ systemd-analyze --user blame
> 50.212s xdg-desktop-portal.service
> 8.917s psd-resync.service
> 1.220s pulseaudio.service
> 518ms psd.service
> 244ms xdg-desktop-portal-wlr.service
> 28ms xdg-document-portal.service
> 20ms xdg-user-dirs-update.service
> 18ms gvfs-daemon.service
> 17ms at-spi-dbus-bus.service
> 10ms dbus.socket
> 9ms xdg-permission-store.service
> [[email protected] ~]# systemd-analyze critical-chain
> graphical.target @21.810s
> └─greetd.service @21.808s
> └─plymouth-quit-wait.service @21.041s +762ms
> └─systemd-user-sessions.service @20.997s +39ms
> └─network.target @20.992s
> └─connman.service @13.180s +7.810s
> └─dbus.service @13.175s
> └─basic.target @13.165s
> └─sockets.target @13.165s
> └─dbus.socket @13.165s
> └─sysinit.target @13.064s
> └─systemd-timesyncd.service @12.926s +137ms
> └─systemd-tmpfiles-setup.service @12.699s +221ms
> └─systemd-journal-flush.service @10.865s +1.831s
> └─var-log.mount @10.704s +158ms
> └─[email protected]\x2d18c56783\x2d809e\x2d43cd\x2db687\x2d7377c138a95b.service @10.648s +44ms
> └─dev-mapper-luks\x2d18c56783\x2d809e\x2d43cd\x2db687\x2d7377c138a95b.device @3.332s +7.314s
I have noticed that it takes about 15 seconds after I give the disk password for the grub menu to come. So yes the encryption must slow the start. And since the swap is also encrypted on a separate partition, it must take about the same time to decrypt. But isn't systemd supposed to do this stuff in parallel ?
The network seems to take a long time to start too. I have a good rooter and a fast enough internet. I don't have any idea why it would be so long to start. My laptop is connected on wire but connman connect with the wifi too. Could that be a problem ?
According to that output, you reach the login screen 21 seconds after the kernel loads. That seems pretty reasonable?
This is a known issue with GRUB.
Not sure if this is part of the same issue of a "slowwwww boot" or something tangential?
I have rebooted and noticed it was faster than the previous time.
May be my previous last boot did a fsck of the filesystem ? That's why it would be longer.
So may be I have complained too fast !
Anyway than you for your kind help . I didn't know about the "critical-path" analyze it a very usefull report.
You could also try disabling your WiFi connection in your bios (if possible).
There is a possibility WiFi could be contributing to your delay, so it wouldn't hurt to take it out of the equation if you are only using Ethernet
I want to keep the possibility to wander in the house with the laptop!
I have to keep the wifi for that.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.