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

Shows 0% utilization and vram on AMD RX480 GPU #295

Open
ky56 opened this issue Jan 20, 2022 · 3 comments
Open

Shows 0% utilization and vram on AMD RX480 GPU #295

ky56 opened this issue Jan 20, 2022 · 3 comments

Comments

@ky56
Copy link

ky56 commented Jan 20, 2022

This is the error in the syslog.

Jan 20 09:52:31 <system-name> com.github.stsd[1416]: IGPU.vala:38: Failed to open file “/sys/class/drm/card0/device/mem_info_vram_used”: No such file or directory
Jan 20 09:52:31 <system-name> com.github.stsd[1416]: IGPU.vala:38: Failed to open file “/sys/class/drm/card0/device/mem_busy_percent”: No such file or directory
Jan 20 09:52:31 <system-name> com.github.stsd[1416]: IGPU.vala:38: Failed to open file “/sys/class/drm/card0/device/gpu_busy_percent”: No such file or directory

After googling it I found this.

https://forum.manjaro.org/t/gpu-usage-returns-0-in-almost-every-application/50092

It seems those files don't exist anymore.

@stsdc
Copy link
Member

stsdc commented Jan 20, 2022

I'm on 5.11.0-46-generic #51~20.04.1-Ubuntu and those files exist. These files are created by amdgpu driver and are described in the Kernel docs. I'm not sure why they called it deprecated, but maybe they're absent on newer kernels or newer amdgpu drivers.

If You will find out how to fix it, let me know! It would be helpful if You'll create a PR since I'm unable to test Monitor on such hardware configuration.

@ky56
Copy link
Author

ky56 commented Jan 27, 2022

I seems that system monitor is pointing to the wrong card. I have the integrated Intel HD 2500 (card0) enabled as well as the RX480 (card1).

/sys/class/drm/card1/device/mem_info_vram_used
/sys/class/drm/card1/device/mem_busy_percent
/sys/class/drm/card1/device/gpu_busy_percent

These files work and point to the RX480. The Intel GPU seems to use a different file layout. Does monitor support Intel iGPU's as I only see the RX480 listed?

Interestingly the temperature is being correctly read from card1.

/sys/class/drm/card1/device/hwmon/hwmon0/temp1_input 

Is this the file used by monitor for reading AMD GPU temperatures?

@stsdc
Copy link
Member

stsdc commented Jan 27, 2022

Right now Monitor is not supporting multiple graphic card configuration.

Hwmon is parsed separately, You may investigate it here:
https://github.com/stsdc/monitor/blob/d949b620235c4e27674fe18f265ff5726024b6c9/src/Resources/Hwmon/HwmonPathsParser.vala#L2

Feel free to write a PR for multiple graphic card support!

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