Slow loading of my system

Hey I am a noobie here, i have a slow startup problem, not sure bootloader’s fault or the firmware’s, i have gone through and tried some solutions but i havent found a proper solution yet, please help me with my problem

Can you post inxi -Fza on console ?

Please provide the output:
systemd-analyze blame --no-pager

this is the out put of inxi -Fza

The output to: inxi -Fza is:

System:
  Kernel: 5.15.108-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=d88967e9-ca70-4c93-9a69-a7d7fc966edd rw quiet apparmor=1
    security=apparmor resume=UUID=4a4f260e-35c5-4b55-8019-0f3583b8319c
    udev.log_priority=3
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 vt: 7 dm: LightDM v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Pavilion Laptop 15-cs2xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 84C1 v: 15.32 serial: <superuser required> UEFI: Insyde
    v: F.23 date: 12/25/2020
Battery:
  ID-1: BAT0 charge: 16.7 Wh (88.4%) condition: 18.9/18.9 Wh (100.0%)
    volts: 13.2 min: 11.6 model: HP Primary type: Li-ion serial: N/A
    status: charging
CPU:
  Info: model: Intel Core i5-8265U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 8 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF4
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 600 min/max: 400/3900 scaling: driver: intel_pstate
    governor: powersave cores: 1: 600 2: 600 3: 600 4: 600 5: 600 6: 600 7: 600
    8: 600 bogomips: 28808
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  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 status: Vulnerable: eIBRS with unprivileged eBPF
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:3ea0
    class-ID: 0300
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Hewlett-Packard
    driver: nvidia v: 530.41.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-03) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 4
    link-max: gen: 3 speed: 8 GT/s bus-ID: 02:00.0 chip-ID: 10de:1d13
    class-ID: 0302
  Device-3: Lite-On HP Wide Vision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-3:2 chip-ID: 04ca:707f class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa dri: iris
    gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: BOE Display 0x0780 built: 2017 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1920x1080
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:9dc8 class-ID: 0403
  API: ALSA v: k5.15.108-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:9df0 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 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 04: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-10:4 chip-ID: 8087:0aaa class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up 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: N/A class-ID: 0104
Drives:
  Local Storage: total: 1.14 TiB used: 16.1 GiB (1.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD10SPZX-60Z10T0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A04 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Micron model: MTFDDAV256TBN-1AR1ZABHA
    size: 238.47 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 0014 scheme: GPT
Partition:
  ID-1: / raw-size: 50.04 GiB size: 48.95 GiB (97.83%) used: 14.25 GiB (29.1%)
    fs: ext4 dev: /dev/sda8 maj-min: 8:8
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 316 KiB (0.1%) fs: vfat dev: /dev/sda6 maj-min: 8:6
  ID-3: /home raw-size: 90.44 GiB size: 88.47 GiB (97.82%)
    used: 1.85 GiB (2.1%) fs: ext4 dev: /dev/sda9 maj-min: 8:9
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 6 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sda7 maj-min: 8:7
Sensors:
  System Temperatures: cpu: 46.0 C pch: 43.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 276 Uptime: 4m wakeups: 1 Memory: 7.65 GiB used: 1.85 GiB (24.2%)
  Init: systemd v: 252 default: graphical tool: systemctl Compilers:
  gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman pkgs: 0 tools: pamac
  pm: flatpak pkgs: 0 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.26

this is the out put of systemd-analyze blame --no-pager

[giri@Giri-PC ~]$ systemd-analyze blame --no-pager
7.078s systemd-modules-load.service
6.959s dev-sda8.device
5.162s ModemManager.service
5.117s snapd.service
4.284s cups.service
3.267s upower.service
3.044s udisks2.service
2.572s ufw.service
2.440s apparmor.service
2.215s systemd-udevd.service
2.127s systemd-journal-flush.service
1.980s polkit.service
1.960s tlp.service
1.694s accounts-daemon.service
1.659s colord.service
1.599s avahi-daemon.service
1.598s bluetooth.service
1.593s systemd-logind.service
1.589s dbus.service
1.444s systemd-tmpfiles-setup-dev.service
1.247s wpa_supplicant.service
1.239s systemd-fsck@dev-disk-by\x2duuid-400a5f73\x2d6578\x2d4100\x2db868\x2defb…
1.170s lightdm.service
1.000s NetworkManager.service
 647ms modprobe@fuse.service
 622ms alsa-restore.service
 544ms snapd.apparmor.service
 513ms systemd-random-seed.service
 426ms systemd-tmpfiles-setup.service
 397ms user@1000.service
 396ms systemd-fsck@dev-disk-by\x2duuid-8482\x2d8422.service
 342ms boot-efi.mount
 247ms systemd-backlight@backlight:intel_backlight.service
 235ms systemd-udev-trigger.service
 232ms modprobe@configfs.service
 228ms modprobe@drm.service
 208ms systemd-journald.service
 178ms systemd-timesyncd.service
 162ms dev-disk-by\x2duuid-4a4f260e\x2d35c5\x2d4b55\x2d8019\x2d0f3583b8319c.swap
 144ms dev-hugepages.mount
 136ms systemd-update-utmp.service
 127ms sys-kernel-tracing.mount
 100ms dev-mqueue.mount
  98ms sys-kernel-debug.mount
  90ms kmod-static-nodes.service
  85ms tmp.mount
  79ms systemd-remount-fs.service
  64ms home.mount
  55ms pamac-daemon.service
  24ms systemd-user-sessions.service
  23ms rtkit-daemon.service
  21ms systemd-sysctl.service
  15ms user-runtime-dir@1000.service
   6ms modprobe@loop.service
   6ms modprobe@dm_mod.service
   1ms sys-fs-fuse-connections.mount
   1ms proc-sys-fs-binfmt_misc.mount
   1ms sys-kernel-config.mount
 453us snapd.socket

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

Can you post fdisk -l and blkid ?

this is the output of your commands

If you do not have dial-up Internet, you can disable ModemManager.service

If you do not use snaps, you can disable snapd.service as well as snapd.apparmor.service

Actually, you can remove snapd and modemmanager and the services should go away with the removal. I use neither and have removed both with no consequences. I would check if snapd is required for something on your system before removal.

1 Like

Awesome I don’t use neither, please helpme disabling snapd and modemmanager

You can disable a service with systemctl disable <service> and then
systemctl mask <service>.

You must execute fdisk -l as root or sudo.

[giri@Giri-PC ~]$ sudo fdisk -l
[sudo] password for giri: 
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10SPZX-60Z
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 7D9B3524-22CE-4463-A97D-E744F4AED927

Device          Start        End   Sectors   Size Type
/dev/sda1        2048  695232511 695230464 331.5G Microsoft basic data
/dev/sda2   695232512 1013078015 317845504 151.6G Microsoft basic data
/dev/sda3  1013080064 1014130687   1050624   513M EFI System
/dev/sda4  1322377216 1324378111   2000896   977M Linux swap
/dev/sda5  1324378112 1953521663 629143552   300G Microsoft basic data
/dev/sda6  1014130688 1015179263   1048576   512M EFI System
/dev/sda7  1015179264 1027762175  12582912     6G Linux swap
/dev/sda8  1027762176 1132701695 104939520    50G Linux filesystem
/dev/sda9  1132701696 1322377215 189675520  90.4G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sdb: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: MTFDDAV256TBN-1A
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
this is the result for fdisk -l

Disk identifier: 0C2B5A51-87DC-4971-87A4-091D5046A59C

Device         Start       End   Sectors   Size Type
/dev/sdb1       2048    534527    532480   260M EFI System
/dev/sdb2     534528    567295     32768    16M Microsoft reserved
/dev/sdb3     567296 498205109 497637814 237.3G Microsoft basic data
/dev/sdb4  498206720 500105215   1898496   927M Windows recovery environment

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

thanks for that disable tutorial, but i have not seen any difference after disabling snapd and modemmanager

1 Like

thankyou for this suggestion i have done disabling these 2 services but i see no difference in loading time :smiling_face_with_tear:

1 Like

7 seconds boot time is quite good for an HP Pavilion Laptop 15 with / and /home installed on the internal HDD:

  ID-1: / raw-size: 50.04 GiB size: 48.95 GiB (97.83%) used: 14.25 GiB (29.1%)
    fs: ext4 dev: /dev/sda8 maj-min: 8:8
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 316 KiB (0.1%) fs: vfat dev: /dev/sda6 maj-min: 8:6
  ID-3: /home raw-size: 90.44 GiB size: 88.47 GiB (97.82%)
    used: 1.85 GiB (2.1%) fs: ext4 dev: /dev/sda9 maj-min: 8:9

instead of the additional SSD:

What are you trying to accomplish here?

:thinking:

Please also note that:

  1. never post text as pictures like you did here
  2. Please copy-paste code output in-between 3 backticks ``` at the beginning and end of the code/text, as I’ve done for you tĥere

Its true that its is been mentioned as 7 seconds, but it nearly takes about 45 to 60 seconds to get to the login screen and then another 10 to 15 seconds after I enter the password. I am new here to linux as i have mentioned earlier, i usedto work on windows, i became interested in linux after knowing about its speed, security, and load handling capacity, but currently my linux’s starup speed is much slower than my windows which also runs in the same device, so i am really in search of an solution for this. I asked my friend (he has a thinkpad i7 processor which starts within 7 to 9 seconds in total) he told me to reinstall manjaro, but i thought i could learn something here as a beginer from this community, i hope i am clear with my problem

and thanks for your thanks for your 2 points I took note of it

1 Like

Well, if you’ve just installed Mannjaro, yes your friend is correct that reinstalling the OS and swap on the SSD will improve speeds as you’re comparing Windows booting from the SSD to Manjaro booting of a 5400 RPM HDD.

Please read this:

and read the hardware documentation of your machine as I can see 3 ESPs on your system and ideally you should have only 1, but we can’t tell you why you have those or which one is active when you boot the other OSes you have installed (3 in total???), so please also ready this:

before you do anything as that will take a full system backup of all the OSes installed as deleting the wrong ESP will make your system unbootable / some OSes unbootable if you use the UEFI firmware to swap between multiple ESPs (I’m not saying it’s impossible to have multiple ESPs as you clearly have 3, but it complicates matters)…

If I were you, I’d:

  • have one ESP with all OSes booting from that on the SSD (/dev/sdb)
  • Give Windows 64-128 GB on the SSD for its C:-drive (for a light user up to heavy user)
  • Give Manjaro 32-64 GB on the SSD for its / and swap (for a light user up to heavy user) and another 64GB for its /home
  • Give Windows 80% of the 1TB drive for its D:-drive and mount that one as /media/data under Manjaro so you have access to that partition from both OSes.
  • Don’t allocate the rest and keep it as spare for future extensions.

OR

  • Do nothing and know that Manjaro is installed purely on the HDD and is thus slower in boot, but once booted will be as fast as possible on the hardware you have… (I.E. a very slow HDD@5400 RPM only)
2 Likes

please provide output:
systemd-analyze
need to see the boot time for bios, boot loader and kernel

1 Like

output of systemd-analyze

Startup finished in 7.617s (firmware) + 3.142s (loader) + 4.913s (kernel) + 27.442s (userspace) = 43.116s 
graphical.target reached after 25.368s in userspace. ```

okie now after reading this, i am getting some idea whats going on, thank you for your words, really appreciate it.

1 Like

some tips:

  • in /etc/default/grub, you can delete splash’ parameter in the GRUB_CMDLINE_LINUX_DEFAULT="" to win 2-3 seconds of boot time

  • in /etc/mkinitcpio.conf, you can:

    • add i915 to the MODULES section like this:

      MODULES=(i915)
      
    • In the HOOKS section ensure the following are available at a minimum:

      HOOKS=(base udev autodetect modconf keyboard keymap block filesystems fsck)
      

after the above, you must run:

sudo mkinitcpio -P
sudo update-grub
reboot

Note: if your system doesn’t have update-grub run: sudo grub-mkconfig -o /boot/grub/grub.cfg instead.

1 Like