GPU usage linux monitor ryzen 2700u laptop

I’ve installed kernel 4.19.26 and I would like to monitor the GPU usage. But when I install the AMD drivers my laptop would not start something with PKCS issues. GPU seems to work fine without the AMD drivers. So I’ve removed the drivers that I downloaded.

Could anyone tell me how I can monitor the gpu usage?

What distro are you running?

Radeontop is one that probably gives more info than you really need but should do just fine.

If you are running Ubuntu you can install it from the “Universe” repo.
Arch you can find it in the AUR
Fedora has it in the repo’s as well.

I’m running ubuntu. But if I runing radeontop I get this:

You see GPU unknown.

That’s wierd, try this:

watch -n 0.5 cat /sys/kernel/debug/dri/0/amdgpu_pm_info

Also what version of Ubuntu are you using? (18.04 etc.) Could by that version in the repo is too old for your gpu.

These are the results.
Clock Gating Flags Mask: 0xfe97cf
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: On
Graphics 3D Coarse Grain memory Light Sleep: On
Memory Controller Light Sleep: On
Memory Controller Medium Grain Clock Gating: On
System Direct Memory Access Light Sleep: On
System Direct Memory Access Medium Grain Clock Gating: Off
Bus Interface Medium Grain Clock Gating: On
Bus Interface Light Sleep: On
Unified Video Decoder Medium Grain Clock Gating: Off
Video Compression Engine Medium Grain Clock Gating: Off
Host Data Path Light Sleep: On
Host Data Path Medium Grain Clock Gating: Off
Digital Right Management Medium Grain Clock Gating: On

I’m running ubuntu 18.10. Kernel version mainline PPA 4.19.26.

Also thank you very much for you help.

Hi there guys I still cannot find a resolution for my GPU monitoring issue. I’ve upgraded just to kernel 5.05 but still the issue persists.

Don’t have a solution either but just wanted to confirm the behavior. Kubuntu 18.10, kernel 4.20, Lenovo Ideapad, Ryzen 5 2500U.

Issue is fixed with radeontop on ubuntu release 19.04. Running it now without issues.

1 Like