Really, really slow boot time

Hi everyone. I am very happy to use Manjaro as a new user. However, the boot time is so slow and I can't really help it. Can anyone be so kind and have a look at my system as well as helping me, if that's possible. Here's output of systemd-analyze blame

systemd-analyze blame                                                                                                                    ✔ 
19.358s systemd-modules-load.service
14.347s systemd-journal-flush.service
13.824s dev-sda4.device
12.751s dev-loop3.device
12.566s dev-loop1.device
12.562s dev-loop4.device
11.764s dev-loop8.device
11.546s dev-loop7.device
11.319s dev-loop5.device
10.380s snapd.service
 9.289s NetworkManager-wait-online.service
 9.146s dev-loop2.device
 8.342s dev-loop6.device
 7.452s dev-loop0.device
 4.856s systemd-udevd.service
 3.737s apparmor.service
 3.521s polkit.service
 3.331s ModemManager.service
 3.225s systemd-tmpfiles-clean.service
 2.892s avahi-daemon.service
 2.891s bluetooth.service
 2.882s dbus.service
 2.839s systemd-logind.service
 2.837s systemd-fsck@dev-disk-by\x2duuid-6A78\x2d4D66.service
 2.508s cups.service
 2.207s lvm2-monitor.service
 1.941s systemd-tmpfiles-setup-dev.service
 1.884s NetworkManager.service
 1.697s user@1000.service
 1.568s snapd.apparmor.service
 1.564s udisks2.service
 1.526s systemd-journald.service
 1.522s boot-efi.mount
 1.376s systemd-rfkill.service
 1.313s var-lib-snapd-snap-core18-2409.mount
 1.022s var-lib-snapd-snap-core18-2538.mount
  827ms var-lib-snapd-snap-ffmpeg-1286.mount
  812ms systemd-random-seed.service
  804ms var-lib-snapd-snap-webstorm-274.mount
  736ms upower.service
  679ms wpa_supplicant.service
  660ms var-lib-snapd-snap-pycharm\x2dprofessional-295.mount
  613ms dev-sda3.swap
  596ms var-lib-snapd-snap-webstorm-272.mount
  562ms var-lib-snapd-snap-pycharm\x2dprofessional-297.mount
  556ms accounts-daemon.service
  544ms rtkit-daemon.service
  513ms systemd-tmpfiles-setup.service
  404ms systemd-udev-trigger.service
  386ms var-lib-snapd-snap-snapd-16010.mount
  342ms pkgfile-update.service
  268ms systemd-binfmt.service
  252ms systemd-backlight@backlight:intel_backlight.service
  236ms var-lib-snapd-snap-snapd-16292.mount
  199ms packagekit.service
  195ms systemd-timesyncd.service
  144ms systemd-user-sessions.service
  143ms systemd-update-utmp.service
  136ms modprobe@fuse.service
  103ms tmp.mount
   99ms systemd-remount-fs.service
   98ms pamac-daemon.service
   85ms dev-hugepages.mount
   83ms dev-mqueue.mount
   80ms sys-kernel-debug.mount
   78ms sys-kernel-tracing.mount
   76ms kmod-static-nodes.service
   72ms proc-sys-fs-binfmt_misc.mount
   69ms modprobe@drm.service
   68ms modprobe@configfs.service
   57ms alsa-restore.service
   22ms user-runtime-dir@1000.service
   11ms sys-kernel-config.mount
    8ms sys-fs-fuse-connections.mount
    6ms systemd-sysctl.service
    1ms snapd.socket

Since I am new to Manjaro, I am not really sure the stuff are part of the system and I am not dared to disable the stuff. Also, my CPU is i5 Gen 9 with 8GB RAM. Therefore, I don't think system specs slow me down.

  Kernel: 5.18.14-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.18-x86_64
    root=UUID=4dac87dc-c931-4aa1-a232-28d738966afd rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 5.24.6 tk: Qt v: 5.15.5 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: LENOVO product: 81LK v: IdeaPad L340-15IRH Gaming
    serial: <superuser required> Chassis: type: 10 v: IdeaPad L340-15IRH Gaming
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
    serial: <superuser required> UEFI: LENOVO v: BGCN35WW date: 01/20/2022
  ID-1: BAT0 charge: 10.9 Wh (27.3%) condition: 40.0/45.0 Wh (89.0%)
    volts: 10.9 min: 11.4 model: SMP L18M3PF1 type: Li-poly serial: <filter>
    status: discharging cycles: 632
  RAM: total: 7.64 GiB used: 3.52 GiB (46.1%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges
  Info: model: Intel Core i5-9300H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 9 built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158)
    stepping: 0xA (10) microcode: 0xF0
  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: 900 high: 901 min/max: 800/2400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 900 2: 901 3: 900 4: 900
    5: 900 6: 900 7: 900 8: 900 bogomips: 38408
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
  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
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Lenovo
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3e9b
    class-ID: 0300
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 515.57 non-free: 515.xx+ status: current (as of 2022-07)
    arch: Turing code: TUxxx process: TSMC 12nm built: 2018-22 pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1f91 class-ID: 0300
  Device-3: Acer Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:3
    chip-ID: 5986:2130 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,nv,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: BOE Display 0x0700 built: 2016 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 22.1.4
    direct render: Yes
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Sound Server-1: ALSA v: k5.18.14-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.56 running: yes
  Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter vendor: Lenovo
    ThinkPad E595 driver: rtw_8822be v: N/A pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 4000 bus-ID: 07:00.0 chip-ID: 10ec:b822 class-ID: 0280
  IF: wlp7s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp8s0 state: down mac: <filter>
  WAN IP: <filter>
  Device-1: Realtek RTL8822BE Bluetooth 4.2 Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 1-14:4 chip-ID: 0bda:b023 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
  Message: No logical block device data found.
  Message: No RAID data found.
  Local Storage: total: 1.14 TiB used: 211.99 GiB (18.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZALQ256HAJD-000L2 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: AL2QFXV7 temp: 28.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPZX-24Z10
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 1A05 scheme: GPT
  Message: No optical or floppy data found.
  ID-1: / raw-size: 63.91 GiB size: 62.61 GiB (97.96%) used: 41.39 GiB (66.1%)
    fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: N/A
    uuid: 4dac87dc-c931-4aa1-a232-28d738966afd
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 2.5 MiB
    (0.5%) fs: vfat dev: /dev/sda2 maj-min: 8:2 label: N/A uuid: 6A78-4D66
  ID-3: /run/media/william/Data raw-size: 863.1 GiB size: 863.09 GiB
    (100.00%) used: 61.75 GiB (7.2%) fs: exfat dev: /dev/sda1 maj-min: 8:1
    label: Data uuid: 4CFB-BE64
  ID-4: /run/media/william/Windows raw-size: 236.71 GiB size: 236.71 GiB
    (100.00%) used: 108.85 GiB (46.0%) fs: ntfs dev: /dev/nvme0n1p3
    maj-min: 259:3 label: Windows uuid: 3B5ACE22E8D769FB
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: 69a11e4c-4e29-426b-99d6-6794764f31f0
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 99 MiB fs: vfat label: N/A
    uuid: AAAC-E635
  ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 810 MiB fs: ntfs label: N/A
    uuid: B86EC08B6EC0443A
  ID-4: /dev/nvme0n1p5 maj-min: 259:5 size: 882 MiB fs: ntfs label: N/A
    uuid: E048CE7A48CE4ECA
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2 info: Lenovo Gaming Mouse type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 98mA
    chip-ID: 17ef:60be class-ID: 0301
  Device-2: 1-8:3 info: Acer Integrated Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 5986:2130
    class-ID: 0e02
  Device-3: 1-14:4 info: Realtek RTL8822BE Bluetooth 4.2 Adapter
    type: Bluetooth driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s
    power: 500mA chip-ID: 0bda:b023 class-ID: e001 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  System Temperatures: cpu: 46.0 C pch: 44.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  Processes: 255 Uptime: 1h 35m wakeups: 2832 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.0 clang: 14.0.6
  Packages: 1410 pacman: 1386 lib: 416 flatpak: 18 snap: 6 Shell: Zsh v: 5.9
  default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.20

Please reformat your post to make it readable.

From the first few lines, I guess you’re using a HDD (no SSD). There’s not much you can do other than buy a SSD.

If you don’t use snap, you can remove it which might give you a little speedup.

Edit: Thanks for editing. You can I still these jetbrains tools with their toolbox or from the repos (maybe AUR), so you can remove snap.


Yes, I am using a HDD and I have reformat my post. Also, I do use one to two snap apps.

1 Like

Thanks a lot. I do only use jetbrains apps from snap and I think I can use the toolbox instead. Also, do you know what is 19.358s systemd-modules-load.service and 14.347s systemd-journal-flush.service?
These two seems to take a lot of my boot time

check the link below, it’s a good point to start using and optimzing systemd-services.

Two suggestions:

  • reduce Grub timeout
  • display system messages at startup to help find delays.

This is how you do those two things:

sudo gedit /etc/default/grub

Edit the following two entries:

    set time (in seconds) to 1 or even 0
GRUB_CMDLINE_LINUX_DEFAULT "[...] quiet splash [...]"
    delete 'quiet splash'.

Then run:

sudo grub-mkconfig -o /boot/grub/grub.cfg

But I agree with @mithrial, the main culprit will be the HDD.

The way I understand system-analyze blame is that the values indicate at what time the process was completed. This would mean that systemd-journal-flush.service used 0.523s (14.347 - 13.824) and systemd-modules-load.service used 5.011s (19.358 - 14.347).
I hope someone will correct me if I am wrong.

Sounds like you’re thinking of systemd-analyze critical-chain
For example this is from my most recent boot:

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. @3.271s
└─sddm.service @3.270s
  └─systemd-user-sessions.service @3.255s +12ms
    └─ @3.249s
      └─NetworkManager.service @3.205s +43ms
        └─dbus.service @3.154s +47ms
          └─ @3.146s
            └─ @3.146s
              └─dbus.socket @3.146s
                └─ @3.142s
                  └─ufw.service @2.717s +424ms
                    └─systemd-sysctl.service @2.705s +9ms
                      └─systemd-modules-load.service @353ms +2.350s
                        └─systemd-journald.socket @340ms
                          └─-.mount @327ms
                            └─-.slice @327ms

systemd-analyze blame to discover which systemd units take the most time to initialize. The results are displayed in order by the amount of time they take to initialize, from most to least…Because many of these services start in parallel, the numbers may add up to significantly more than the total given by systemd-analyze time for everything after the BIOS

Thanks a lot. I have reduced grub timeout already. I think I may change the system to a SSD then

1 Like

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