-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU monitoring (AMD / ATI) #993
Comments
As shared in #994, this and this were the starting points of my research.
I don't know of any python libraries that do this out of the box. But RadeonTop and aticonfig are command line tools that both grab stats. They can be used like this to get stats. That code spawns a subprocess running |
Also have a look on https://github.com/asornoso/AMD-GPU-INFO |
Amazing job guys! I miss this AMD/ATI GPU monitoring plugin only. This may can help. Old code, but I hope to you can use it :) |
@hunasdf Nice ! I will have a look on it and came back to you for the testing step because i do not have any AMD/ATI device... |
@nicolargo Of course, I help for you! I am a programer too with a little Python knowledge (i am learning it). And I have 5 RX 460 4GB in a single machine and 1 R9 380X 2GB card in another one. On both machine running Win 10 now. Just write to me to what I should do :) |
@hunasdf Just have a quick look on the ADL3 lib (available in Pypi). No documentation and the code is very old... Can you just try this on your machine (from a console) and copy/paste the result:
Thanks Note, on my Linux machine without AMD/ATI card:
|
@nicolargo On Win 10, with R9 380x (python 2.7) |
@hunasdf Yes it will be nice but without any documentation it will not be easy... |
@nicolargo I check this lib and I do not know... Maybe we can use a part of it. Ps.: Sorry for my English, I hope you understand it :) |
@hunasdf thanks for your time and do not worry about your English ;) I want to let specific plugin code outside the Glances source project. So i prefer to have an external ATI/AMD Python Lib. If you want i can initialize a "Git repository skeleton" for this new lib where you test your development. What do you think ? |
It is a great idea, lets try it! |
@nicolargo Good news: something happened!
|
@hunasdf As already done for NVidia (see http://glances.readthedocs.io/en/stable/aoa/gpu.html) the Glances GPU plugin should display the following information for the AMD/ATI GPU:
@hunasdf I just create a new Github repository with the skeleon for the future lib. I call it PyADL (https://github.com/nicolargo/pyadl). Please click here to be added as collaborator. You can now clone, commit and push your dev inside. Let me know if you need additional information. |
@nicolargo I think, this informations is available in the ADL. I seen somewhere. Next step will be grab there. (The infos in my last comment were the same output what atitweak generated. I just was happy to we can use this “old” adl3 lib :)) |
I commited the first alpha version. With this, you can grab the described infos except Memory consumption. If something not okay with the code, the license, anything, just write to me! :) |
Hi @hunasdf My comments here: nicolargo/pyadl#1 Thanks ! |
@hunasdf Any news concerning PyADL ? Do you think that it will be available soon ? If not i have to postpone the implementation of the Glances AMD GPU... Let me know. |
@nicolargo I did not deal with it (i did not have enough time). In my opinion, we must to find other solution for linux. The latest ADL SDK came out on "08/10/2016", so .... I do not happy about it, but yes, we have to postpone the integration :( |
From a Glances dependencies point of view it is a problem because it is a cross platform software so the difference between Windows and others OS should be manage by the lib (PyADL), not by Glances. |
Of course, PyADL should manage it. But if PyADL uses something other, its name can be deception, maybe. |
@nicolargo For GPU temps, it seems the normal systems input for telegraf pulls ATI GPU Temp sensors as well, if that's some sort of hint of where you could grab that info. |
I know this is an older issue but I thought I would share |
Is GPU monitoring for AMD gpus implemented yet? Thanks |
@johntiger1 Nope because there is no cross platform Python lib to grab GPU AMD stat correctly. |
Apologies for helicoptering into this issue...Python is not my thing. I grabbed a couple of Z600s that came with old AMD cards, so started searching to see if Glances could support it and ended up here. |
@imdebating https://pypi.org/project/pyamdgpuinfo/ lloks geat ! I will have a look :) Thanks for the head up ! |
@nicolargo nvtop is nice https://news.ycombinator.com/item?id=39687132 works for amd too (or for me at least) |
From the NVtop documentation: "NVTOP supports AMD GPUs using the amdgpu driver through the exposed DRM and sysfs interface. AMD introduced the fdinfo interface in kernel 5.14 (browse kernel source). Hence, you will need a kernel with a version greater or equal to 5.14 to see the processes using AMD GPUs. Support for recent GPUs are regularly mainlined into the linux kernel, so please use a recent-enough kernel for your GPU." Additional information: |
Is anyone with a AMD GPU can copy paste the result of the command available in the Gist: https://gist.github.com/nicolargo/639fb23baaedf3c7ce29f4f9de88548b (please add a comment directly in the Gist) ? cc: @PhilipDeegan |
FYI I figured out what a lot of those do in this ruby gem: https://github.com/HarlemSquirrel/amdgpu-fan-rb/ |
Implementation done and merged into develop. Need test. For the moment only Linux OS with kernel >= 5.14 are supported. cc: @PhilipDeegan @kdbanman @douglasg14b @hunasdf can you test the develop branch ? |
By needs test do you mean automated unit test or have someone manually test? I can definitely manually test. |
Hm, I don't see AMD GPU 7900XTX running webserver via Docker from Is it included there? My kernel is Linux 6.5.0-27-generic. For reference https://github.com/Umio-Yasuno/amdgpu_top successfully displays data from my 7900XTX, but nvtop doesn't Syllo/nvtop#236 |
Description
As implemented in the issue #170 for the NVidia GPUs, the goal is to enhance the GPU plugin for AMD / ATI GPUs.
First of all, we have to find a Python Lib to grab stats, then change the current plugin to be able to monitor AMD / ATI GPU.
The text was updated successfully, but these errors were encountered: