Systemd-analyze and Nvidia drivers

Long story short:

I’ve had my main PC with dual-booted W10 and Fedora KDE for almost 2 years (installed at the death of Fedora 38) and it initially had an RTX 2070.

Since I am ill I have had other priorities over the many months (that’s also why I started so hearly: I’d’ve had NO pressure to learn things fast!) so when I changed my GPU to a Rx 6650 xt and started having some minor issues I didn’t think much about it.

If I don't put this here some people are gonna spam "put this here!" even if it's not needed, so might as well...

------------------------------------------------------------------------------------------------------------------

~$ inxi -Fzxx
System:
  Kernel: 6.16.10-200.fc42.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 15.2.1
  Desktop: KDE Plasma v: 6.4.5 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 42 (KDE Plasma Desktop Edition)
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B450-PLUS v: Rev X.0x
    serial: <superuser required> part-nu: SKU UEFI: American Megatrends v: 3211
    date: 08/10/2021
CPU:
  Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 3792 min/max: 561/4654 boost: enabled cores: 1: 3792
    2: 3792 3: 3792 4: 3792 5: 3792 6: 3792 7: 3792 8: 3792 9: 3792 10: 3792
    11: 3792 12: 3792 bogomips: 88801
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 23 [Radeon RX 6650 XT /
    6700S 6800S] vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 pcie:
    speed: 16 GT/s lanes: 16 ports: active: DP-2 off: DP-1
    empty: DP-3,HDMI-A-1,Writeback-1 bus-ID: 09:00.0 chip-ID: 1002:73ef
  Display: wayland server: Xwayland v: 24.1.8 compositor: kwin_wayland
    driver: gpu: amdgpu display-ID: 0
  Monitor-1: DP-1 model: Philips 27M2N8500 res: 2560x1440 dpi: 110
    diag: 678mm (26.7")
  Monitor-2: DP-2 model: Philips 27M2N3500AM res: 2560x1440 hz: 180 dpi: 109
    diag: 685mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    gbm: drv: kms_swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.1.9 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 6650 XT (radeonsi navi23 LLVM
    20.1.8 DRM 3.64 6.16.10-200.fc42.x86_64) device-ID: 1002:73ef
    display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: discrete-gpu
    driver: mesa radv device-ID: 1002:73ef device: 1 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 09:00.1 chip-ID: 1002:ab28
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 0b:00.4 chip-ID: 1022:1487
  Device-3: C-Media SADES Locust Plus
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-7:4 chip-ID: 0d8c:0012
  API: ALSA v: k6.16.10-200.fc42.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.8 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK RTL8111H driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 18.18 TiB used: 9.67 TiB (53.2%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M8500G size: 465.76 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 28.9 C
  ID-2: /dev/sda vendor: Seagate model: ST10000NM0046 size: 9.1 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdb vendor: Mushkin model: MKNSSDEL2TB size: 1.82 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdc vendor: Western Digital model: WD20PURZ-85AKKY0
    size: 1.82 TiB speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdd vendor: Seagate model: ST4000DM004-2U9104 size: 3.64 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-6: /dev/sde model: SSD 512GB size: 476.94 GiB speed: 6.0 Gb/s
    serial: <filter>
  ID-7: /dev/sdf vendor: Kingston model: SA400S37960G size: 894.25 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 1.82 TiB used: 1.06 TiB (58.5%) fs: btrfs dev: /dev/sdb3
  ID-2: /boot size: 973.4 MiB used: 470.7 MiB (48.4%) fs: ext4
    dev: /dev/sdb2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/sdb1
  ID-4: /home size: 1.82 TiB used: 1.06 TiB (58.5%) fs: btrfs dev: /dev/sdb3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 2.3 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A gpu: amdgpu temp: 28.0 C
    mem: 24.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Memory: total: 16 GiB available: 15.52 GiB used: 7.99 GiB (51.5%)
  Processes: 466 Power: uptime: 9m wakeups: 0 Init: systemd v: 257
    target: graphical (5) default: graphical
  Packages: 47 pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 41
    pm: snap pkgs: 6 Compilers: gcc: 15.2.1 Shell: Bash v: 5.2.37
    running-in: konsole inxi: 3.3.39

By pure chance I found this video here with the ~$ systemd-analyze command in it.

Right now I am still not of lucid mind, so instead of comparing a before & after I uninstalled the Nvidia drivers on the spot.


Why did I do it?

Among different comments on this Forum which are not important, so I won’t bother finding them, I’ve expressed problems with some “sudden slowness or straight-up freezing, even auto-rebooting of the PC” both on Windows 10 and Linux, but on Linux it happened more.

The important thing tho is that where Windows 10 boots up in at worse 40 seconds (or at least what FEELS like 40s; no “quick boot”, no “auto OS selection”, no “pseudo-hibernation”, it’s just “from shut off to turned on”) Fedora KDE would take (in the past), from the Grub selection to the rendering of the Desktop (WITHOUT counting the time to input the password) way more than 1 minute, and then when it got to the desktop it was laggy and took forever to open Brave, Discord and Steam.

To be honest, I’ve acted out of impulse.
It’d’ve not have been a disaster to re-install Fkde, just VERY annoying, but I thought that since this is just a GPU driver I could uninstall it without many problems.

Here’s the new times:

~$ systemd-analyze
Startup finished in 18.160s (firmware) + 2.900s (loader) + 4.010s (kernel) + 6.571s (initrd) + 11.733s (userspace) = 43.377s 
graphical.target reached after 11.715s in userspace.

I guess that now it’s basically the same as with Windows 10.
I would have to use the PC for a couple of days to definitively say if “many or all of the problems (on Fkde) got solved”, but in the meanwhile I made this post here, mainly to not forget to.

In the meanwhile it’d be interesting to see if anyone else, in the same situation, would get the same improvements.

I may re-test this on another computer with a Nvidia GPU in the future, but I won’t reinstall it on my main machine, I am too ill to bother with something like that.


Welp, I’ve always been bad at closing messages such as these, so bye.

1 Like

I’m not entirely sure what the question is here, but from the supplied output your machine spends 18s in the BIOS before anything really starts. If you want to improve that aspect there are a few suggestions on what can be turned off in the BIOS to save a second here or a second there, but it differs from BIOS to BIOS.

Disabling any form of ram training/checking, switching on FastBoot in the BIOS (which also reduces the number of sanity checks the BIOS performs at start up). and suchlike are the usual suggestions.

You have some reasonably sized drives attached to that device; are they being checked for consistency, perhaps? If you post an SVG plot of the entire boot process (systemd-analyze plot >~/systemd-analyze.svg) you may get some indication of what was happening in that timeframe between graphical.target reached and your browsers, steam, discord and your other daemons starting up.

That’s more or less by design and doesn’t really matter.
Almost 5 seconds for ease of access to the UEFI, and maybe the rest is because of Grub (I don’t know, and I don’t care much, maybe it’s because it takes some seconds before the MOBO’s splash screen gets displayed).

The main issue was before, in the data I did not gather, when the PC took almost 2 minutes to become usable.
Even KDE’s “K logo with the turning cog” was present for up to 10 seconds at worse, now it basically not even show up.

I could eventually figure it out, if I went and studied what this meteor of data means, but even more today, when I got me brainfog (thanks psoriatic arthritis! very cool! <3 ) I can’t even be bothered to.

The point is:
Now Fkde boots almost as quick as Windows does, so I am fine.
It’d be cool to have a computer which takes seconds from when I push the button to when I get into the OS, but basically all of mine dual-boot, and thanks to Grub (giving access to multiple versions of Fedora) it can’t really do that without “turning Grub off” (you know what I mean).


Here’s the data, for whom cares to read it:

You can save yourself a potential few seconds by disabling the wait for networking to come up. sudo systemctl disable NetworkManager-wait-online.service.

As we can see, a lot of effort going into fuse checking and mounting all of your disks, but there’s not a lot we can do about that. It’s the same reason why my servers at work can take several minutes to start after a reboot - lots of stuff to locate, check and make active.

1 Like

Turning on fastboot usually breaks the linux kernels abilty to setup devices correctly.
It’s not suggested here ever!

It’s what this PC is running and has been for several years - since 2018 I’d guess. Never had any issues to be honest.

If I ever DO need to get into the BIOS I use systemctl reboot --firmware-setup which drops me straight in there.

As for how much time it actually saves - no idea, I’ve never measured it without.

Are you dual-booting with Windows? That’s apparently where it’s most likely to cause issues - devices can still be in a “dirty” state from Windows when Linux boots.

Yep. Windows 10.

Rarely mind you - bit of gaming here and there but I’m finding that most of the stuff I play these days “just works” on Linux so it’s becoming less and less frequent. I can’t say I’ve ever had an issue where I’ve suspected Fastboot… could well have been some, that I’ve put down to some weird glitch, but nothing that I’ve ever noticed.

Wasn’t even aware it was suspected of causing issues - of course now that @barryascott has mentioned it, I’ll be plagued!

1 Like

I upgraded my machine last week, reinstalled fresh Fedora KDE, 43, and now I have just been using the PC.

If I’ll get a bad stutter, freeze or reboot, I’ll say here and somewhere else.

~$ systemd-analyze
Startup finished in 4.183s (kernel) + 7.065s (initrd) + 14.531s (userspace) = 25.780s 
graphical.target reached after 14.531s in userspace.


~$ inxi -Fzxx
System:
  Kernel: 6.17.7-300.fc43.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: KDE Plasma v: 6.5.2 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 43 (KDE Plasma Desktop Edition)
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B450-PLUS v: Rev X.0x
    serial: <superuser required> part-nu: SKU BIOS: American Megatrends v: 3211
    date: 08/10/2021
CPU:
  Info: 6-core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 3592 min/max: 561/4654 boost: enabled cores: 1: 3592
    2: 3592 3: 3592 4: 3592 5: 3592 6: 3592 7: 3592 8: 3592 9: 3592 10: 3592
    11: 3592 12: 3592 bogomips: 88796
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 23 [Radeon RX 6650 XT /
    6700S 6800S] vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-2 pcie:
    speed: 16 GT/s lanes: 16 ports: active: DP-1,DP-2
    empty: DP-3,HDMI-A-1,Writeback-1 bus-ID: 09:00.0 chip-ID: 1002:73ef
  Display: wayland server: Xwayland v: 24.1.9 compositor: kwin_wayland
    driver: gpu: amdgpu d-rect: 5120x1440 display-ID: 0
  Monitor-1: DP-1 pos: primary,left model: Philips 27M2N8500 res: 2560x1440
    hz: 360 dpi: 110 diag: 678mm (26.7")
  Monitor-2: DP-2 pos: right model: Philips 27M2N3500AM res: 2560x1440
    hz: 180 dpi: 109 diag: 685mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    gbm: drv: kms_swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.2.6 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 6650 XT (radeonsi navi23 LLVM
    21.1.4 DRM 3.64 6.17.7-300.fc43.x86_64) device-ID: 1002:73ef
    display-ID: :0.0
  API: Vulkan v: 1.4.321 surfaces: N/A device: 0 type: discrete-gpu
    driver: mesa radv device-ID: 1002:73ef device: 1 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 09:00.1 chip-ID: 1002:ab28
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 0b:00.4 chip-ID: 1022:1487
  Device-3: C-Media SADES Locust Plus
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-7:5 chip-ID: 0d8c:0012
  API: ALSA v: k6.17.7-300.fc43.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.9 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK RTL8111H driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 18.43 TiB used: 9.62 TiB (52.2%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M8500G size: 465.76 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 28.9 C
  ID-2: /dev/sda vendor: Seagate model: ST10000NM0046 size: 9.1 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdb vendor: Mushkin model: MKNSSDEL2TB size: 1.82 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdc vendor: Kingston model: SA400S37960G size: 894.25 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdd vendor: Integral Memory model: V Series SATA SSD 250GB
    size: 232.89 GiB speed: 6.0 Gb/s serial: <filter>
  ID-6: /dev/sde model: SSD 512GB size: 476.94 GiB speed: 6.0 Gb/s
    serial: <filter>
  ID-7: /dev/sdf vendor: Western Digital model: WD20PURZ-85AKKY0
    size: 1.82 TiB speed: 6.0 Gb/s serial: <filter>
  ID-8: /dev/sdg vendor: Seagate model: ST4000DM004-2U9104 size: 3.64 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-9: /dev/sdh vendor: SanDisk model: Cruzer Glide size: 28.65 GiB
    type: USB rev: 2.0 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 195.78 GiB used: 86.72 GiB (44.3%) fs: btrfs dev: /dev/sdd2
  ID-2: /boot size: 5.68 GiB used: 508.4 MiB (8.7%) fs: ext4 dev: /dev/sdd3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 12 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 31.25 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sdd1
Sensors:
  System Temperatures: cpu: 38.6 C mobo: N/A gpu: amdgpu temp: 44.0 C
    mem: 38.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Memory: total: 16 GiB available: 15.52 GiB used: 6.01 GiB (38.7%)
  Processes: 436 Power: uptime: 2h 0m wakeups: 0 Init: systemd v: 258
    default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 22
    Compilers: N/A Shell: Bash v: 5.3.0 running-in: konsole inxi: 3.3.39