I am using RTX 2070 on Linux and suffering from an odd bug. Whenever I run a game that utilizes 3D graphics, the whole system begins to stutter (including the game itself). A stutter occurs every few seconds and hangs the system for about a second.
It’s not only Windows games that have this problem; Linux native games also have this problem.
Games I tried:
God of War: Ragnarok (via Proton)
Hi-Fi Rush (via Proton)
Sonic Unleashed Recompiled (native)
The Talos Principle (native)
Systems I tried:
Kubuntu 24.10
Kubuntu 24.04
Kubuntu 23.10
I tried a few versions of the driver: 535, 550, and 560, all have the same problem. I also tried both X Server and Wayland sessions, but they are not helping.
Every time I run a game and see the problem, I also see the following kernel logs: nv_drm_handle_hotplug_event [nvidia_drm] hogged CPU for >10000us 7 times, consider switching to WQ_UNBOUND I see from 3 to 10 lines like that in logs.
Judging on the function’s name, it handles some device being connected. I thought that one of my monitors could spam with “plugged” event, but disconnecting either of them didn’t have any effect. So I would like to trace some instructions inside that function and see if that's the function itself causing the bug or there's some other call that hangs for so long. I've Googled for debugging Linux kernel, but all the solutions I found propose to build the kernel and then use a virtual machine or a serial port (lol). Is there a modern way for Linux kernel debugging or maybe Nvidia drivers specifically?