GPU Usage and Memory Fixes

Mar 23, 2026 min read
Development Info

On my system (with Intel and NVIDIA GPUs), the GPU usage and memory graphs shown in plasma-systemmonitor were completely broken.

GPU Usage Fixes Before

With this change, graphs now display useful values 😄.

GPU Usage Fixes After

I compared the VRAM values of processes with nvidia-smi and intel_gpu_top, and they look plausible now. In addition, I optimized the implementation by removing a wasteful nvidia-smi call that occurred in a loop for every line read.