[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.