What are safe to mask to accelerate boot

I use Manjaro on HDD not SSD. I want to know what are safe to mask that way I can speed up boot without damaging my laptop

systemd-analyze

Startup finished in 6.496s (firmware) + 2.654s (loader) + 3.783s (kernel) + 24.195s (userspace) = 37.129s 
graphical.target reached after 19.689s in userspace

systemd-analyze blame

12.262s udisks2.service
10.221s dev-sda2.device
 9.641s systemd-journal-flush.service
 8.395s polkit.service
 4.514s cups.service
 4.119s apparmor.service
 3.575s upower.service
 3.378s dev-loop2.device
 3.362s dev-loop1.device
 3.356s dev-loop3.device
 3.297s dev-loop0.device
 2.798s systemd-tmpfiles-setup-dev.service
 2.610s systemd-udevd.service
 2.576s tlp.service
 2.138s run-media-soumi-Luna.mount
 2.024s var-lib-snapd-snap-core18-2128.mount
 1.955s modprobe@drm.service
 1.841s systemd-fsck@dev-disk-by\x2duuid-3DC6\x2dA581.service
 1.761s var-lib-snapd-snap-gtk\x2dcommon\x2dthemes-1515.mount
 1.756s var-lib-snapd-snap-snapd-12883.mount
 1.756s var-lib-snapd-snap-gnome\x2d3\x2d28\x2d1804-161.mount
 1.558s systemd-random-seed.service
 1.295s systemd-sysctl.service
 1.228s systemd-modules-load.service
 1.015s lvm2-monitor.service
  995ms user@1000.service
  813ms NetworkManager.service
  800ms wpa_supplicant.service
  799ms systemd-journald.service
  763ms boot-efi.mount
  594ms avahi-daemon.service
  561ms modprobe@fuse.service
  494ms rtkit-daemon.service
  469ms systemd-rfkill.service
  421ms colord.service
  320ms alsa-restore.service
  309ms linux-module-cleanup.service
  284ms systemd-udev-trigger.service
  276ms systemd-logind.service
  235ms sys-kernel-config.mount
  217ms systemd-tmpfiles-setup.service
  212ms systemd-backlight@backlight:intel_backlight.service
  160ms systemd-binfmt.service
  141ms systemd-timesyncd.service
  137ms dev-hugepages.mount
  136ms dev-mqueue.mount
  134ms sys-kernel-debug.mount
  133ms sys-kernel-tracing.mount
  131ms kmod-static-nodes.service
  128ms modprobe@configfs.service
   95ms dev-disk-by\x2duuid-d27dc7f4\x2dce4f\x2d48b8\x2dba69\x2d9971d9cc4ca0.swap
   69ms systemd-update-utmp.service
   60ms systemd-remount-fs.service
   22ms user-runtime-dir@1000.service
   19ms sys-fs-fuse-connections.mount
    6ms systemd-user-sessions.service
    3ms tmp.mount
    3ms proc-sys-fs-binfmt_misc.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 @19.689s
└─sddm.service @19.689s
  └─systemd-user-sessions.service @19.682s +6ms
    └─network.target @19.678s
      └─wpa_supplicant.service @23.210s +800ms
        └─dbus.service @18.860s
          └─basic.target @18.853s
            └─sockets.target @18.853s
              └─dbus.socket @18.853s
                └─sysinit.target @18.751s
                  └─systemd-timesyncd.service @18.609s +141ms
                    └─systemd-tmpfiles-setup.service @18.303s +217ms
                      └─systemd-journal-flush.service @8.660s +9.641s
                        └─systemd-journald.service @7.861s +799ms
                          └─haveged.service @7.859s
                            └─systemd-tmpfiles-setup-dev.service @4.147s +2.798s
                              └─kmod-static-nodes.service @3.779s +131ms
                                └─systemd-journald.socket @3.652s
                                  └─-.mount @3.580s
                                    └─-.slice @3.580s

neofetch

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   soumi@Hori 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   ---------- 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   OS: Manjaro Linux x86_64 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Host: Aspire A514-53 V1.16 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Kernel: 5.14.2-1-MANJARO 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Uptime: 14 mins 
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   Packages: 1389 (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: 2627MiB / 7630MiB

inxi -Fazy

System:
  Kernel: 5.14.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64 
  root=UUID=3e711149-8ebe-45af-8e9a-78a1cdacff3f rw quiet apparmor=1 
  security=apparmor resume=UUID=d27dc7f4-ce4f-48b8-ba69-9971d9cc4ca0 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Acer product: Aspire A514-53 v: V1.16 serial: <filter> 
  Chassis: type: 10 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: 31.7 Wh (100.0%) condition: 31.7/53.0 Wh (59.9%) 
  volts: 16.5 min: 15.4 model: PANASONIC KT004 AP19B5L type: Li-ion 
  serial: <filter> status: Full cycles: 386 
CPU:
  Info: Dual Core model: Intel Core i3-1005G1 bits: 64 type: MT MCP 
  arch: Ice Lake family: 6 model-id: 7E (126) stepping: 5 microcode: A6 cache: 
  L2: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 9524 
  Speed: 1702 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 1702 2: 1659 
  3: 1625 4: 1715 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  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: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel Iris Plus Graphics G1 vendor: Acer Incorporated ALI 
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:8a56 class-ID: 0300 
  Device-2: Chicony HD User Facing type: USB driver: uvcvideo bus-ID: 1-6:3 
  chip-ID: 04f2:b64f class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 112 size: 309x173mm (12.2x6.8") 
  diag: 354mm (13.9") 
  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 alternate: snd_sof_pci_intel_icl 
  bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0401 
  Sound Server-1: ALSA v: k5.14.2-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 1.9.19 running: no 
  Sound Server-4: PulseAudio v: 15.0 running: yes 
  Sound Server-5: 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 chip-ID: 8086:34f0 class-ID: 0280 
  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 chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp1s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-10:4 chip-ID: 8087:0026 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: 
  hardware: no software: no address: see --recommends 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: 4060 bus-ID: 00:17.0 chip-ID: 8086.282a rev: 30 class-ID: 0104 
  Device-1: md126 maj-min: 9:126 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 maj-min: 259:0 size: 476.94 GiB state: S 
  Device-2: md127 maj-min: 9:127 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 maj-min: 259:5 size: 27.25 GiB state: S 
Drives:
  Local Storage: total: 1.4 TiB used: 138.47 GiB (9.6%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: HBRPEKNX0202A 
  size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s 
  lanes: 2 type: SSD serial: <filter> rev: G002 temp: 27.9 C 
  ID-2: /dev/nvme1n1 maj-min: 259:5 vendor: Intel model: HBRPEKNX0202AO 
  size: 27.25 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s 
  lanes: 2 type: SSD serial: <filter> rev: K5110440 temp: 32.9 C 
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM048-2E7172 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 5400 serial: <filter> rev: 0001 scheme: MBR 
Partition:
  ID-1: / raw-size: 400 GiB size: 392.65 GiB (98.16%) used: 66.4 GiB (16.9%) 
  fs: ext4 dev: /dev/sda2 maj-min: 8:2 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 816 KiB (0.2%) fs: vfat dev: /dev/sda4 maj-min: 8:4 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda3 maj-min: 8:3 
Sensors:
  System Temperatures: cpu: 62.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 207 Uptime: 15m wakeups: 1 Memory: 7.45 GiB 
  used: 2.74 GiB (36.7%) Init: systemd v: 249 tool: systemctl Compilers: 
  gcc: 11.1.0 Packages: apt: 0 pacman: 1389 lib: 392 flatpak: 0 Shell: Zsh 
  v: 5.8 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06

Hello @soumi :wink:

SNAP

These ones are caused by installed snaps:

just replace all snap apps with normal ones and remove snapd completely. This way you will boost up your boot time radically :wink:

If you don’t use lvm volumes, then this can be masked.

Scheduler

Add/Create this udev rule:

file: /etc/udev/rules.d/60-ioschedulers.rules

# set scheduler for NVMe
ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none"
# set scheduler for SSD and eMMC
ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
# set scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"

It will change the scheduler from (default) mq-deadline to bfq on rotational disks, which uses a bit more CPU power, but has a better throughput.

Mounts

Set Systemd to mount external drives, which are not part of the root directory when you access them and not on boot.

Example:
file: /etc/fstab

LABEL=data		/media/data	ext4		defaults,noauto,x-systemd.automount,x-systemd.idle-timeout=30min	0 2

This way mount process will not delay the boot time and unmounted after 30min idle, but expect a delay on first access of the mountpoint.

3 Likes

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