btop shows total GPU usage and per GPU usage very well, but it doesn't show per process GPU usage.
I believe that there is an interface that offers all necessary information, independent from GPU vendor.
Resource monitor called Resourceshttps://github.com/nokyan/resources doesn't seem to have much code specific to any GPU vendor, yet it is able to retrieve GPU usage and even per process GPU usage.
The information is available through fdinfo interface.
btop
shows total GPU usage and per GPU usage very well, but it doesn't show per process GPU usage.I believe that there is an interface that offers all necessary information, independent from GPU vendor.
Resource monitor called Resources https://github.com/nokyan/resources doesn't seem to have much code specific to any GPU vendor, yet it is able to retrieve GPU usage and even per process GPU usage.
The information is available through
fdinfo
interface.cat /proc/2960/fdinfo/12
where
2960
is a PID. I am not sure where the12
comes from. Maybe all files need to be opened.Interpretation of
drm-engine-render
needs extra steps:It would be great to have an additional column in processes table of
btop
that would show GPU usage of each process.