Open BenjaminNavarro opened 6 years ago
I believe you have an excellent request, one which I would find helpful.
Unfortunately, there are a number of problems with this feature request.
The first problem is that I highly recommend against adding any sort of overhead processing to a GNOME Extension. These run in the same process space as the desktop itself; so anything that even minorly slows down the execution will effect all of the entire desktop experience. In short, I completely believe the logic of gathering GPU statistics belongs in libgtop
project. I recommend that you bring up adding this functionality with them.
The other issue is that there are three major GPU makers: AMD, Intel, and NVIDIA. The example you have provided is for NVIDIA only. I have an AMD GPU, so I couldn't test functionality to ensure it works.
In summary, I'd recommend bringing up adding GPU statistics to libgtop
project. If they accept the request, we end up with cross-platform support and most probably cross-GPU maker support.
References:
libgtop project: https://gitlab.gnome.org/GNOME/libgtop
AMD statistics: https://github.com/clbr/radeontop
NVIDIA monitor: https://github.com/mountassir/gmonitor
Original source of information: https://unix.stackexchange.com/questions/38560/gpu-usage-monitoring-cuda#38581
Ok I see. I'll bring this to the libgtop project and see how it goes. I'll keep you posted.
Before installing
gnome-stats-pro
I triedsystem-monitor
and, even if it is not what I wanted, they have a nice feature that I think would be very welcome here: GPU usage. They support only NVIDIA GPUs through thenvidia-smi
tool. It has an option to output XML which would be very easy to parse. I tried it on my computer by runningnvidia-smi --query --xml-format
and you get all the necessary information:Is it possible to integrate such a feature?