Uh oh!
There was an error while loading. Please reload this page.
Introduce per process GPU usage - #490
Conversation
Tbusk
commented
Nov 19, 2025
stsdc
commented
Nov 20, 2025
May I ask you to propose a PR that works for you? I'm wondering what would be the best solution to choose the right engine to read. We need to read driver name from GPU class and based on that do the right choice. |
Tbusk
commented
Nov 22, 2025
@stsdc I've been looking around, but the kernel docs are not the clearest on this. Instead, its easier to simply read the output from various files in fdinfo on various setups. Doing this, there only shows up two engines and that the driver is Here is info from a heavy gpu process: The https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/include/amd_shared.h I'm assuming that engine is called the There also appears to be a pro version of the driver, but I don't have that right now. I think I can get it by installing ROCm, but I'm not sure I'd need it for a while, and it is a bit of a hassle. Might be easier to rent a server briefly to get this gpu information. |
stsdc
commented
Nov 22, 2025
@Tbusk also check what Resources does: https://github.com/nokyan/resources/blob/main/lib/process_data/src/gpu_usage.rs |
Just checked what my nvidia 3000 series laptop is running during a stress test (which works on the PR) towards both my onboard graphics and my nvidia card: I have
Also the only addition needed to make it work on my amd machine is to add a fall-though case above your case in the switch in So case"drm-engine-gfx":case"drm-engine-render":I can do a pr if you want. |
stsdc
commented
Nov 22, 2025
I'll appreciate if you'll make a PR. |
Tbusk
commented
Nov 22, 2025
After looking at it a little, the value of Example of a handful of minutes difference in a stress test: |
stsdc
commented
Nov 26, 2025
@Tbusk please check if it works for you now |
Tbusk
commented
Nov 26, 2025
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lenemter
commented
Jan 24, 2026
Works for me on integrated AMD Radeon Vega |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ryo Nakano <ryonakaknock3@gmail.com>
Co-authored-by: Ryo Nakano <ryonakaknock3@gmail.com>
ryonakano
left a comment
There was a problem hiding this comment.
I'm sorry for my late review.
stsdc
commented
May 30, 2026
Closing in favor of #535 |



Needs testing on hardware.