How to speed up boot for 5.14.2-1-MANJARO?

How to know which systems are safe to mask and not?

systemd-analyze

Startup finished in 6.250s (firmware) + 2.629s (loader) + 3.873s (kernel) + 22.577s (userspace) = 35.330s 
graphical.target reached after 20.938s in userspace

systemd-analyze blame

9.214s systemd-journal-flush.service
4.913s udisks2.service
4.826s dev-sda2.device
3.028s polkit.service
2.716s dev-loop2.device
2.704s apparmor.service
2.293s cups.service
2.210s modprobe@drm.service
2.138s dev-loop0.device
2.114s upower.service
2.036s dev-loop3.device
2.009s systemd-random-seed.service
1.759s dev-loop1.device
1.758s systemd-fsck@dev-disk-by\x2duuid-3DC6\x2dA581.service
1.662s systemd-udevd.service
1.651s systemd-sysctl.service
1.636s tlp.service
1.415s NetworkManager.service
1.228s user@1000.service
1.069s avahi-daemon.service
 764ms systemd-rfkill.service

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 @20.938s
└─multi-user.target @20.937s
  └─ModemManager.service @20.295s +641ms
    └─polkit.service @17.264s +3.028s
      └─basic.target @17.249s
        └─sockets.target @17.249s
          └─dbus.socket @17.249s
            └─sysinit.target @17.180s
              └─systemd-timesyncd.service @17.041s +138ms
                └─systemd-tmpfiles-setup.service @16.681s +268ms
                  └─systemd-journal-flush.service @7.466s +9.214s
                    └─systemd-journald.service @7.331s +133ms
                      └─haveged.service @7.329s
                        └─systemd-tmpfiles-setup-dev.service @6.988s +338ms
                          └─kmod-static-nodes.service @6.782s +135ms
                            └─systemd-journald.socket @6.673s
                              └─system.slice @6.575s
                                └─-.slice @6.575s


inxi -Fxz

System:    Kernel: 5.14.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: KDE Plasma 5.22.5 
           Distro: Manjaro Linux base: Arch Linux 
Machine:   Type: Laptop System: Acer product: Aspire A514-53 v: V1.16 serial: <filter> 
           Mobo: IL model: Sneezy_IL v: V1.16 serial: <filter> UEFI: Insyde v: 1.16 date: 01/18/2021 
Battery:   ID-1: BAT0 charge: 32.5 Wh (98.5%) condition: 33.0/53.0 Wh (62.3%) volts: 16.7 min: 15.4 
           model: PANASONIC KT004 AP19B5L status: Charging 
CPU:       Info: Dual Core model: Intel Core i3-1005G1 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache: L2: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 9524 
           Speed: 1008 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 1008 2: 1053 3: 1085 4: 1051 
Graphics:  Device-1: Intel Iris Plus Graphics G1 vendor: Acer Incorporated ALI driver: i915 v: kernel bus-ID: 00:02.0 
           Device-2: Chicony HD User Facing type: USB driver: uvcvideo bus-ID: 1-6:3 
           Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 21.2.1 direct render: Yes 
Audio:     Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus-ID: 00:1f.3 
           Sound Server-1: ALSA v: k5.14.2-1-MANJARO running: yes 
           Sound Server-2: JACK v: 1.9.19 running: no 
           Sound Server-3: PulseAudio v: 15.0 running: yes 
           Sound Server-4: PipeWire v: 0.3.35 running: yes 
Network:   Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel port: 4000 bus-ID: 00:14.3 
           IF: wlp0s20f3 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Acer Incorporated ALI driver: r8169 
           v: kernel port: 3000 bus-ID: 01:00.0 
           IF: enp1s0 state: down mac: <filter> 
Bluetooth: Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-10:4 
           Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: hardware: no software: yes 
           address: see --recommends 
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 bus-ID: 00:17.0 
           Device-1: md126 type: mdraid level: N/A status: inactive size: N/A 
           Info: report: N/A blocks: 2136 chunk-size: N/A 
           Components: Online: N/A Spare: 0: nvme0n1 
           Device-2: md127 type: mdraid level: N/A status: inactive size: N/A 
           Info: report: N/A blocks: 2944 chunk-size: N/A 
           Components: Online: N/A Spare: 0: nvme1n1 
Drives:    Local Storage: total: 1.4 TiB used: 32.21 GiB (2.2%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: HBRPEKNX0202A size: 476.94 GiB temp: 28.9 C 
           ID-2: /dev/nvme1n1 vendor: Intel model: HBRPEKNX0202AO size: 27.25 GiB temp: 34.9 C 
           ID-3: /dev/sda vendor: Seagate model: ST1000LM048-2E7172 size: 931.51 GiB 
Partition: ID-1: / size: 392.65 GiB used: 32.21 GiB (8.2%) fs: ext4 dev: /dev/sda2 
           ID-2: /boot/efi size: 511 MiB used: 308 KiB (0.1%) fs: vfat dev: /dev/sda4 
Swap:      ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 50.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 188 Uptime: 5m Memory: 7.45 GiB used: 2.16 GiB (29.0%) Init: systemd Compilers: gcc: 11.1.0 
           Packages: 1287 Shell: Zsh v: 5.8 inxi: 3.3.06

neofetch

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   soumi@Hori 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ---------- 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro Linux x86_64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: Aspire A514-53 V1.16 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 5.14.2-1-MANJARO 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 6 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 1287 (pacman) 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Shell: bash 5.1.8 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Resolution: 1366x768 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   DE: Plasma 5.22.5 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   WM: KWin 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Theme: Breeze Light [Plasma], Breeze [GTK2/3] 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Icons: breeze [Plasma], breeze [GTK2/3] 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Terminal: konsole 
                               CPU: Intel i3-1005G1 (4) @ 3.400GHz 
                               GPU: Intel Iris Plus Graphics G1 
                               Memory: 2004MiB / 7630MiB   

Just get an SSD. It will boot instantly.

INTEL SSDPEKNW Drive 512 GB
Startup finished in 2.456s (kernel) + 1.838s (userspace) = 4.294s
graphical.target reached after 1.354s in userspace

no Speedup needed :slight_smile:

My SSD has windows and dual boot is not an option for me due to storage problems.

ok, so 20…30 seconds on hard disk is normal

Clean your journals so it doesn’t take 10 seconds on boot to do so.

1 Like

How can I do that?

https://wiki.archlinux.org/title/Systemd/Journal#Journal_size_limit

1 Like

With some optimization is possible to give speedup to SSD (SSD 860 EVO 500GB) :slight_smile:

Startup finished in 874ms (kernel) + 695ms (initrd) + 477ms (userspace) = 2.047s 
graphical.target reached after 477ms in userspace

But I learned to know my system; I disabled a lot of things, I deeply set many parts of the system: I can’t recommend my tweaks to other people.

I have learnt, never change a running System. Old and good wisdom…

1 Like