[REGRESSION][NVIDIA 545.23.06] Frame stutters when GPU stats are queried

When I execute commands such as nvidia-smi, glxinfo, vulkaninfo, eglinfo, the compositors stutters, it drops frames.

KDE ksystemstats uses nvidia-smi to query GPU stats then my screens stutters every 2 seconds.

I tested it on Sway and KDE Plasma (Wayland).
The 535.113.01 driver is not affected by the issue.

Can’t reproduce this.

KDE ksystemstats uses nvidia-smi to query GPU stats then my screens stutters every 2 seconds.

KDE should not be using command line interfaces for getting information. File a bug report.

It also happens with nvtop which which relies on NVML.
The issue issue is noticeable with a high refresh rate monitor such. 144 Hz in my case.

Here is a screenshot of vkcube with nvtop running.

The frame time curve should be flat without spikes. The whole screens including cursor stutter.

Update: the issue I mentioned above only happens when using the open source driver or enabling GSP. On the proprietary driver it only happens on OpenGL/Vulkan/CUDA context creation and stutters are less noticeable.

GWE also causes slight stutter when it queries the GPU, it’s been going since the 515 driver at least.
It’s very apparent in the vsync tester web page when using chromium.

https://www.vsynctester.com/

It may also be apparent on YouTube videos for example, I don’t quite remember because I stopped using GWE because of this. Besides, GWE isn’t compatible with Wayland either.

Apparently some system calls to the Nvidia drivers block the whole driver: Allocating GPU memory seems to be a system-wide blocking operation · Issue #164 · NVIDIA/egl-wayland · GitHub

You don’t know what you’re talking about. Stop.