https://bugs.kde.org/show_bug.cgi?id=528967
Bug ID: 528967
Summary: Per-process Intel i915 GPU usage remains at 0% despite
valid DRM engine counters
Classification: Frameworks and Libraries
Product: ksystemstats
Version First 6.8.3
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 198556
--> https://bugs.kde.org/attachment.cgi?id=198556&action=edit
no GPU % values at all
DESCRIPTION
KDE System Monitor 6.8.3 does not correctly display per-process GPU utilization
on my Intel Tiger Lake UHD Graphics (i915).
The overall GPU utilization sensor works and reports values such as 13.4%, but
the GPU Usage column in the Processes table remains at 0%, even for processes
actively using the Intel GPU.
I independently verified GPU activity using the Linux DRM statistics exposed
through `/proc/PID/fdinfo`. By sampling the render-engine busy-time counters
over approximately one second, I measured:
- kwin_wayland: 4.9%
- Xwayland: 4.5%
- plasma-systemmonitor: 1.4%
These are per-process render-engine busy-time percentages, not percentages of
the overall GPU load.
STEPS TO REPRODUCE
1. Start a KDE Plasma Wayland session using an Intel GPU with the i915 driver.
2. Open KDE System Monitor and navigate to the Processes page.
3. Enable the GPU Usage column and generate GPU activity, for example by moving
windows, scrolling in Firefox, or using other graphical applications.
4. Observe the GPU Usage column while the overall GPU sensor reports activity.
5. Independently sample the `drm-engine-render` counters in `/proc/PID/fdinfo`
to confirm per-process GPU activity.
OBSERVED RESULT
The GPU Usage column displays 0% for processes with measurable Intel GPU
activity, while the overall GPU utilization sensor reports nonzero utilization.
For example, Xwayland showed approximately 4.5% render-engine activity
independently, but KDE System Monitor did not report that usage.
EXPECTED RESULT
KDE System Monitor should display the available per-process Intel GPU
utilization based on the kernel's DRM engine counters, independently of whether
dedicated VRAM accounting is available.
Processes with measurable GPU activity should not consistently appear as using
0% GPU.
SOFTWARE/OS VERSIONS
Operating System: CachyOS (Arch Linux based)
KDE Plasma Version: 6.8.3
KDE Frameworks Version: To be filled in from `kinfo`
Qt Version: To be filled in from `kinfo`
Additional package versions:
- plasma-systemmonitor: 6.8.3-1.1
- libksysguard: 6.8.3-1
- ksystemstats: 6.8.3-1.1
Graphics hardware:
- Intel TigerLake-H GT1 UHD Graphics (8086:9a60), i915 kernel driver
- NVIDIA RTX A2000 Laptop GPU, NVIDIA proprietary driver
- Display server: Wayland
ADDITIONAL INFORMATION
The Intel i915 driver exposes valid GPU engine and memory accounting fields.
Example from Xwayland's `/proc/PID/fdinfo`:
```
drm-driver: i915
drm-client-id: 67
drm-engine-render: 184202910112 ns
drm-total-system0: 113100 KiB
drm-resident-system0: 83504 KiB
```
I inspected the Plasma/6.8 branch of `libksysguard`, specifically:
https://invent.kde.org/plasma/libksysguard/-/blob/Plasma/6.8/processcore/plugins/gpu/gpu.cpp
The GPU process monitoring implementation appears to recognize memory fields
such as `drm-total-vram`, but not the `drm-total-system0` fields reported by
this Intel GPU.
Furthermore, `processPidEntry()` contains the following validation condition:
```
return (proc.gfx != 0) && (proc.vram != 0);
```
This raises the possibility that valid GPU engine activity is discarded because
the corresponding memory accounting is not recognized.
This is a suspected cause based on source inspection, not a confirmed patch or
independently verified root cause.
I also observed that `/proc/PID/fdinfo` for KWin is inaccessible to an ordinary
same-user process, whereas Xwayland's counters are readable. However, the
problem affects Xwayland as well, so KWin's access restrictions alone cannot
explain the behavior.
No patched build has been tested.
AI assistance disclosure: This report was prepared with assistance from
ChatGPT. All system measurements, command outputs, and observed behavior were
collected and verified on my own machine. The source-code analysis and proposed
root cause were AI-assisted and have not been independently confirmed.
--
You are receiving this mail because:
You are watching all bug changes.