Booting and login too slow after latest update

Today I updated the system. The booting takes more than double the time it used to take now.
It used to take 30 sec to login screen and 30 secs after login to get the panel and desktop.
It now takes 61 seconds to login and 70 seconds after login to get desktop.

I tried to reboot once more to see if it was just setting up delay. It is not.
Any reason for this?


System:
Kernel: 6.2.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=67e529b6-3635-47bd-a9fa-caa1106a1ae0 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: FUJITSU product: ESPRIMO P920 v: N/A
serial: Chassis: type: 6 v: C$WX01
serial:
Mobo: FUJITSU model: D3222-A1 v: S26361-D3222-A1
serial: BIOS: FUJITSU // American Megatrends v: 4.6.5.4
R1.41.0 for D3222-A1x date: 06/01/2016
CPU:
Info: model: Intel Core i7-4770 bits: 64 type: MT MCP arch: Haswell
gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
family: 6 model-id: 0x3C (60) stepping: 3 microcode: 0x28
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 8 MiB desc: 1x8 MiB
Speed (MHz): avg: 3709 high: 3900 min/max: 800/3900 scaling:
driver: intel_cpufreq governor: performance cores: 1: 3392 2: 3392 3: 3900
4: 3392 5: 3900 6: 3900 7: 3900 8: 3900 bogomips: 54268
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Graphics:
Device-1: AMD Baffin [Radeon Pro WX 4100] driver: amdgpu v: kernel
arch: GCN-4 code: Arctic Islands process: GF 14nm built: 2016-20 pcie:
gen: 3 speed: 8 GT/s lanes: 8 ports: active: DP-2 empty: DP-1,DP-3,DP-4
bus-ID: 01:00.0 chip-ID: 1002:67e3 class-ID: 0300 temp: 55.0 C
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 506x316mm (19.92x12.44")
s-diag: 597mm (23.49")
Monitor-1: DP-2 mapped: DisplayPort-1 model: Fujitsu Siemens P27T-7 LED
serial: built: 2013 res: 1920x1200 hz: 60 dpi: 82 gamma: 1.2
size: 596x335mm (23.46x13.19") diag: 685mm (27") ratio: 16:9 modes:
max: 1920x1200 min: 720x400
API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon Pro WX 4100
(polaris11 LLVM 15.0.7 DRM 3.49 6.2.10-zen1-1-zen) direct-render: Yes
Audio:
Device-1: Intel 8 Series/C220 Series High Definition Audio
vendor: Fujitsu Solutions driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:8c20 class-ID: 0403
Device-2: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / 560/560X]
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
bus-ID: 01:00.1 chip-ID: 1002:aae0 class-ID: 0403
API: ALSA v: k6.2.10-zen1-1-zen status: kernel-api tools: N/A
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: PipeWire v: 0.3.68 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Ethernet I217-LM vendor: Fujitsu Solutions driver: e1000e
v: kernel port: f040 bus-ID: 00:19.0 chip-ID: 8086:153a class-ID: 0200
IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac:
Drives:
Local Storage: total: 931.51 GiB used: 97.34 GiB (10.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM003-1ER162
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: rev: CC45 scheme: MBR
Partition:
ID-1: / raw-size: 109.82 GiB size: 109.82 GiB (100.00%)
used: 80.47 GiB (73.3%) fs: btrfs dev: /dev/sda9 maj-min: 8:9
ID-2: /home raw-size: 109.82 GiB size: 109.82 GiB (100.00%)
used: 80.47 GiB (73.3%) fs: btrfs dev: /dev/sda9 maj-min: 8:9
ID-3: /var/log raw-size: 109.82 GiB size: 109.82 GiB (100.00%)
used: 80.47 GiB (73.3%) fs: btrfs dev: /dev/sda9 maj-min: 8:9
ID-4: /var/tmp raw-size: 109.82 GiB size: 109.82 GiB (100.00%)
used: 80.47 GiB (73.3%) fs: btrfs dev: /dev/sda9 maj-min: 8:9
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.54 GiB used: 501.2 MiB (3.2%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 36.0 C pch: 43.0 C mobo: 34.0 C gpu: amdgpu
temp: 55.0 C
Fan Speeds (RPM): cpu: 1787 fan-2: 1210 gpu: amdgpu fan: 2083
Power: 12v: 11.98 5v: N/A 3.3v: 3.37 vbat: 3.12 gpu: amdgpu watts: 14.18
Info:
Processes: 323 Uptime: 3h 29m wakeups: 0 Memory: 15.54 GiB
used: 6.5 GiB (41.8%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 2095
libs: 411 tools: octopi,pamac,paru pm: appimage pkgs: 0 Shell: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.26
Garuda (2.6.16-1):
System install date:
Last full system update: 2023-04-13
Is partially upgraded: No
Relevant software: snapper NetworkManager mkinitcpio
Windows dual boot:
Failed units:


Please consider using code blocks for the garuda-inxi output.

Furthermore, what's the output of systemd-analyze blame and systemd-analyze critical-chain, use codeblock format for the output.

2 Likes

how do i use code blocks here?

You have the option in the editor as “Preformatted text”, or use the triple backtick like this:

image

1 Like

systemd-analyze blame


1min 34.241s linux-modules-cleanup.service
9.282s NetworkManager-wait-online.service
6.238s power-profiles-daemon.service
6.230s polkit.service
5.644s ModemManager.service
4.840s NetworkManager.service
2.911s dev-sda9.device
2.676s systemd-journal-flush.service
1.733s avahi-daemon.service
1.720s dbus.service
1.588s cups.service
1.190s upower.service
1.097s smb.service
1.026s home2.mount
996ms udisks2.service
928ms lvm2-monitor.service
762ms systemd-udevd.service
750ms systemd-vconsole-setup.service
741ms dev-zram0.swap
737ms garuda-pacman-snapshot-reject.service
726ms plymouth-start.servicefd
655ms systemd-logind.service
601ms nmb.service
430ms systemd-remount-fs.service
363ms systemd-random-seed.service
339ms systemd-tmpfiles-setup.service
333ms home.mount

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 @27.044s
└─multi-user.target @27.044s
└─smb.service @25.946s +1.097s
└─nmb.service @25.336s +601ms
└─network-online.target @25.223s
└─NetworkManager-wait-online.service @15.940s +9.282s
└─NetworkManager.service @11.091s +4.840s
└─dbus.service @9.359s +1.720s
└─basic.target @9.355s
└─sockets.target @9.355s
└─saned.socket @9.355s
└─sysinit.target @9.243s
└─systemd-timesyncd.service @9.140s +102ms
└─systemd-tmpfiles-setup.service @8.782s +339ms
└─systemd-journal-flush.service @6.093s +2.676s
└─var-log.mount @5.766s +309ms
└─dev-disk-by\x2duuid-67e529b6\x2d3635\x2d47bd\x2da9fa\x2dcaa1106a1ae0.device @>

thank you

Had it been a long time since the last update?
Or rather, if the list of updated packages is not long, you might think about looking (e.g., in the upstream sites) for information about those updates.
Otherwise, I guess you have done more than one reboot?
I think linux-modules-cleanup.service only appears on the first reboot after a new kernel. You might see if the situation improves with a new reboot.
Otherwise, maybe I would try changing kernel, such as switching to linux-lts for a while.
NetworkManager-wait-online.service could be probably disabled, see e.g. a relevant discussion here, but it's not that big time...

3 Likes

Apart from the suggestions provided above I can see that you are using mkinitcpio for generating initramfs. I would suggest that after trying out their suggestions you also switch to dracut from mkinitcpio. It massively improves your boot time.

Do remember to rebuild your initramfs after installing the relevant package as per the wiki instructions.

2 Likes

Yes. I did reboot 3 times before posting. It improved from the first time of course. But still was very slow. I will try to use dracut as suggested below and see how it helps.

This seems to have helped a little bit. After changing to dracut there was a reduction of 15 seconds or so. But I find that the linux-modules-cleanup service runs every time in both cases and while it runs in parallel, and continue to run after boot (it runs for 1.5 - 5.5 minutes), it does affect boot time. After disabling it, the speed increased by another 15-20 seconds. I am not sure if I should leave it disabled or not.

1 Like

You don’t necessarily need it, but you’ll need to remember to reboot after kernel updates (which is anyway a good practice with KDE).
A few interesting insights here:

Have you tried switching to the LTS kernel, just in case…?

1 Like

The problem is that if he disables the service but doesn't remove the package, the modules will continue being saved and the disk will end up filled with many residual modules on each kernel update...

@Narayanan if you want to disable that service, make sure to do the following:

systemctl start linux-modules-cleanup.service

that will clean any existent residual folder.

Then:

pacman -Rns kernel-modules-hook

This will remove the pacman hooks that are executed pre-/post-update and that will be fine.

2 Likes

I think I will leave the service as it is. Anyway I rarely reboot my office machine - only after updates usually. I did not know that reboot is not strictly necessary. So the boot time is not that big problem. I was just wondering why there was a sudden increase in the time.

Thank you. I will note these commands in case.

Thank you. I had seen that post yesterday.

I have no tried LTS boot. I will try next time I reboot and see if it makes any significant difference.

Thank you all for your help and suggestions.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.