High DWM.exe usage on WVD Windows 10 v2004

%3CLINGO-SUB%20id%3D%22lingo-sub-1819256%22%20slang%3D%22en-US%22%3EHigh%20DWM.exe%20usage%20on%20WVD%20Windows%2010%20v2004%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1819256%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20now%20have%20multiple%20customers%20where%20DWM.exe%20uses%20too%20much%20CPU%20randomly.%3C%2FP%3E%3CP%3EIn%20our%20monitoring%2C%20we%20see%20spikes%20that%20DWM.exe%20uses%2025%25%20percent%20constant%20CPU%20(so%201%20of%20the%204%20cores%20in%20the%20VM)%20for%20a%20couple%20of%20hours%2C%20then%20it%20suddenly%20stops%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20doing%20a%20CPU%20trace%20via%20Windows%20Performance%20Analyzer%2C%20we%20see%20that%20DWM.exe%20is%20using%20all%20this%20CPU%20via%26nbsp%3B%3CSTRONG%3Ed3d10warp.dll.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIt's%20happening%20in%20connected%20and%20also%20in%20disconnected%20sessions.%20Connecting%20%2F%20disconnecting%20does%20not%20seem%20to%20trigger%20it%20or%20stop%20it.%20We%20tried%20using%20a%20different%20VM%20size%20(Intel%20%2F%20AMD%20CPU)%2C%20no%20effect.%20When%20the%20user%20logs%20off%20and%20logs%20on%20a%20again%2C%20problem%20seems%20to%20be%20fixed%20for%20a%20random%20period%20of%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20seems%20to%20happen%20to%20some%20particular%20users%20most%20of%20the%20time%20(but%20sometimes%20also%20to%20random%20users%20once).%20We%20contacted%20these%20most-reported%20users%2C%20but%20they%20have%20no%20%22special%22%20client%20machines%20like%20200%25%20DPI%2C%204K%20displays%2C%20non-Windows%20clients%2C%20dark%20theme%20enabled%20etc.%20Just%20default%20settings%2C%20maximum%202x%20full%20HD%20monitor.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20also%20happened%20once%20to%20an%20administrator%20RDP%20session%20(connected%20via%20classic%20RDP%2C%20not%20via%20WVD).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20else%20have%20this%20problem%3F%20It%20seems%20our%20customers%20who%20are%20still%20running%20WVD%20Windows%2010%20v1903%20are%20not%20experiencing%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHigh%20CPU%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22spikes.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F229284i7E3000121ADE2E5A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22spikes.png%22%20alt%3D%22spikes.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDWM%20using%20the%20CPU%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dwm2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F229287i8801A19D0B072322%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22dwm2.png%22%20alt%3D%22dwm2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnderlying%20DLL%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22perf.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F229286i46AF80B512FA0894%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22perf.png%22%20alt%3D%22perf.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2112679%22%20slang%3D%22en-US%22%3ERe%3A%20High%20DWM.exe%20usage%20on%20WVD%20Windows%2010%20v2004%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2112679%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F140582%22%20target%3D%22_blank%22%3E%40Marco%20Brouwer%3C%2FA%3E%26nbsp%3BI'm%20seeing%20high%20dwm.exe%20CPU%20usage%20as%20well%20on%20a%20pooled%20session%20host.%20A%20single%20user%20is%20consuming%201-2%20cores.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi all,

 

We now have multiple customers where DWM.exe uses too much CPU randomly.

In our monitoring, we see spikes that DWM.exe uses 25% percent constant CPU (so 1 of the 4 cores in the VM) for a couple of hours, then it suddenly stops again.

 

When doing a CPU trace via Windows Performance Analyzer, we see that DWM.exe is using all this CPU via d3d10warp.dll.

It's happening in connected and also in disconnected sessions. Connecting / disconnecting does not seem to trigger it or stop it. We tried using a different VM size (Intel / AMD CPU), no effect. When the user logs off and logs on a again, problem seems to be fixed for a random period of time.

 

It seems to happen to some particular users most of the time (but sometimes also to random users once). We contacted these most-reported users, but they have no "special" client machines like 200% DPI, 4K displays, non-Windows clients, dark theme enabled etc. Just default settings, maximum 2x full HD monitor.

 

It also happened once to an administrator RDP session (connected via classic RDP, not via WVD).

 

Does anyone else have this problem? It seems our customers who are still running WVD Windows 10 v1903 are not experiencing this.

 

High CPU:

spikes.png

 

DWM using the CPU:

dwm2.png

 

Underlying DLL:

perf.png

4 Replies

@Marco Brouwer I'm seeing high dwm.exe CPU usage as well on a pooled session host. A single user is consuming 1-2 cores.

Thank you for reporting. Can you please file a support case and escalate to product team? if possible, after you filed the case, please share the link to your case in this thread.

@Soo Kuan Teo 

 

Yes, we did create a case at MS support, and it has been solved. Sorry for not reporting it here.

The problem was caused by soms HP Printer Driver utility on the WVD host, causing DWM.exe to use excessive CPU.

 

After deleting this printer driver, the issue was gone.

 

This was the reaction by MS support after sending them some log files of the affected host:

There are a total of 6 DWM.exe processes which are active when the trace was captured.

Out of these 3 were under normal usage, 1 was showing as low and there were two processes which were showing as high. While checking the stack tree for DWM.exe application we were able to see that Direct3D Image Rasterizer DLL which is D3D10Warp.dll is the file being used by DWM and next comes DWMCore.dll which is the source file for DWM.exe

We then matched the DISK Usage sample and CPU (Actual Usage Samples) from WPR and see that DWM.exe was constantly having high IOPS due to backgroundhost.exe application which then led us further to find the exact application causing the issue.

Backgroundhost.exe is the consent windows application that stays in the suspended state unless used by the application itself. We found that <AD2F1837.HPPrinterControl> is making this happen,
<AD2F1837.HPPrinterControl> (41012), 71.996121700, 6,070.100, 16.384, 1.
If you check the first value which 41012 which is the thread ID for this process, followed by CPU threshold (71.99) for 6 seconds and then followed by 6,070 which is IOPS count, and finally the wait time (in secs) that is exactly 16secs.

DWM is just a medium for rendering between system GUI and the application. We suggest you to disable or update this specific HPP Printer Control application and let us know if the issue exists.
Let me know if you have any query.

Thank you for sharing your results Marco!