How to speed up my boot time gnome

systemd-analyze blame

5.736s systemd-modules-load.service
1.910s systemd-journal-catalog-update.service
1.867s systemd-rfkill.service
1.148s dev-nvme0n1p5.device
 696ms apparmor.service
 524ms systemd-udev-trigger.service
 498ms fwupd.service
 468ms systemd-remount-fs.service
 437ms ldconfig.service
 390ms systemd-tmpfiles-setup.service
 283ms modprobe@fuse.service
 266ms boot-efi.mount
 256ms ufw.service
 252ms user@1000.service
 243ms accounts-daemon.service
 242ms lvm2-monitor.service
 240ms modprobe@drm.service
 197ms systemd-journal-flush.service
 185ms upower.service
 130ms polkit.service
 128ms systemd-update-done.service
 110ms systemd-backlight@leds:asus::kbd_backlight.service
 109ms systemd-sysusers.service

systemd-analyze critical-chain

graphical.target @7.060s
└─multi-user.target @7.060s
  └─ModemManager.service @7.004s +55ms
    └─polkit.service @6.854s +130ms
      └─basic.target @6.808s
        └─sockets.target @6.808s
          └─dbus.socket @6.808s
            └─sysinit.target @6.805s
              └─ufw.service @6.548s +256ms
                └─systemd-sysctl.service @6.508s +36ms
                  └─systemd-modules-load.service @731ms +5.736s
                    └─systemd-journald.socket @721ms
                      └─-.mount @682ms
                        └─-.slice @682ms

Startup finished in 3.999s (firmware) + 1.3s (loader) + 1.8s (kernel) + 7.2s (userspace) =14.561s graphical.target reached after 7.060s in userspace.


Moderator edit: It’s <pre><code> :wink:

Do not use systemd-analyze blame, because it shows total activated services at startup, but not for boot up to login page. Which login manager do you use? GDM or SDDM?

Run:

$ systemd-analyze plot >> ~/Desktop/boot.svg

Try to upload the file boot.svg and share it with us here.

Your systemd services take a long time. Do you boot from a HDD or SSD?

What is for example the output of:

systemctl status systemd-modules-load.service

Is your system encrypted?

Services you don’t need can be disabled and masked via:

sudo systemctl disable --now <service>
sudo systemctl mask <service>

login manager is - gdm

 systemd-modules-load.service - Load Kernel Modules
     Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; stat>
     Active: active (exited) since Sat 2023-11-04 14:46:45 IST; 4h 56min left
       Docs: man:systemd-modules-load.service(8)
             man:modules-load.d(5)
    Process: 265 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, >
   Main PID: 265 (code=exited, status=0/SUCCESS)
        CPU: 4.235s

Nov 04 14:46:39 milo systemd-modules-load[265]: Inserted module 'crypto_user'
Nov 04 14:46:44 milo systemd-modules-load[265]: Inserted module 'nvidia'
Nov 04 14:46:44 milo systemd-modules-load[265]: Inserted module 'nvidia_drm'
Nov 04 14:46:45 milo systemd-modules-load[265]: Inserted module 'nvidia_uvm'
Nov 04 14:46:45 milo systemd[1]: Finished Load Kernel Modules.
Notice: journal has been rotated since unit was started, output may be incomple

hey i did know much about it how do is share that

curl -F'file=@Desktop/boot.svg' https://0x0.st

(share the link it produces)