Skip to content
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

AMD support with radeontop #161

Open
antonio24073 opened this issue Nov 26, 2024 · 2 comments
Open

AMD support with radeontop #161

antonio24073 opened this issue Nov 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@antonio24073
Copy link

Hi,

Please add amd support with radeontop.

Steps:

  • Install radeontop
sudo apt install radeontop -y
  • run the command:
radeontop -d --

It will return something like this::

1732580637.806896: bus 01, gpu 10.00%, ee 0.00%, vgt 0.00%, ta 6.67%, sx 7.50%, sh 0.00%, spi 10.00%, sc 9.17%, pa 3.33%, db 10.00%, cb 7.50%, vram 55.08% 563.98mb, gtt 25.40% 519.07mb, mclk inf% 0.662ghz, sclk 52.02% 0.429ghz
1732580638.807094: bus 01, gpu 10.00%, ee 0.00%, vgt 0.00%, ta 6.67%, sx 7.50%, sh 0.00%, spi 10.00%, sc 9.17%, pa 3.33%, db 10.00%, cb 7.50%, vram 55.08% 563.98mb, gtt 25.40% 519.07mb, mclk inf% 0.662ghz, sclk 52.02% 0.429ghz
1732580639.807313: bus 01, gpu 11.67%, ee 0.00%, vgt 0.83%, ta 10.00%, sx 10.00%, sh 0.00%, spi 11.67%, sc 10.83%, pa 5.00%, db 11.67%, cb 10.00%, vram 54.22% 555.25mb, gtt 25.40% 519.07mb, mclk inf% 0.668ghz, sclk 52.27% 0.431ghz

To get gpu usage you can do:

radeontop -d --| grep -Poi 'gpu \K(\d{1,3}.\d{2}%)'

To get vram usage, you can replace gpu with vram:

radeontop -d --| grep -Poi 'vram \K(\d{1,3}.\d{2}%)'

So you can get all the specifications from:

1732580639.807313: bus 01, gpu 11.67%, ee 0.00%, vgt 0.83%, ta 10.00%, sx 10.00%, sh 0.00%, spi 11.67%, sc 10.83%, pa 5.00%, db 11.67%, cb 10.00%, vram 54.22% 555.25mb, gtt 25.40% 519.07mb, mclk inf% 0.668ghz, sclk 52.27% 0.431ghz

To better performance, you can put the result of radeontop -d into a text file or cache instead run multiple parallels processes. So run, something like cat radeontop.txt | grep -Poi 'gpu \K(\d{1,3}.\d{2}%)'

best regards,

@antonio24073 antonio24073 added the bug Something isn't working label Nov 26, 2024
@antonio24073
Copy link
Author

alternative solution for those who don't want to wait:

add a -l 1 to the command

radeontop -l 1 -d --| grep -Poi 'gpu \K(\d{1,3}.\d{2}%)'

and put it in executor gnome extension

@ljuzig
Copy link
Collaborator

ljuzig commented Dec 13, 2024

I did some preliminary testing and I think I can add radeontop support, but I can't give you an ETA right now, I hope to be able to add it by December.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants