winsiderss / systeminformer

A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware. Brought to you by Winsider Seminars & Solutions, Inc. @ http://www.windows-internals.com
https://systeminformer.sourceforge.io
MIT License
10.97k stars 1.4k forks source link

GPU graph shown usage for wrong node (3D/Copy) compared to Taskmanager (Win10 - 2004) #678

Closed MagicAndre1981 closed 4 years ago

MagicAndre1981 commented 4 years ago

I noticed that the GPU usage shown in Process Hacker doesn't match with Task manager. In Process Hacker it is shown as Copy, while task manager shows 3D, which is correct as I started a 3D game.

image

The AMD driver for HD7730M is latest version Win10-Radeon-Software-Adrenalin-2020-Edition-20.8.3-Aug27.exe.

Process Hacker Version: 3.0.3295 (c933473b) Compiled: 11:43:14 28.08.2020 Win10 - 2004

dmex commented 4 years ago

Try changing the ProcessHacker.ExtendedTools.EnableGpuPerformanceCounters setting to 1

MagicAndre1981 commented 4 years ago

makes no difference

dmex commented 4 years ago

Related to #514

MagicAndre1981 commented 4 years ago

@dmex

ok, I added the GPU counter value and now the setting is corrupted:

image

Compared to others it misses space. When I close PH, add the space, restart PH, the space is gone again.

dmex commented 4 years ago

You might be saving the file with the wrong encoding which should be UTF8

MagicAndre1981 commented 4 years ago

@dmex nope, it is UTF8. Opening the file in notepad3 shows inconsistent line break. I selected Windows, next UNIX and on next opening the same setting (only this setting, no other setting) changes back to this wired thing

MagicAndre1981 commented 3 years ago

I checked this on different systems:

Other AMD GPU:

image

Here the 3D usage is altered between 3D and Copy in PH and as pure 3D in TaskManager.

On a different system with NVIDIA 1050ti, the 3D usage shows as Node 5 and 3D is empty in PH but 3D in Taskmanager:

image

This is really confusing.

dmex commented 3 years ago

Try changing the ProcessHacker.ExtendedTools.EnableGpuPerformanceCounters setting to 1

Duplicate of #514

MagicAndre1981 commented 3 years ago

@dmex it is set to 1.

<setting name="ProcessHacker.ExtendedTools.EnableGpuPerformanceCounters">1</setting>
<setting name="ProcessHacker.ExtendedTools.EnableEtwMonitor">1</setting>
<setting name="ProcessHacker.ExtendedTools.EnableGpuMonitor">1</setting>

and this portable folder was copied to the 2 other systems with the same ProcessHacker.exe.settings.xml

dmex commented 3 years ago

@MagicAndre1981

Can you reinitialize the graphics driver while Process Hacker is running and check if the values are still incorrect?

Execute: pnputil /enum-devices /class Display

Look for your graphics adapter and copy the Instance ID: pnputil /restart-device "Instance ID"

The screen will blank while the graphics driver restarts and reinitializes. After a few seconds the graphs and statistics for the GPU will also reset in Process Hacker so check if the values are still incorrect?

MagicAndre1981 commented 3 years ago

@MagicAndre1981

Can you reinitialize the graphics driver while Process Hacker is running and check if the values are still incorrect?

Execute: pnputil /enum-devices /class Display

Look for your graphics adapter and copy the Instance ID: pnputil /restart-device "Instance ID"

the first command works, but not the second command as I'm on 1909, I'll try to check the 1050ti device tomorrow .

MagicAndre1981 commented 3 years ago

what is the correct syntax for devcon? The value from pnputil doesn't work with devcon restart.

But I noticed now that the game runs in background and I have PH/Taskmgr open in foreground, both show 3D, but when I switch back to game, play a few seconds and use ALT+Tab go back taskmgr shows 3D all time and PH the altered data in 3D and Copy .

I tried wpr -start GPU and dumped it into an ETL, but WPA and gpuview don't show the used nodes. I have no idea if we can capture this information.

dmex commented 3 years ago

what is the correct syntax for devcon?

pnputil /enum-devices /class Display

image

Copy the instance string and include quotes: pnputil /restart-device "Instance ID"

MagicAndre1981 commented 3 years ago

Copy the instance string and include quotes: pnputil /restart-device "Instance ID"

as I said, this restart parameter was added in 2004 and I'm on 1909

MagicAndre1981 commented 3 years ago

pnputil /enum-devices /class Display

image

Copy the instance string and include quotes: pnputil /restart-device "Instance ID"

ok, I booted WinToGo SSD with 20H2 and here the command works and it this causes that the game crashes.

Maybe TM uses a sampling and doesn't capture all data compared to PH? Maybe PH is correct.