Skip to content

Instantly share code, notes, and snippets.

@nicolargo
Created April 2, 2024 11:25
Show Gist options
  • Save nicolargo/639fb23baaedf3c7ce29f4f9de88548b to your computer and use it in GitHub Desktop.
Save nicolargo/639fb23baaedf3c7ce29f4f9de88548b to your computer and use it in GitHub Desktop.
AMD stats
cat /sys/class/drm/card0/device/pp_od_clk_voltage
cat /sys/kernel/debug/dri/0/amdgpu_pm_info
cat /sys/class/drm/card0/device/gpu_busy_percent
cat /sys/class/drm/card0/device/pp_dpm_sclk
cat /sys/class/drm/card0/device/hwmon/hwmon*/temp1_input
cat /sys/class/drm/card0/device/pp_dpm_mclk
cat /sys/class/drm/card0/device/mem_info_vram_used
cat /sys/class/drm/card0/device/mem_info_vram_total
@mlan
Copy link

mlan commented Apr 2, 2024

root# cat /sys/class/drm/card0/device/pp_od_clk_voltage
cat: /sys/class/drm/card0/device/pp_od_clk_voltage: No such file or directory
root# cat /sys/kernel/debug/dri/0/amdgpu_pm_info
GFX Clocks and Power:
300 MHz (MCLK)
214 MHz (SCLK)
734 MHz (PSTATE_SCLK)
1000 MHz (PSTATE_MCLK)
700 mV (VDDGFX)
3.213 W (average GPU)

GPU Temperature: 24 C
GPU Load: 0 %
MEM Load: 0 %

UVD: Disabled

VCE: Disabled
Clock Gating Flags Mask: 0x3fbcf
Graphics Fine Grain Clock Gating: Off
Graphics Medium Grain Clock Gating: On
Graphics Medium Grain memory Light Sleep: On
Graphics Coarse Grain Clock Gating: On
Graphics Coarse Grain memory Light Sleep: On
Graphics Coarse Grain Tree Shader Clock Gating: Off
Graphics Coarse Grain Tree Shader Light Sleep: Off
Graphics Command Processor Light Sleep: On
Graphics Run List Controller Light Sleep: On
Graphics 3D Coarse Grain Clock Gating: Off
Graphics 3D Coarse Grain memory Light Sleep: Off
Memory Controller Light Sleep: On
Memory Controller Medium Grain Clock Gating: On
System Direct Memory Access Light Sleep: Off
System Direct Memory Access Medium Grain Clock Gating: On
Bus Interface Medium Grain Clock Gating: Off
Bus Interface Light Sleep: On
Unified Video Decoder Medium Grain Clock Gating: On
Video Compression Engine Medium Grain Clock Gating: On
Host Data Path Light Sleep: On
Host Data Path Medium Grain Clock Gating: On
Digital Right Management Medium Grain Clock Gating: Off
Digital Right Management Light Sleep: Off
Rom Medium Grain Clock Gating: On
Data Fabric Medium Grain Clock Gating: Off
VCN Medium Grain Clock Gating: Off
Host Data Path Deep Sleep: Off
Host Data Path Shutdown: Off
Interrupt Handler Clock Gating: Off
JPEG Medium Grain Clock Gating: Off
Repeater Fine Grain Clock Gating: Off
Perfmon Clock Gating: Off
Address Translation Hub Medium Grain Clock Gating: Off
Address Translation Hub Light Sleep: Off

root# cat /sys/class/drm/card0/device/gpu_busy_percent
0
root# cat /sys/class/drm/card0/device/pp_dpm_sclk
0: 214Mhz *
1: 551Mhz
2: 734Mhz
3: 1000Mhz
4: 1046Mhz
5: 1098Mhz
6: 1124Mhz
7: 1183Mhz
root# cat /sys/class/drm/card0/device/hwmon/hwmon*/temp1_input
24000
root# cat /sys/class/drm/card0/device/pp_dpm_mclk
0: 300Mhz *
1: 1000Mhz
2: 1500Mhz
root# cat /sys/class/drm/card0/device/mem_info_vram_used
79949824
root# cat /sys/class/drm/card0/device/mem_info_vram_total
2147483648

@nicolargo
Copy link
Author

Thanks @mlan !

@nicolargo
Copy link
Author

@mlan can you copy paste the result of:

ls -alF /sys/class/drm/card0/device/hwmon/

Thanks again !

@mlan
Copy link

mlan commented Apr 8, 2024

root# ls -alF /sys/class/drm/card0/device/hwmon/
total 0
drwxr-xr-x 3 root root 0 Mar 24 10:02 ./
drwxr-xr-x 12 root root 0 Mar 24 10:02 ../
drwxr-xr-x 3 root root 0 Mar 24 10:02 hwmon0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment