Announcement

Collapse
No announcement yet.

Slow Boot in 22.04 - Check the GPU state and the BIOS Settings

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Slow Boot in 22.04 - Check the GPU state and the BIOS Settings

    I recently installed Kubuntu 22.04.1 and experienced extremely long boot and shutdown times. This is a dual boot setup, 22.04 on a 500 GB SSD, and 20.04 on a 500 GB HD. Slowdown started a few months ago on 20.04 after one of the endless updates, but it is much worse on 22.04. Here are the times (Grub screen to Login screen, and Login screen to computer off):

    20.04: boot – 0:45 (normal), shutdown – 1:51
    22.04: boot – 3:45 or 4:40, shutdown – 2:26

    My sense was that it was a graphics driver issue, which is NVIDIA 470.161.03, on both.
    I’ve always run this computer for years with NVIDIA drivers and had no real issues.

    I’m not too swift with logs, but with Ksystemlog, the journald Log shows the hangups. Parsing the log for Emergency priority, they look clean for 20.04, but for 22.04 there was

    1/16/23 10:53 AM kernel watchdog: BUG: soft lockup - CPU#4 stuck for 22s! [gpu-manager:929]
    1/16/23 10:54 AM kernel watchdog: BUG: soft lockup - CPU#4 stuck for 23s! [gpu-manager:929]
    1/16/23 10:55 AM kernel watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [gpu-manager:929]
    1/16/23 10:55 AM kernel watchdog: BUG: soft lockup - CPU#3 stuck for 22s! [gpu-manager:929]
    1/16/23 10:56 AM kernel watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [Xorg.wrap:1499]
    1/16/23 10:56 AM kernel watchdog: BUG: soft lockup - CPU#5 stuck for 22s! [Xorg:1499]


    That’s being stuck 6 times for 2:14 minutes.

    then I discovered:

    systemd-analyze critical-chain
    graphical.target @2min 22.342s
    └─sddm.service @2min 22.339s +3ms
    └─systemd-logind.service @3.165s +1.494s
    └─basic.target @3.141s
    └─sockets.target @3.141s
    └─cups.socket @4.724s
    └─sysinit.target @3.136s
    └─
    snapd.apparmor.service @2.744s +391ms
    └─apparmor.service @2.616s +125ms
    └─local-fs.target @2.615s
    └─
    boot-efi.mount @2.544s +63ms
    └─systemd-fsck@dev-disk-by\x2duuid-5D93\x2dF02B.service @931ms +1.599s


    and:

    systemd-analyze && systemd-analyze blame
    Startup finished in 9.117s (kernel) + 3min 42.539s (userspace) = 3min 51.657s
    graphical.target reached after 2min 22.342s in userspace
    2min 53.422s apt-daily-upgrade.service
    2min 19.183s gpu-manager.service
    35.920s logrotate.service
    35.187s tor@default.service
    etc, etc


    Looking in the BIOS, 1) the Secure Boot was off (good, no Windows), but 2) the Intel integrated graphics was on – it had been since day one. So I turned it off.

    Now the boot/shutdown times are:

    20.04: boot – 0:45, shutdown – 0:05
    22.04: boot – 0:22, shutdown – 0:05

    There it is!
    A lot of trepidation, and it took me a while, but
    check the easy stuff first.
    ______________________
    Intel® CoreTM i7-4770K
    GIGABYTE Z87X-HD3 ATX
    32GB (8GBx4) DDR3/1866MHz Dual Channel Memory
    NVIDIA GeForce GTX 770 2GB
    500GB Samsung_860_Pro SATA-III SSD
    500GB Gaming Western Digital VelociRaptor SATA-III HDD
    1TB Western Digital Caviar Black SATA-III HDD





Working...
X