Suddenly facing a slow boot

So I’ve been using Manjaro and Linux for some time now. It works great and I love it. But for some reason, the boot up time has increased a lot. Relevant system info:

➜  ~ sudo systemd-analyze blame | head -n 20
8.846s NetworkManager-wait-online.service
4.377s systemd-fsck@dev-disk-by\x2duuid-8CFE\x2dD1A8.service
4.302s dev-sda5.device
4.110s ModemManager.service
3.847s systemd-fsck@dev-disk-by\x2duuid-88cbd686\x2d0919\x2d4cd2\x2d8340\x2d8a56f61806b7.service
2.494s cups.service
2.282s polkit.service
2.110s NetworkManager.service
1.929s tlp.service
1.917s bluetooth.service
1.896s dbus.service
1.862s systemd-logind.service
1.734s systemd-journal-flush.service
1.498s user@1000.service
1.406s ldconfig.service
1.385s systemd-udevd.service
1.179s udisks2.service
 907ms systemd-sysusers.service
 797ms lvm2-monitor.service
 474ms boot-efi.mount

➜  ~ inxi -Fza
System:
  Kernel: 5.15.65-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=043f7aaa-6d82-4897-9e39-c3005478ac00 rw quiet
    udev.log_priority=3 resume=UUID=033994e3-087b-4ec3-9977-da894e7da64a
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 15-da0xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 84A6 v: 80.50 serial: <superuser required> UEFI: Insyde
    v: F.36 date: 02/03/2021
Battery:
  ID-1: BAT1 charge: 14.5 Wh (37.5%) condition: 38.7/41.0 Wh (94.2%)
    volts: 12.3 min: 11.4 model: Hewlett-Packard PABAS0241231 type: Li-ion
    serial: <filter> status: charging
CPU:
  Info: model: Intel Core i3-7020U bits: 64 type: MT MCP
    arch: Amber/Kaby Lake note: check gen: core 7 level: v3 built: 2017
    process: Intel 14nm family: 6 model-id: 0x8E (142) stepping: 9
    microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 556 high: 585 min/max: 400/2300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 515 2: 564 3: 585 4: 561
    bogomips: 18406
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:5916 class-ID: 0300
  Device-2: Chicony HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-5:3 chip-ID: 04f2:b65d class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: AU Optronics 0x38ed built: 2017 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.65-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.57 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 01:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter
    vendor: Hewlett-Packard driver: rtw_8723de v: N/A modules: rtw88_8723de
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0
    chip-ID: 10ec:d723 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth 4.2 Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-6:4 chip-ID: 0bda:b009 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 5060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
    class-ID: 0104
Drives:
  Local Storage: total: 465.76 GiB used: 128.3 GiB (27.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD5000BEKT-75KA9T0 size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: GPT
Partition:
  ID-1: / raw-size: 80 GiB size: 78.19 GiB (97.74%) used: 17.94 GiB (22.9%)
    fs: ext4 dev: /dev/sda5 maj-min: 8:5
  ID-2: /boot/efi raw-size: 500 MiB size: 496 MiB (99.20%) used: 25.6 MiB
    (5.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 220.06 GiB size: 215.54 GiB (97.95%) used: 110.34
    GiB (51.2%) fs: ext4 dev: /dev/sda6 maj-min: 8:6
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 15 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda4 maj-min: 8:4
Sensors:
  System Temperatures: cpu: 40.0 C pch: 35.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 220 Uptime: 4m wakeups: 1 Memory: 11.48 GiB used: 2.6 GiB
  (22.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1389
  libs: 361 tools: pamac pm: flatpak pkgs: 0 Shell: Zsh v: 5.9
  running-in: konsole inxi: 3.3.21

➜  ~ journalctl --boot --priority=3
Sep 18 09:06:56 MELON kernel: ACPI Error: No handler for Region [RCM0] (00000000e527b465) [SystemCMOS] (20210730/evregion-130)
Sep 18 09:06:56 MELON kernel: ACPI Error: Region SystemCMOS (ID=5) has no handler (20210730/exfldio-261)
Sep 18 09:06:56 MELON kernel: ACPI Error: Aborting method \_SB.WMID.ESDT due to previous error (AE_NOT_EXIST) (20210730/psparse-529)
Sep 18 09:06:56 MELON kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.EC0._Q42 due to previous error (AE_NOT_EXIST) (20210730/psparse-529)
Sep 18 09:07:19 MELON systemd[1]: Failed to start pkgfile database update.
Sep 18 09:07:21 MELON systemd[759]: Failed to start Update XDG user dir configuration.
Sep 18 09:07:39 MELON sddm-helper[808]: gkr-pam: unable to locate daemon control file
Sep 18 09:08:01 MELON systemd[810]: Failed to start Powerdevil.
Sep 18 09:08:08 MELON kded5[866]: org.kde.plasma.dataengine.geolocation: error:  "Unknown host location.services.mozilla.com: Host not found"
Sep 18 09:08:08 MELON kded5[866]: org.kde.plasma.dataengine.geolocation: error:  "Unknown host location.services.mozilla.com: Host not found"
Sep 18 09:08:08 MELON bluetoothd[510]: Failed to set mode: Blocked through rfkill (0x12)

you have a HDD, so they took longer to boot …
you can disable this:

8.846s NetworkManager-wait-online.service

its not very likely that you are connect to a server during boot or to a home network, so you can mask it:

sudo systemctl disable NetworkManager-wait-online.service
sudo systemctl mask NetworkManager-wait-online.service

if you have issues, you can reenable it again:

sudo systemctl unmask NetworkManager-wait-online.service
sudo systemctl enable NetworkManager-wait-online.service


you can mask this, if you are not using modem:

4.110s ModemManager.service

use the command above to do that, or better disable it in bios


if you are not using printing you can mask this:

2.494s cups.service


if you are not using bluetooth, you can disable it, either in system settings, or better from bios:

1.917s bluetooth.service


in logs you have this:

Failed to start pkgfile database update.

which you can also disable:

sudo systemctl disable pkgfile-update.service
sudo systemctl disable pkgfile-update.timer
sudo systemctl mask pkgfile-update.service
sudo systemctl mask pkgfile-update.timer

reboot and check if it helped

1 Like