Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kwin_wayland high CPU usage after kernel upgrade (Nvidia)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
designated_writer_98
n00b
n00b


Joined: 19 Sep 2024
Posts: 1

PostPosted: Thu Sep 19, 2024 9:14 pm    Post subject: kwin_wayland high CPU usage after kernel upgrade (Nvidia) Reply with quote

Hi all,

I've had this problem every time I upgraded the kernel. After rebooting the new kernel, Plasma would be very sluggish and kwin_wayland would use about 100% CPU. I could usually fix that by recreating my initrd to ensure all required Nvidia modules are loaded, and then rebooting.

This time (EDIT: kernel 6.10.11-gentoo-dist), however, that didn't help. I also tried rebuilding the nvidia-driver package, to no avail. The nvidia module options and the kernel command line are OK, journalctl shows that the correct module and the correct firmware were loaded successfully:

Code:
Sep 19 23:02:20 gentoo kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 235
Sep 19 23:02:20 gentoo kernel:
Sep 19 23:02:20 gentoo kernel: nvidia 0000:0a:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
Sep 19 23:02:20 gentoo kernel: hub 5-4:1.0: USB hub found
Sep 19 23:02:20 gentoo kernel: hub 5-4:1.0: 4 ports detected
Sep 19 23:02:20 gentoo kernel: NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64  550.107.02  Release Build  (portage@localhost)  Thu 19 Sep 22:54:02 CEST 2024
Sep 19 23:02:20 gentoo kernel: usb 6-4.4: new SuperSpeed USB device number 3 using xhci_hcd
Sep 19 23:02:20 gentoo kernel: nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64  550.107.02  Release Build  (portage@localhost)  Thu 19 Sep 22:53:46 CEST 2024
Sep 19 23:02:20 gentoo kernel: [drm] [nvidia-drm] [GPU ID 0x00000a00] Loading driver
Sep 19 23:02:20 gentoo kernel: Loading firmware: nvidia/550.107.02/gsp_ga10x.bin


Plasma is still sluggish and kwin_wayland still hugging one CPU, though.

I ran
Code:
perf top -K -p <kwin_wayland PID>
and it showed the following:

Code:

    12.19%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5ac5
     7.26%  libQt6Gui.so.6.7.2  [.] 0x00000000004b4bf9
     6.35%  libQt6Gui.so.6.7.2  [.] 0x00000000004b4bf5
     5.96%  libQt6Gui.so.6.7.2  [.] 0x00000000004b4c01
     5.39%  libQt6Gui.so.6.7.2  [.] 0x00000000004b4bf0
     5.33%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5aca
     4.63%  libQt6Gui.so.6.7.2  [.] 0x00000000004b4c11
     4.39%  libQt6Gui.so.6.7.2  [.] 0x00000000004b4c09
     3.83%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5b2c
     3.82%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5acc
     3.57%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5ac1
     3.28%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5ad3
     3.03%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5ace
     2.56%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5b04
     2.50%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5b08
     2.34%  libQt6Gui.so.6.7.2  [.] 0x00000000004b5b0d

(dozens of lines more)


This prompted me to "revdep-rebuild" everything that depends on Qt6, which took quite a while, but didn't help.

I would simply switch to X11 as I don't strictly *need* Wayland, but under X11 I get a notification that software rendering is being used because some libraries seem to be missing, and there are a lot of graphics glitches, so it isn't really useable. I haven't got time to try to sort that out.

Is there anything else I could try to analyze or even fix this problem? I'm using an NVIDIA 4090.

EDIT #2: When I boot the previous kernel (6.10.8-gentoo-dist), everything works fine. It seems to be using the same nvidia-driver version, and of course all the other packages are the same, so it seems to be a kernel problem...? Any tips on how to analyze and possibly report that?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum