Repository navigation
GPU utilization matches Task Manager but not the Nvidea load shown by HWiNFO/PredatorSense/Nvidea-app #638
Replies: 4 comments 10 replies
|
You're not missing a setting: NetSpeedTray and the NVIDIA tools measure two different things. NetSpeedTray reads the same Windows counter as Task Manager, NVIDIA app / HWiNFO "GPU Utilization" / PredatorSense use NVIDIA's own driver metric (NVML, the same value as The two numbers can differ a lot under the same load, as your screenshot shows. Neither is wrong; they answer different questions. So:
|
|
Thanks @bungyblue for the detailed write-up and the screenshot, and thanks @CaiqueRechi for the answer, it's spot on. Today NetSpeedTray reads the same Windows counter as Task Manager, so it matches Task Manager and HWiNFO's "3D" line, not NVIDIA's own number. That said, I agree with you. If the GPU is running FurMark flat out, the widget should say 99-100%, not 34%. I'd rather show what NVIDIA (and AMD, and Intel) report for their own hardware. So for 2.3 the plan is to read utilization the way each vendor's own tools do, on NVIDIA, AMD and Intel, integrated and discrete, and keep the Windows counter only as a fallback. One thing I won't give up: on laptops like yours it must not keep the NVIDIA GPU awake just to read a number, so the battery doesn't pay for it. I only have an Intel iGPU here, so when there's a test build I may ask you to run FurMark again and compare. Would that be OK? |
|
@bungyblue a quick favour, if you have 5 minutes. I can't reproduce the 34% here (I only have an Intel GPU, and on it Windows and Intel's own numbers agree), so I'd like to see exactly what Windows reports on your laptop next to what NVIDIA reports. One suspect is Hardware-accelerated GPU scheduling (Settings → System → Display → Graphics, under the default/advanced graphics settings). It's known to make the Windows GPU counters read low on some NVIDIA laptops. Download: gpu_dump.ps1 (use the download button on that page). It only reads: it takes 30 one-second samples of every GPU engine Windows reports, plus NVIDIA's own utilization on NVIDIA cards, and saves them to
Anyone with an AMD GPU (Radeon card or Ryzen graphics, laptop or desktop): I can't test AMD at all, so the same run would help a lot. Start a heavy load (FurMark, or a game), run the script, and while it runs note the GPU utilization that AMD Software shows (Performance → Metrics, or the Alt+R overlay). Then post the CSV plus that number, and your GPU model. Intel Arc owners are welcome too (Intel Graphics Software shows its own number the same way). If you can, run it twice: once with Hardware-accelerated GPU scheduling on and once off (switching it needs a restart). The first version of the script (already posted here; if you ran this one, that's perfect, no need to redo it)# NetSpeedTray tester dump (read-only): 30 one-second samples of every GPU engine (plus nvidia-smi on NVIDIA).
# Run it while FurMark (or a game) runs, then attach gpu_dump.csv. Needs English Windows. Changes nothing.
$out = Join-Path $PWD 'gpu_dump.csv'
$smi = (Get-Command nvidia-smi.exe -ErrorAction SilentlyContinue).Source
$hags = (Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers' -Name HwSchMode -ErrorAction SilentlyContinue).HwSchMode
"# HwSchMode=$hags (2 = HAGS on, 1 = off, empty = driver default)" | Set-Content $out
'time,source,adapter_luid,engine,engtype,value' | Add-Content $out
for ($i = 0; $i -lt 30; $i++) {
$t = (Get-Date).ToString('HH:mm:ss')
$s = (Get-Counter '\GPU Engine(*)\Utilization Percentage' -ErrorAction SilentlyContinue).CounterSamples
$sum = @{}
foreach ($c in $s) {
if ($c.InstanceName -match 'luid_(0x[0-9a-f]+_0x[0-9a-f]+)_phys_\d+_eng_(\d+)_engtype_(.*)$') {
$k = "$($Matches[1]),$($Matches[2]),$($Matches[3])"
$sum[$k] = [double]$sum[$k] + $c.CookedValue
}
}
foreach ($k in $sum.Keys) { "$t,pdh,$k,{0:N1}" -f $sum[$k] | Add-Content $out }
if ($smi) {
$q = & $smi --query-gpu=pci.bus_id,utilization.gpu,pstate,clocks.gr --format=csv,noheader,nounits
foreach ($line in $q) { "$t,nvidia-smi,$($line -replace ', ',';'),,," | Add-Content $out }
}
}
"Wrote $out"It needs Windows in English, because Windows translates these counter names. Thanks a lot, this will tell me whether the fix is "read NVIDIA's number" (the plan either way) or also something about how Windows counts. |
|
@bungyblue the fix for this is out in a test build: 2.2.3-alpha.1. GPU % now comes from NVIDIA's own library, so it should match the NVIDIA app and PredatorSense instead of Task Manager, and the GPU should still be left to sleep at idle on your laptop. If you get a chance to try it, I'd love to hear how close it is under load. Feedback goes in the testers thread, #657. Thanks again for the report! |


You're not missing a setting: NetSpeedTray and the NVIDIA tools measure two different things.
NetSpeedTray reads the same Windows counter as Task Manager,
\GPU Engine(*)\Utilization Percentage, and shows the busiest engine (3D, Copy, Video, etc.) of the selected GPU (monitor_thread.py,aggregate_gpu_engine_utilization). That's why it matches Task Manager and HWiNFO's "3D" load.NVIDIA app / HWiNFO "GPU Utilization" / PredatorSense use NVIDIA's own driver metric (NVML, the same value as
nvidia-smi --query-gpu=utilization.gpu). It reports the share of time the GPU was executing anything during the sample, not how much of a given engine was used.The two numbers can differ a lot under the sa…