when I run systemd-analyze
the output is Startup finished in 3.462s (firmware) + 10min 57.502s (loader) + 3.856s (kernel) + 3.948s (userspace) = 11min 8.770s graphical.target reached after 3.700s in userspace
why does the loader take so much time and how do i get the time down? As far as i know it’s not like this in other distros e.g. linuxmint.
Can you post some system information ?
inxi -Fza
System: Kernel: 5.10.79-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=/dev/sdb2
Desktop: KDE Plasma 5.23.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine: Type: Laptop System: Notebook product: P15SM-A/SM1-A v: N/A serial: <superuser required> Chassis: type: 9
serial: <superuser required>
Mobo: Notebook model: P15SM-A/SM1-A serial: <superuser required> UEFI: American Megatrends v: 4.6.5
date: 11/14/2014
Battery: Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M215 2nd Gen serial: <filter>
charge: 5% (should be ignored) rechargeable: yes status: Discharging
CPU: Info: Quad Core model: Intel Core i7-4900MQ bits: 64 type: MT MCP arch: Haswell family: 6 model-id: 3C (60)
stepping: 3 microcode: 17 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 44712
Speed: 1671 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 1671 2: 2741 3: 2486 4: 2722 5: 2135 6: 2313 7: 2548
8: 2523
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass status: Vulnerable
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, STIBP: disabled, RSB filling
Type: srbds status: Vulnerable: No microcode
Type: tsx_async_abort status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT vulnerable
Graphics: Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: CLEVO/KAPOK driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
Device-2: NVIDIA GM204M [GeForce GTX 970M] vendor: CLEVO/KAPOK driver: nvidia v: 495.44
alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:13d8 class-ID: 0300
Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 3-10:5 chip-ID: 5986:055c class-ID: 0e02
serial: <filter>
Display: x11 server: X.Org 1.21.1.1 compositor: kwin_x11 driver: loaded: modesetting 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: 344x194mm (13.5x7.6") diag: 395mm (15.5")
OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 21.2.5 compat-v: 3.0 direct render: Yes
Audio: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: CLEVO/KAPOK driver: snd_hda_intel v: kernel
bus-ID: 00:03.0 chip-ID: 8086:0c0c class-ID: 0403
Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: CLEVO/KAPOK driver: snd_hda_intel v: kernel
bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403
Device-3: NVIDIA GM204 High Definition Audio driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:0fbb
class-ID: 0403
Sound Server-1: ALSA v: k5.10.79-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.40 running: yes
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: CLEVO/KAPOK driver: r8169 v: kernel
port: d000 bus-ID: 05:00.2 chip-ID: 10ec:8168 class-ID: 0200
IF: enp5s0f2 state: down mac: <filter>
Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel bus-ID: 06:00.0 chip-ID: 8086:08b1 class-ID: 0280
IF: wlp6s0 state: up mac: <filter>
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 3-4:3 chip-ID: 8087:07dc
class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives: Local Storage: total: 1.16 TiB used: 55.05 GiB (4.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ01AAD032C size: 298.09 GiB block-size: physical: 4096 B
logical: 512 B speed: 1.5 Gb/s type: HDD rpm: 4200 serial: <filter> rev: 1W scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Intel model: SSDSC2BW480H6 size: 447.13 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: RG21 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Intel model: SSDMCEAW240A4 size: 223.57 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: DC33 scheme: GPT
ID-4: /dev/sdd maj-min: 8:48 vendor: Intel model: SSDMCEAW240A4 size: 223.57 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: DC33 scheme: GPT
Partition: ID-1: / raw-size: 438.03 GiB size: 430.09 GiB (98.19%) used: 55.05 GiB (12.8%) fs: ext4 dev: /dev/sdb2
maj-min: 8:18
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 288 KiB (0.1%) fs: vfat dev: /dev/sdb1
maj-min: 8:17
Swap: Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sdb3 maj-min: 8:19
Sensors: System Temperatures: cpu: 55.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 258 Uptime: 12m wakeups: 3 Memory: 31.28 GiB used: 2.71 GiB (8.7%) Init: systemd v: 249 tool: systemctl
Compilers: gcc: 11.1.0 Packages: pacman: 1351 lib: 347 flatpak: 0 Shell: Zsh v: 5.8 default: Bash v: 5.1.8
running-in: konsole inxi: 3.3.09
You boot from a HDD, the is one reason, why the computer does not boot fast.
Can you check the boot sequence of the UEFI Bios ?
and efiboomgr -v
.
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0004,0001,0000,0002,0005,0006
Boot0000* Windows Boot Manager HD(2,GPT,eb12fac0-ea8c-11eb-ab79-cd713be2a469,0x1bef1800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* Manjaro HD(1,GPT,3a4c1afb-0c83-544d-a85a-2c66c7e104ad,0x1000,0x96000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0002* UEFI OS HD(1,GPT,3a4c1afb-0c83-544d-a85a-2c66c7e104ad,0x1000,0x96000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0004* ubuntu HD(1,GPT,7e9433ce-f7a7-4b7c-a43b-75fc43b890c1,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0005* ubuntu HD(1,GPT,7e9433ce-f7a7-4b7c-a43b-75fc43b890c1,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
Boot0006* UEFI OS HD(1,GPT,7e9433ce-f7a7-4b7c-a43b-75fc43b890c1,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
can i change the boot order from linux itself?
Even with the slowest available HDD available today, booting should not take minutes.
You can use
systemd-analyze blame
to see the time consumed per startup process.
after I changed the boot order, systemd-analyze
shows this: Startup finished in 3.797s (firmware) + 6.826s (loader) + 3.413s (kernel) + 4.103s (userspace) = 18.140s graphical.target reached after 3.853s in userspace
2.857s optimus-manager.service
2.853s snapd.service
1.190s systemd-random-seed.service
875ms udisks2.service
448ms apparmor.service
316ms dev-sdb2.device
248ms tlp.service
195ms polkit.service
181ms ldconfig.service
163ms ModemManager.service
152ms boot-efi.mount
150ms systemd-journal-flush.service
142ms user@1000.service
129ms avahi-daemon.service
123ms upower.service
117ms lvm2-monitor.service
111ms NetworkManager.service
99ms systemd-logind.service
89ms systemd-modules-load.service
80ms systemd-udev-trigger.service
68ms systemd-timesyncd.service
57ms systemd-journald.service
51ms systemd-udevd.service
49ms cups.service
44ms systemd-sysusers.service
29ms systemd-fsck@dev-disk-by\x2duuid-916D\x2d8B09.service
24ms systemd-journal-catalog-update.service
23ms systemd-tmpfiles-setup.service
23ms alsa-restore.service
18ms wpa_supplicant.service
18ms systemd-binfmt.service
17ms modprobe@fuse.service
17ms systemd-tmpfiles-setup-dev.service
16ms rtkit-daemon.service
15ms bluetooth.service
13ms systemd-user-sessions.service
12ms systemd-update-utmp.service
12ms dev-hugepages.mount
12ms dev-mqueue.mount
11ms sys-kernel-debug.mount
11ms sys-kernel-tracing.mount
10ms kmod-static-nodes.service
9ms dev-disk-by\x2duuid-17de53de\x2d9b1c\x2d4ae4\x2db001\x2d56f7a2e774df.swap
9ms snapd.apparmor.service
9ms linux-module-cleanup.service
9ms modprobe@configfs.service
9ms systemd-backlight@backlight:intel_backlight.service
9ms modprobe@drm.service
8ms user-runtime-dir@1000.service
7ms proc-sys-fs-binfmt_misc.mount
6ms sys-fs-fuse-connections.mount
6ms sys-kernel-config.mount
5ms snapd.socket
5ms systemd-rfkill.service
5ms systemd-remount-fs.service
lines 1-55
this did the trick. After rebooting 3 times it was fast. Thank you very much.
eventhough systemd-analyze
shows Startup finished in 3.860s (firmware) + 6.067s (loader) + 3.359s (kernel) + 4.197s (userspace) = 17.483s graphical.target reached after 3.943s in userspace
my stopwatch shows it’s actually over a minute to show grub, which seems strange considering LinuxMint on a HDD shows grub much faster. Is it a problem with manjaro or my laptop?
You should also check the system background services with systemctl
.
Today, normally, noone needs ModemManager
.
Do you use lvm ?
isn’t ModemManager
needed for KDE Connect or any bluetooth connection?
What is LVM
and what is it useful for?
Lvm is for logical volume manager.
ModemManager is, if you use a modem.
Network Manager (KDE) is for establishing connections.
the command sudo lvdisplay
doesn’t return anything. That must mean lvm isn’t present. If lvm is better, how do i install/enable it?
You must use the following commands (as root):
systemctl disable lvm-monitor.service
systemctl mask lvm-monitor.service
Can you post the output of systemctl
here ?
systemctl disable lvm-monitor.service
shows:
Failed to disable unit: Unit file lvm-monitor.service does not exist.
apparently it doesn’t exist.
output of systemctl
is
proc-sys-fs-binfmt_misc.automount loaded active running Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:01.0-0000:01:00.1-sound-card2-controlC2.device loaded active plugged /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2/controlC2
sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\x2deDP\x2d1-intel_backlight.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight
sys-devices-pci0000:00-0000:00:03.0-sound-card0-controlC0.device loaded active plugged /sys/devices/pci0000:00/0000:00:03.0/sound/card0/controlC0
sys-devices-pci0000:00-0000:00:14.0-usb3-3\x2d4-3\x2d4:1.0-bluetooth-hci0.device loaded active plugged /sys/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0/bluetooth/hci0
sys-devices-pci0000:00-0000:00:1b.0-sound-card1-controlC1.device loaded active plugged /sys/devices/pci0000:00/0000:00:1b.0/sound/card1/controlC1
sys-devices-pci0000:00-0000:00:1c.2-0000:05:00.2-net-enp5s0f2.device loaded active plugged RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
sys-devices-pci0000:00-0000:00:1c.3-0000:06:00.0-net-wlp6s0.device loaded active plugged Wireless 7260 (Dual Band Wireless-AC 7260)
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged TOSHIBA_MQ01AAD032C EFI\x20System\x20Partition
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged TOSHIBA_MQ01AAD032C 2
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged TOSHIBA_MQ01AAD032C
sys-devices-pci0000:00-0000:00:1f.2-ata2-host1-target1:0:0-1:0:0:0-block-sdb-sdb1.device loaded active plugged INTEL_SSDSC2BW480H6 NO_LABEL
sys-devices-pci0000:00-0000:00:1f.2-ata2-host1-target1:0:0-1:0:0:0-block-sdb-sdb2.device loaded active plugged INTEL_SSDSC2BW480H6 root
sys-devices-pci0000:00-0000:00:1f.2-ata2-host1-target1:0:0-1:0:0:0-block-sdb-sdb3.device loaded active plugged INTEL_SSDSC2BW480H6 swap
sys-devices-pci0000:00-0000:00:1f.2-ata2-host1-target1:0:0-1:0:0:0-block-sdb.device loaded active plugged INTEL_SSDSC2BW480H6
sys-devices-pci0000:00-0000:00:1f.2-ata4-host3-target3:0:0-3:0:0:0-block-sr0.device loaded active plugged Slimtype_DVD_A_DS8ABSH
sys-devices-pci0000:00-0000:00:1f.2-ata5-host4-target4:0:0-4:0:0:0-block-sdc-sdc1.device loaded active plugged INTEL_SSDMCEAW240A4 Data-S
sys-devices-pci0000:00-0000:00:1f.2-ata5-host4-target4:0:0-4:0:0:0-block-sdc.device loaded active plugged INTEL_SSDMCEAW240A4
sys-devices-pci0000:00-0000:00:1f.2-ata6-host5-target5:0:0-5:0:0:0-block-sdd-sdd1.device loaded active plugged INTEL_SSDMCEAW240A4 Windows
sys-devices-pci0000:00-0000:00:1f.2-ata6-host5-target5:0:0-5:0:0:0-block-sdd-sdd2.device loaded active plugged INTEL_SSDMCEAW240A4 2
sys-devices-pci0000:00-0000:00:1f.2-ata6-host5-target5:0:0-5:0:0:0-block-sdd.device loaded active plugged INTEL_SSDMCEAW240A4
sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS10.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS10
sys-devices-platform-serial8250-tty-ttyS11.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS11
sys-devices-platform-serial8250-tty-ttyS12.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS12
sys-devices-platform-serial8250-tty-ttyS13.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS13
sys-devices-platform-serial8250-tty-ttyS14.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS14
sys-devices-platform-serial8250-tty-ttyS15.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS15
sys-devices-platform-serial8250-tty-ttyS16.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS16
sys-devices-platform-serial8250-tty-ttyS17.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS17
sys-devices-platform-serial8250-tty-ttyS18.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS18
sys-devices-platform-serial8250-tty-ttyS19.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS19
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS20.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS20
sys-devices-platform-serial8250-tty-ttyS21.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS21
sys-devices-platform-serial8250-tty-ttyS22.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS22
sys-devices-platform-serial8250-tty-ttyS23.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS23
sys-devices-platform-serial8250-tty-ttyS24.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS24
sys-devices-platform-serial8250-tty-ttyS25.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS25
sys-devices-platform-serial8250-tty-ttyS26.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS26
sys-devices-platform-serial8250-tty-ttyS27.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS27
sys-devices-platform-serial8250-tty-ttyS28.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS28
sys-devices-platform-serial8250-tty-ttyS29.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS29
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-platform-serial8250-tty-ttyS30.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS30
sys-devices-platform-serial8250-tty-ttyS31.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS31
sys-devices-platform-serial8250-tty-ttyS4.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS4
sys-devices-platform-serial8250-tty-ttyS5.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS5
sys-devices-platform-serial8250-tty-ttyS6.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS6
sys-devices-platform-serial8250-tty-ttyS7.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS7
sys-devices-platform-serial8250-tty-ttyS8.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS8
sys-devices-platform-serial8250-tty-ttyS9.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS9
sys-devices-virtual-misc-rfkill.device loaded active plugged /sys/devices/virtual/misc/rfkill
they were run as root
Must be
systemctl disable lvm2-monitor.service
systemctl mask lvm2-monitor.service
You must use systemctl > /home/<your name>/log
to have a full systemctl output.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.