Can I speed up my boot time?

! I am running a very old hardware

systemd-analyze

Startup finished in 2.838s (kernel) + 21.110s (userspace) = 23.949s 
graphical.target reached after 20.393s in userspace

systemd-analyze blame

8.071s lvm2-monitor.service
7.728s udisks2.service
7.685s dev-sda1.device
7.196s polkit.service
3.712s avahi-daemon.service
3.705s NetworkManager.service
3.625s systemd-logind.service
3.564s systemd-udevd.service
3.259s systemd-journal-flush.service
1.700s upower.service
1.522s ldconfig.service
1.293s ModemManager.service
1.037s alsa-restore.service
1.030s user@1000.service
 712ms tlp.service
 665ms systemd-tmpfiles-setup.service
 574ms systemd-sysusers.service
 442ms modprobe@drm.service
 359ms systemd-random-seed.service
 276ms dev-hugepages.mount
 275ms dev-mqueue.mount
 275ms sys-kernel-debug.mount
 274ms sys-kernel-tracing.mount
 273ms kmod-static-nodes.service
 265ms systemd-journal-catalog-update.service
 264ms modprobe@configfs.service
 263ms modprobe@fuse.service
 242ms systemd-udev-trigger.service
 229ms systemd-journald.service
 217ms systemd-sysctl.service
 212ms dev-disk-by\x2duuid-69f52ae2\x2d6ba0\x2d47de\x2db293\x2daad95bb50a6e.swap
 184ms systemd-modules-load.service
 183ms systemd-tmpfiles-setup-dev.service
  61ms systemd-remount-fs.service
  54ms systemd-user-sessions.service
  53ms rtkit-daemon.service
  51ms systemd-update-utmp.service
  34ms systemd-update-done.service
  30ms sys-kernel-config.mount
  21ms user-runtime-dir@1000.service
   4ms tmp.mount
   4ms sys-fs-fuse-connections.mount

systemd-analyze critical-chain

graphical.target @20.393s
└─multi-user.target @20.393s
  └─ModemManager.service @19.098s +1.293s
    └─polkit.service @11.899s +7.196s
      └─basic.target @11.885s
        └─sockets.target @11.885s
          └─dbus.socket @11.885s
            └─sysinit.target @11.866s
              └─systemd-update-done.service @11.831s +34ms
                └─ldconfig.service @10.306s +1.522s
                  └─local-fs.target @10.305s
                    └─local-fs-pre.target @10.305s
                      └─lvm2-monitor.service @2.234s +8.071s
                        └─systemd-journald.socket @2.223s
                          └─system.slice @2.149s
                            └─-.slice @2.149s

inxi -Fxz

System:
  Kernel: 5.4.134-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  Desktop: KDE Plasma 5.22.3 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop System: Hewlett-Packard product: HP Compaq 6000 Pro MT PC 
  v: N/A serial: <filter> 
  Mobo: Hewlett-Packard model: 3048h serial: <filter> BIOS: Hewlett-Packard 
  v: 786G2 v02.03 date: 10/19/2015 
CPU:
  Info: Dual Core model: Intel Core2 Duo E7500 bits: 64 type: MCP 
  arch: Penryn rev: A cache: L2: 3 MiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 11709 
  Speed: 1596 MHz min/max: 1596/2933 MHz Core speeds (MHz): 1: 1596 2: 1596 
Graphics:
  Device-1: NVIDIA GF116 [GeForce GTX 550 Ti] vendor: ASUSTeK 
  driver: nouveau v: kernel bus-ID: 01:00.0 
  Device-2: Microdia Dual Mode Camera (8006 VGA) type: USB 
  driver: hid-generic,usbhid bus-ID: 3-1:2 
  Display: x11 server: X.Org 1.20.11 driver: loaded: nouveau 
  unloaded: modesetting s-res: 1920x1080 
  OpenGL: renderer: NVCF v: 4.3 Mesa 21.1.5 direct render: Yes 
Audio:
  Device-1: Intel 82801JD/DO HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 
  Device-2: NVIDIA GF116 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 
  Device-3: JMTek LLC. USB PnP Audio Device type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 8-1:2 
  Sound Server-1: ALSA v: k5.4.134-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.32 running: no 
Network:
  Device-1: Intel 82567LM-3 Gigabit Network vendor: Hewlett-Packard 
  driver: e1000e v: 3.2.6-k port: 2100 bus-ID: 00:19.0 
  IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 232.89 GiB used: 8.2 GiB (3.5%) 
  ID-1: /dev/sda vendor: Samsung model: HD254GJ size: 232.89 GiB 
Partition:
  ID-1: / size: 219.51 GiB used: 8.2 GiB (3.7%) fs: ext4 dev: /dev/sda1 
Swap:
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) 
  dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 36.0 C mobo: N/A gpu: nouveau temp: 50.0 C 
  Fan Speeds (RPM): N/A gpu: nouveau fan: 1170 
Info:
  Processes: 141 Uptime: 9m Memory: 5.74 GiB used: 1.4 GiB (24.4%) 
  Init: systemd Compilers: gcc: N/A Packages: 1094 Shell: Bash v: 5.1.8 
  inxi: 3.3.05 

neofetch

neofetch 
██████████████████  ████████   sage@sage-pc 
██████████████████  ████████   ------------ 
██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Host: xx 
████████            ████████   Kernel: 5.4.134-1-MANJARO 
████████  ████████  ████████   Uptime: 10 mins 
████████  ████████  ████████   Packages: 1095 (pacman) 
████████  ████████  ████████   Shell: bash 5.1.8 
████████  ████████  ████████   Resolution: 1920x1080 
████████  ████████  ████████   DE: Plasma 5.22.3 
████████  ████████  ████████   WM: KWin 
████████  ████████  ████████   Theme: Breath [GTK2/3] 
████████  ████████  ████████   Icons: breath2 [GTK2/3] 
████████  ████████  ████████   Terminal: konsole 
                               CPU: Intel Core 2 Duo E7500 (2) @ 2.933GHz 
                               GPU: NVIDIA GeForce GTX 550 Ti 
                               Memory: 1188MiB / 5875MiB 

EDIT: Here is the .svg file!
https://svgshare.com/i/ZUA.svg

Asked and answered numerous times. Please use forum search before creating new threads.
In any case:
https://forum.manjaro.org/search?q=boot%20time

3 Likes

Yes, I’ve done all of those, it’s ~7s faster now

systemd-analyze

Startup finished in 2.284s (kernel) + 17.797s (userspace) = 20.081s 
graphical.target reached after 17.167s in userspace

systemd-analyze blame

7.174s polkit.service
5.188s udisks2.service
3.615s avahi-daemon.service
3.610s NetworkManager.service
3.544s systemd-logind.service
2.630s dev-sda1.device
1.701s ldconfig.service
1.172s ModemManager.service
 679ms systemd-tmpfiles-setup.service
 623ms tlp.service
 537ms systemd-udevd.service
 480ms systemd-sysusers.service
 461ms upower.service
 446ms systemd-journal-catalog-update.service
 432ms systemd-remount-fs.service
 391ms user@1000.service
 379ms modprobe@drm.service
 281ms systemd-random-seed.service
 276ms dev-hugepages.mount
 275ms dev-mqueue.mount
 274ms sys-kernel-debug.mount
 274ms sys-kernel-tracing.mount
 273ms kmod-static-nodes.service
 272ms modprobe@configfs.service
 270ms modprobe@fuse.service
 270ms rtkit-daemon.service
 264ms systemd-udev-trigger.service
 230ms systemd-journald.service
 219ms systemd-tmpfiles-setup-dev.service
 210ms systemd-sysctl.service
 167ms dev-disk-by\x2duuid-69f52ae2\x2d6ba0\x2d47de\x2db293\x2daad95bb50a6e.swap
 143ms systemd-modules-load.service
 136ms systemd-user-sessions.service
 126ms systemd-journal-flush.service
  93ms systemd-update-utmp.service
  71ms alsa-restore.service
  23ms user-runtime-dir@1000.service
  21ms sys-kernel-config.mount
  21ms systemd-update-done.service
   5ms tmp.mount
   4ms sys-fs-fuse-connections.mount

systemd-analyze critical-chain

graphical.target @17.167s
└─multi-user.target @17.167s
  └─ModemManager.service @15.994s +1.172s
    └─polkit.service @8.816s +7.174s
      └─basic.target @8.805s
        └─sockets.target @8.805s
          └─dbus.socket @8.805s
            └─sysinit.target @8.771s
              └─systemd-update-done.service @8.749s +21ms
                └─ldconfig.service @7.046s +1.701s
                  └─local-fs.target @7.045s
                    └─tmp.mount @7.039s +5ms
                      └─swap.target @7.038s
                        └─dev-disk-by\x2duuid-69f52ae2\x2d6ba0\x2d47de\x2db293\x2daad95bb50a6>
                          └─dev-disk-by\x2duuid-69f52ae2\x2d6ba0\x2d47de\x2db293\x2daad95bb50>

I’ve done this too: Manjaro booting is very slow (40sec) - #17 by The_Quantum_Alpha

Can I do anything else? :slight_smile:

You can disable Modem Manager if you do not use dial-up or mobile broadband or bluetooth tethering.

sudo systemctl disable ModemManager.service

1 Like

Okay, thank you, but now I am getting those:

systemd-analyze

Startup finished in 2.278s (kernel) + 14.308s (userspace) = 16.587s 
graphical.target reached after 14.303s in userspace

systemd-analyze blame

15.239s udisks2.service
14.499s polkit.service
 5.208s dev-sda1.device
 2.505s systemd-modules-load.service
 2.313s systemd-udevd.service
 2.203s avahi-daemon.service
 2.198s NetworkManager.service
 2.122s systemd-journal-flush.service
 2.095s ldconfig.service
 2.020s user@1000.service
 1.713s systemd-logind.service
 1.015s systemd-sysusers.service
  868ms systemd-journal-catalog-update.service
  626ms alsa-restore.service
  505ms systemd-tmpfiles-setup.service
  475ms systemd-remount-fs.service
  474ms systemd-tmpfiles-setup-dev.service
  460ms systemd-random-seed.service
  455ms systemd-update-utmp.service
  294ms systemd-udev-trigger.service
  278ms systemd-journald.service
  170ms systemd-sysctl.service
  167ms dev-disk-by\x2duuid-81212d59\x2dc82f\x2d46d0\x2db90b\x2dfaa93a430b3e.swap
  162ms rtkit-daemon.service
  152ms modprobe@fuse.service
  136ms modprobe@drm.service
   81ms dev-hugepages.mount
   80ms dev-mqueue.mount
   80ms modprobe@configfs.service
   79ms sys-kernel-debug.mount
   79ms sys-kernel-tracing.mount
   78ms kmod-static-nodes.service
   49ms systemd-user-sessions.service
   33ms systemd-update-done.service
   24ms tmp.mount
   21ms sys-fs-fuse-connections.mount
   17ms user-runtime-dir@1000.service
    9ms proc-sys-fs-binfmt_misc.mount
    2ms sys-kernel-config.mount

systemd-analyze critical-chain

graphical.target @14.303s
└─sddm.service @14.302s
  └─systemd-user-sessions.service @14.248s +49ms
    └─network.target @14.247s
      └─NetworkManager.service @12.048s +2.198s
        └─dbus.service @12.044s
          └─basic.target @12.038s
            └─sockets.target @12.038s
              └─dbus.socket @12.038s
                └─sysinit.target @11.972s
                  └─systemd-update-done.service @11.938s +33ms
                    └─ldconfig.service @9.842s +2.095s
                      └─local-fs.target @9.841s
                        └─tmp.mount @9.816s +24m

The plot.svg: https://svgshare.com/i/ZXk.svg

EDIT: The “actual” amount of time (from when I press the power on button to the “Wired Connection 1” notifcation (that notification appears when desktop is fully ready)) is 01:34:57

EDIT 2: What’s surprising is that the sudo reboot takes at max ~15 less than the full boot, I thought it’d be a bit faster

Also, I did not mention but it takes at least ~35s from the moment I see my mouse arrow to the actual desktop (plasma) (before splash screen everything is black)

Switched to Artix Runit - boot 30s faster
F**k you systemd.

1 Like

Are you sure it will not cause issues with Manjaro as it is designed to use systemd?

I’m no longer using Manjaro but ArtixLinux

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