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

GPU utilization always at 100% on Vega 3 #923

Open
bsolos opened this issue Feb 10, 2023 · 2 comments · May be fixed by #925
Open

GPU utilization always at 100% on Vega 3 #923

bsolos opened this issue Feb 10, 2023 · 2 comments · May be fixed by #925

Comments

@bsolos
Copy link

bsolos commented Feb 10, 2023

GPU utilization always shows 100% even when idling. I'm sure it isn't MangoHud's fault, because /sys/class/drm/card0/device/gpu_busy_percent is 100 all the time too. I've seen this issue already mentioned here 10 months ago, with no reply.

What's interesting is that radeontop seems to display the GPU utilization correctly. After taking a look at the source code, I've concluded that it calculates the percentage by repeatedly sampling amdgpu_read_mm_registers (take a look at amdgpu.c:25), &-ing it with 1U<<31 (ticks.c:53) and then dividing the number of times it wasn't 0 by the number of samples (ui.c:141). Can such a mechanism be implemented in MangoHud as a workaround for some problematic Vega GPUs?

@bsolos
Copy link
Author

bsolos commented Feb 10, 2023

I've coded a terrible proof of concept here and it seems to produce accurate results

@bsolos
Copy link
Author

bsolos commented Feb 11, 2023

I've recorded a video (sorry for the terrible quality)

2023-02-11.09-41-12.mp4

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

Successfully merging a pull request may close this issue.

1 participant