flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.46k stars 287 forks source link

Feature Request: show AMD GPU PCIe link speed #885

Open emansom opened 1 year ago

emansom commented 1 year ago

Is your feature request related to a problem? Please describe.

On some system configurations (with ASPM enabled, e.g. laptops, handhelds and SFF) the PCIe link speed that AMDGPU's DPM decides to use is rather low (e.g. PCIe 1.0 x8).

This often happens when running games that don't tax the GPU fully; DPM then decides to not switch to a higher link speed.

Resulting in high 1% frame times in most games and a stuttery mess in games that require high bandwidth only fractions of a second.

There's currently no way to expose this information through MangoHud.

Describe the solution you'd like

MangoHud exposing this information by default when ran on an AMD GPU, similar to how this is shown and implemented in nvtop.

Directly informing to the user that something is wrong with the system configuration, as most gamers know that PCIe 1.0 x8 would bottleneck.

gort818 commented 1 year ago

Not a bad idea, will look into this. looks like the info is available with current_link_speed and current_link_width in /sys/class/hwmon

flightlessmango commented 1 year ago

Not sure this works properly. current_link_speed and width suggests my card is running at 16, but it's actually running at 8

flightlessmango commented 11 months ago

gpu_metrics_v1_3 struct has pcie_link_speed, which might be more accurate. Would need some testing to make sure