Per process GPU stats
There is now a standard way to query GPU stats for processes https://docs.kernel.org/gpu/drm-usage-stats.html
Intel and amd follows it since 5.19 (for nvidia we already have the plugin which uses nvidia-smi output)
Reading this should only be a matter of implementing it. How we can show it in a sensible way may be a bit harder. Both implementations do not output a singular usage value but rather per 'engine'. The question is what would be the best way to display this in our tableview.
I can think of multiple options:
- Average it
- Take the max
- One column/attribute per engine
- Do it like windows taskmanager, have a GPU usage column and GPU engine column, they show the currently most used engine https://devblogs.microsoft.com/directx/gpus-in-the-task-manager/#processes-tab
Edited by David Redondo