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

FR: Add AMD GPU metrics #26

Open
geransmith opened this issue Jan 23, 2024 · 1 comment
Open

FR: Add AMD GPU metrics #26

geransmith opened this issue Jan 23, 2024 · 1 comment

Comments

@geransmith
Copy link

Hello! I see that this config has support for Nvidia GPU stats. I'd love if you could add support for reading GPU information (temp, usage, etc) via either lm-sensors or radeontop. I don't know quite enough lue to actually do a pull request or I'd offer to help more.

If it helps, here are some example outputs from those.

sensors has information on fan speed, temp, etc.

$ sensors -u amdgpu-pci-0a00
amdgpu-pci-0d00
Adapter: PCI adapter
vddgfx:
  in0_input: 0.775
fan1:
  fan1_input: 0.000
  fan1_min: 0.000
  fan1_max: 3400.000
edge:
  temp1_input: 47.000
  temp1_crit: 100.000
  temp1_crit_hyst: -273.150
  temp1_emergency: 105.000
junction:
  temp2_input: 53.000
  temp2_crit: 110.000
  temp2_crit_hyst: -273.150
  temp2_emergency: 115.000
mem:
  temp3_input: 52.000
  temp3_crit: 100.000
  temp3_crit_hyst: -273.150
  temp3_emergency: 105.000
PPT:
  power1_average: 35.000
  power1_cap: 264.000

radeontop shows information on GPU usage, VRAM usage, clock speed, etc. You can run it in dump mode and output to stdout.

$ radeontop -d -l1
Dumping to -l1, until termination.
1705984147.783063: bus 0d, gpu 5.83%, ee 0.00%, vgt 4.17%, ta 3.33%, sx 2.50%, sh 4.17%, spi 4.17%, sc 3.33%, pa 0.83%, db 3.33%, cb 3.33%, vram 8.54% 1393.56mb, gtt 1.00% 160.15mb, mclk 100.00% 1.000ghz, sclk 1.41% 0.038ghz
@ChaosInfinited
Copy link

Hi, I've just opened a PR for this:
#32
It's using amdgpu_top instead of radeontop, maybe you'll have some use out of it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants