-
Notifications
You must be signed in to change notification settings - Fork 303
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
MangoHud Intel GPU metrics #1082
Comments
this: |
What mangohud version are you using? |
version |
It does not work for me either with
MangoHud 0.7.0-2+ |
These two points seem to be fixed, I have everything working in Proton 8.0-5, v0.7.0-2+ with no hitches. GPU load and frequency function without issues. Only major remaining thing that would be nice is GPU power draw. |
I was just wondering, is there a specific reason why intel gpu metrics are collected with That way you wouldn't need to rely on |
Most of these metrics required root for access and as a shared library we're not able to access root things without a middle man program |
Hi hi, after upgrading to 0.7.2 from 0.7.1 (flatpak) my GPU % use is always 0. I have an iGPU that is HD610. Im with ubuntu 22.04.4 and I use MangoHud with retroarch, lutris and also steam, not sure if I can help, Im new to linux. Love your work <3 |
Same, using Intel Arc a380. |
Setcapping I'm using Intel Iris Xe as iGPU and Intel Iris Xe MAX as dGPU (both working with i915 driver). |
pretty sure igt doesn't support xe yet, unless I've missed some recent release or such. |
Well, at least in my case it seems to work correctly. I don't know if all features are supported yet, though. (The second one is the Intel Iris Xe MAX discrete GPU). But if I use the Xe driver instead of i915, it is only able to show the iGPU metrics. When I try to see dGPU metrics, it gives me this error:
|
For the new Xe kernel driver, Xe KMD is the new default on my Lunar Lake system so unfortunately GPU utilisation under mangohud is totally unavailable FWIW
Apparently panthor and panfrost (for ARM Mali GPUs) also use this specification, and i915 KMD (for less recent Intel GPUs) exposes it too |
Should be easily added into mangohud. |
These docs explain the meaning of these fields: https://dri.freedesktop.org/docs/drm/gpu/i915.html#intel-gpu-basics It seems RCS is what "Render/3D" refers to in Games on my system only affect |
Yeah that seems about right |
So specifically |
https://www.kernel.org/doc/Documentation/gpu/i915.rst in short: |
Details
If you're calling the DRM client usage stats API, looking at gputop's code, it seems to be taking the delta of |
With the release of the 6.12 Kernel I made the switch to the xe driver and so far it's been smooth sailing. I'd love for mangohud to display GPU metrics, is there any way I can feed the |
@PerAstraAdDeum support for the |
Ohh nice! Can I just install |
@PerAstraAdDeum I think you can just install While we're at it, can you launch this in terminal?
I want to compare against my intel card if everything's the same. |
I'm on MTL iGPU! (Intel(R) Core(TM) Ultra 7 155H with Intel Arc Graphics). Here's the output of the commands you gave me:
-->
-->
Hope that helps! |
Thank you, and I forgot last one:
I'm checking for whether I need to account for different |
-->
Something else I can do? |
ahahah, yeah..., do you have hwmon at all?
|
Nope. And if ... what does that mean? No metrics for me? 😭 |
It means no power usage for you, probably because it's a laptop |
Oh well, I can live with that. 😆 Anything else to check? |
No, that's all. Thank you once again. |
Sure, glad I could help! I'll be waiting for the |
I just compiled mangohud-git after the latest commits ae4c411 and 6c49103 but unfortunately, it is still broken with Arc A750 using Xe driver. Does not show usage percentage or temperature and it shows over -100000 W power usage and it doesn't stop increasing, always climbing up. No VRAM either, though that could be related to Wine. Most efficient card on the planet, supplies infinite power to the world 😄 Edit: I don't think Wine is the issue since Minecraft has the same problem.
|
@nokia8801 can I contact you on discord for debugging purposes? |
I'm not Nokia and I'm not on discord, but if you need me to test something (Arc iGPU with xe driver, Arch Linux) for the next release, let me know. |
@PerAstraAdDeum do you have same issues as nokia? if yes, I can use your help too. |
Of course I can help mate, but I'm also not on Discord. I do have Matrix, I use the Fractal client. |
+1 for Matrix, I'm there too. And I don't have the newest version yet, according to |
mangohud-git is out of date because some newbie user flagged it as such. It is a git package so it always builds the latest version. Just go ahead and compile/install it. |
okay, I'll try to use matrix, don't think I used it before. Can either of you create a matrix group so we could coordinate there? @PerAstraAdDeum you would need to compile it manually, yeah. I don't use arch linux and I thought that yay downloads latest git versions. Apparently it's also manually updated. Last update for git version was on 19th of june, which is quite old for a git version. |
Okay, gonna try manually now. Hey, regarding Matrix: why not open a Room for Mangohud in general? |
I don't follow, you mean like create an alternative to discord server but on matrix? |
Here is the room link. You should download a Matrix client and also create a matrix account. |
Compiled latest git on my igpu-only laptop and I can see usage precent but not frequency |
@Lassebq woah, i didn't know you could get frequency via sysfs. What's your cpu? Anyways, currently mangohud doesn't know how to do that, but I can try and add that if you could help me test it. |
Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz |
Woah again, I didn't even know i915 had that functionality. I'll add frequency support in a few days. Note that this will only work for |
Clock speed works with that PR, however it seems a bit different from the value reported in intel_gpu_top? |
@Lassebq intel_gpu_top gathers statistics via perf events, not sysfs, maybe there are some different values. Also polling period might play a role. Mangohud checks every 500ms, while intel_gpu_top does it every 2 seconds, maybe that can affect the output. I'll compare intel_gpu_top and mangohud and check if something can be done about this. If you could, can you join matrix room for intel mangohud discussion? It will be easier to chat there instead of cluttering github. Discord is also fine. Matrix: MangoHud | Intel Xe Driver |
I indeed see that intel_gpu_top and mangohud are showing different values. This is because of different methods of gathering gpu frequency.
I truly don't know which way of gathering is the correct one, but considering that perf_events by default require root, second method seems more natural and I'll keep it as is. |
This issue is for tracking the progress and issues with Intel GPU metrics. dGPU and iGPU.
Current state
intel_gpu_top
has to be installed and it has to be setcap'd e.gsudo setcap cap_perfmon=+ep /usr/bin/intel_gpu_top
intel_gpu_top
intel_gpu_top
unhindered outside of proton/runtimeintel_gpu_top
you need to have flatpak installed and set sniper runtime to betaThe text was updated successfully, but these errors were encountered: