GPU usage returns 0 in almost every application

Apparently trying to use mangohud to show some details about how much I’m using the resources in my computer ( CPU usage, HDD usage, etc) but I get everything right except the GPU usage which is always 0. I tried running radeontop and everything is right. It seems that if I run
cat /sys/class/drm/card0/device/gpu_busy_percent
i get
cat: /sys/class/drm/card0/device/gpu_busy_percent: Invalid argument
that would mean there is a bug with the driver which s the most probabile.
I don’t know why this happens or if it is a GPU driver problem or the GPU itself which is a Vega 8 from a r3 2200g. running the default driver amdgpu

How about cat /sys/kernel/debug/dri/0/amdgpu_pm_info

that command required to be executed as root so this is the result:

cat /sys/kernel/debug/dri/0/amdgpu_pm_info

Clock Gating Flags Mask: 0x30fe954f
	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: Off
	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: Off
	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
	Digital Right Management Light Sleep: On
	Rom Medium Grain Clock Gating: On
	Data Fabric Medium Grain Clock Gating: On
	Address Translation Hub Medium Grain Clock Gating: On
	Address Translation Hub Light Sleep: On

GFX Clocks and Power:
	1333 MHz (MCLK)
	400 MHz (SCLK)
	700 MHz (PSTATE_SCLK)
	933 MHz (PSTATE_MCLK)

GPU Temperature: 28 C

VCN: Disabled

(EDIT: backticks doesnt work for somereasons)

There you go then. Problem solved.

i get
cat: /sys/class/drm/card0/device/gpu_busy_percent: Invalid argument
that would mean there is a bug with the driver which s the most probabile.

It’s not problem with the driver, this is outdated command you found on Internet and tried to use which doesn’t work. The one I give you above works perfectly.

Apparently trying to use mangohud to show some details about how much I’m using the resources in my computer ( CPU usage, HDD usage, etc) but I get everything right except the GPU usage which is always 0.

Ask “mangohud” developers to fix it then, problem with their software.

I don’t know why this happens or if it is a GPU driver problem or the GPU itself which is a Vega 8 from a r3 2200g. running the default driver amdgpu

Your GPU is perfectly fine, you just didn’t knew how to ask it for stats and details until now.

@cryptocurious Thanks! That command is what i found that mangohud uses to get the GPU busyness. I will open an issue on Mangohud’s repo about this.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.