Boot time on SSD

Well I have boot times of 20-30s on SSD. Now I’m not complaining, but can it get faster? Or I’m being greedy? I just want to rival the fast boot times of my friend’s Mac.

My inxi -Fazy

System:
  Kernel: 5.11.18-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.11-x86_64 
  root=UUID=76839173-ded3-47ed-b743-7d503298909d rw quiet apparmor=1 
  security=apparmor resume=UUID=0eb2fb6f-7b97-4079-afe0-7595022800e5 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.21.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 15-dc1xxx v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 8575 v: 21.16 serial: <filter> UEFI: AMI v: F.21 
  date: 11/13/2020 
Battery:
  ID-1: BAT0 charge: 31.2 Wh (70.6%) condition: 44.2/44.2 Wh (100.0%) 
  volts: 11.5 min: 11.6 model: HP Primary type: Li-ion serial: N/A 
  status: Discharging 
CPU:
  Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: DE cache: L2: 12 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62431 
  Speed: 900 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 900 2: 900 3: 899 
  4: 900 5: 900 6: 900 7: 896 8: 900 9: 899 10: 900 11: 900 12: 895 
  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: 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: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Hewlett-Packard driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] 
  vendor: Hewlett-Packard driver: nvidia v: 460.73.01 
  alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1f91 
  class-ID: 0300 
  Device-3: Quanta HP Wide Vision HD Camera type: USB driver: uvcvideo 
  bus-ID: 1-6:3 chip-ID: 0408:5300 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.0.3 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403 
  Sound Server-1: ALSA v: k5.11.18-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.26 running: no 
Network:
  Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel 
  port: 5000 bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000 bus-ID: 03:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: eno1 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB 
  driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa class-ID: e001 
  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: 10 class-ID: 0104 
Drives:
  Local Storage: total: 1.14 TiB used: 60.13 GiB (5.1%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: PC SN720 SDAPNTW-256G-1006 size: 238.47 GiB block-size: 
  physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD 
  serial: <filter> rev: 10112006 temp: 32.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS721010A9E630 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  rotation: 7200 rpm serial: <filter> rev: A3T0 scheme: GPT 
Partition:
  ID-1: / raw-size: 40 GiB size: 39.12 GiB (97.80%) used: 14 GiB (35.8%) 
  fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 82.2 MiB (32.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  ID-3: /home raw-size: 196.95 GiB size: 192.86 GiB (97.92%) 
  used: 46.05 GiB (23.9%) fs: ext4 dev: /dev/sda7 maj-min: 8:7 
Swap:
  Kernel: swappiness: 1 (default 60) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 10 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p6 maj-min: 259:6 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 274 Uptime: 1h 40m wakeups: 1 Memory: 7.58 GiB 
  used: 3.77 GiB (49.8%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: 10.2.0 Packages: pacman: 1369 lib: 433 Shell: Bash v: 5.1.4 
  running-in: yakuake inxi: 3.3.04 

Now, systemd analyze

Startup finished in 3.762s (firmware) + 1.244s (loader) + 2.498s (kernel) + 2.869s (userspace) = 10.374s 
graphical.target reached after 2.086s in userspace

Also, systemd-analyze blame

15.116s pkgfile-update.service                                                                   
 1.383s lvm2-monitor.service                                                                     
  781ms tlp.service                                                                              
  552ms systemd-modules-load.service                                                             
  287ms udisks2.service                                                                          
  276ms dev-nvme0n1p5.device                                                                     
  239ms systemd-random-seed.service                                                              
  161ms user@1000.service                                                                        
  160ms systemd-fsck@dev-disk-by\x2duuid-2403232d\x2d4b8e\x2d4456\x2dada1\x2d6a88b09f3c6a.service
  133ms systemd-tmpfiles-clean.service                                                           
  116ms ldconfig.service                                                                         
  101ms systemd-journal-flush.service                                                            
   97ms apparmor.service                                                                         
   93ms systemd-udevd.service                                                                    
   83ms upower.service                                                                           
   81ms systemd-udev-trigger.service                                                             
   66ms polkit.service                                                                           
   53ms NetworkManager-wait-online.service                                                       
   46ms boot-efi.mount                                                                           
   46ms systemd-journald.service                                                                 
   41ms systemd-timesyncd.service                                                                
   40ms ModemManager.service                                                                     
   39ms avahi-daemon.service                                                                     
   39ms bluetooth.service                                                                        
   37ms NetworkManager.service                                                                   
   37ms systemd-fsck@dev-disk-by\x2duuid-C6FD\x2d5E16.service                                    
   34ms systemd-logind.service                                                                   
   26ms systemd-rfkill.service                                                                   
   25ms dev-disk-by\x2duuid-0eb2fb6f\x2d7b97\x2d4079\x2dafe0\x2d7595022800e5.swap                
   16ms systemd-sysusers.service                                                                 
   15ms systemd-tmpfiles-setup-dev.service                                                       
   13ms systemd-binfmt.service                                                                   
   12ms systemd-tmpfiles-setup.service                                                           
   11ms modprobe@fuse.service                                                                    
   10ms systemd-journal-catalog-update.service                                                   
   10ms systemd-sysctl.service                                                                   
   10ms dev-hugepages.mount                                                                      
   10ms dev-mqueue.mount                                                                         
   10ms sys-kernel-debug.mount                                                                   
    9ms wpa_supplicant.service                                                                   
    9ms sys-kernel-tracing.mount                                                                 
    8ms kmod-static-nodes.service                                                                
    8ms modprobe@drm.service                                                                     
    8ms home.mount                                                                               
    8ms modprobe@configfs.service                                                                
    7ms systemd-remount-fs.service                                                               
    5ms systemd-update-utmp.service                                                              
    5ms user-runtime-dir@1000.service                                                            
    4ms linux-module-cleanup.service                                                             
    4ms systemd-backlight@backlight:intel_backlight.service                                      
    3ms rtkit-daemon.service                                                                     
    2ms systemd-user-sessions.service                                                            
    2ms systemd-update-done.service                                                              
    2ms proc-sys-fs-binfmt_misc.mount                                                            
    2ms sys-kernel-config.mount                                                                  
    2ms sys-fs-fuse-connections.mount                                                            
    1ms tmp.mount 

Sorry if this is a noob or unnecessary question. I know questions of similar kind exist, but they’re usually complaining about slow bootup times, I’m more concerned about optimization.
Lastly, thanks to the makers and maintainers of Manjaro!

You could mask lvm2-monitor.service and ModemManager.service
But, i think the issue is that you have your home on the HDD, so most likely some configs are loaded slower because of that, hence the “feeling” that system si a bit on the slow side, but

is not that bad … :slight_smile:

it’s kde, it has the slowest boot to desktop.
i just built this minimal+gnome on my rpi400, not even started to tweak the boot yet.