[SOLVED] DPC latency issues after fresh Windows 10 install

Mar 17, 2022
6
0
10
After reinstalling Windows 10 on a new SSD(fresh install) I've noticed occasional crackling and popping sound as well as hiccups and stuttering when using my Corsair USB headset and watching media content through browser. Interestingly I haven't noticed these issues when playing video games, or watching content directly from HDD or SDD.
I began to notice this when I downgraded my headset drivers, because the latest one seemed to cause static in audio in MPC-HC, ~3 days after the upgrade.
When I'm using my 3.5mm earbuds I also do not seem to notice any stuttering or such. Tho LatencyMon still shows some dellay, but it's not nearly as bad as with my USB headset.

Using LatencyMon it shows that where is DPC latency issue with the highest reported DPC routine execution time for ndis.sys (4966,320910).

I've already updated my BIOS(but the latest firmware was 2018 apparently), deleted and reinstalled all my Corsair drivers, updated my Network drivers, but to no result. I've also attempted a system reset, but that was no help either. I honestly don't know what to do anymore.

LatencyMon report:

_
CONCLUSION
_
Your system appears to be having trouble handling real-time audio and other tasks. You are likely to experience buffer underruns appearing as drop outs, clicks or pops. One or more DPC routines that belong to a driver running in your system appear to be executing for too long. At least one detected problem appears to be network related. In case you are using a WLAN adapter, try disabling it to get better results. One problem may be related to power management, disable CPU throttling settings in Control Panel and BIOS setup. Check for BIOS updates.
LatencyMon has been analyzing your system for 0:07:27 (h🇲🇲ss) on all processors.


_
SYSTEM INFORMATION
_
Computer name: DESKTOP-GL54Q8D
OS version: Windows 10, 10.0, version 2009, build: 19044 (x64)
Hardware: All Series, ASUS
BIOS: BIOS Date: 04/18/18 18:21:01 Ver: 35.03
CPU: GenuineIntel Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Logical processors: 8
Processor groups: 1
Processor group size: 8
RAM: 16325 MB total


_
CPU SPEED
_
Reported CPU speed (WMI): 4001 MHz
Reported CPU speed (registry): 3998 MHz

Note: reported execution times may be calculated based on a fixed reported CPU speed. Disable variable speed settings like Intel Speed Step and AMD Cool N Quiet in the BIOS setup for more accurate results.


_
MEASURED INTERRUPT TO USER PROCESS LATENCIES
_
The interrupt to process latency reflects the measured interval that a usermode process needed to respond to a hardware request from the moment the interrupt service routine started execution. This includes the scheduling and execution of a DPC routine, the signaling of an event and the waking up of a usermode thread from an idle wait state in response to that event.

Highest measured interrupt to process latency (µs): 255,20
Average measured interrupt to process latency (µs): 8,154566

Highest measured interrupt to DPC latency (µs): 253,30
Average measured interrupt to DPC latency (µs): 3,156473


_
REPORTED ISRs
_
Interrupt service routines are routines installed by the OS and device drivers that execute in response to a hardware interrupt signal.

Highest ISR routine execution time (µs): 163,191596
Driver with highest ISR routine execution time: dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation

Highest reported total ISR routine time (%): 0,068539
Driver with highest ISR total time: dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation

Total time spent in ISRs (%) 0,071264

ISR count (execution time <250 µs): 217407
ISR count (execution time 250-500 µs): 0
ISR count (execution time 500-1000 µs): 0
ISR count (execution time 1000-2000 µs): 0
ISR count (execution time 2000-4000 µs): 0
ISR count (execution time >=4000 µs): 0


_
REPORTED DPCs
_
DPC routines are part of the interrupt servicing dispatch mechanism and disable the possibility for a process to utilize the CPU while it is interrupted until the DPC has finished execution.

Highest DPC routine execution time (µs): 4966,320910
Driver with highest DPC routine execution time: ndis.sys - NDIS (Network Driver Interface Specification), Microsoft Corporation

Highest reported total DPC routine time (%): 0,041025
Driver with highest DPC total execution time: Wdf01000.sys - Среда выполнения платформы драйвера режима ядра, Microsoft Corporation

Total time spent in DPCs (%) 0,117917

DPC count (execution time <250 µs): 413255
DPC count (execution time 250-500 µs): 0
DPC count (execution time 500-10000 µs): 72
DPC count (execution time 1000-2000 µs): 9
DPC count (execution time 2000-4000 µs): 0
DPC count (execution time >=4000 µs): 1


_
REPORTED HARD PAGEFAULTS
_
Hard pagefaults are events that get triggered by making use of virtual memory that is not resident in RAM but backed by a memory mapped file on disk. The process of resolving the hard pagefault requires reading in the memory from disk while the process is interrupted and blocked from execution.

NOTE: some processes were hit by hard pagefaults. If these were programs producing audio, they are likely to interrupt the audio stream resulting in dropouts, clicks and pops. Check the Processes tab to see which programs were hit.

Process with highest pagefault count: wpd.exe

Total number of hard pagefaults 4328
Hard pagefault count of hardest hit process: 1541
Number of processes hit: 46


_
PER CPU DATA
_
CPU 0 Interrupt cycle time (s): 11,545777
CPU 0 ISR highest execution time (µs): 163,191596
CPU 0 ISR total execution time (s): 2,537164
CPU 0 ISR count: 197283
CPU 0 DPC highest execution time (µs): 4966,320910
CPU 0 DPC total execution time (s): 3,815872
CPU 0 DPC count: 359076
_
CPU 1 Interrupt cycle time (s): 0,785882
CPU 1 ISR highest execution time (µs): 51,434467
CPU 1 ISR total execution time (s): 0,011121
CPU 1 ISR count: 14703
CPU 1 DPC highest execution time (µs): 226,688344
CPU 1 DPC total execution time (s): 0,084238
CPU 1 DPC count: 6078
_
CPU 2 Interrupt cycle time (s): 1,252254
CPU 2 ISR highest execution time (µs): 11,666583
CPU 2 ISR total execution time (s): 0,000204
CPU 2 ISR count: 164
CPU 2 DPC highest execution time (µs): 1570,205103
CPU 2 DPC total execution time (s): 0,184778
CPU 2 DPC count: 24750
_
CPU 3 Interrupt cycle time (s): 0,711721
CPU 3 ISR highest execution time (µs): 9,979990
CPU 3 ISR total execution time (s): 0,002338
CPU 3 ISR count: 3639
CPU 3 DPC highest execution time (µs): 265,557779
CPU 3 DPC total execution time (s): 0,013192
CPU 3 DPC count: 2248
_
CPU 4 Interrupt cycle time (s): 0,929938
CPU 4 ISR highest execution time (µs): 3,031516
CPU 4 ISR total execution time (s): 0,000079
CPU 4 ISR count: 64
CPU 4 DPC highest execution time (µs): 253,791896
CPU 4 DPC total execution time (s): 0,050329
CPU 4 DPC count: 8679
_
CPU 5 Interrupt cycle time (s): 0,706521
CPU 5 ISR highest execution time (µs): 5,587794
CPU 5 ISR total execution time (s): 0,000835
CPU 5 ISR count: 1015
CPU 5 DPC highest execution time (µs): 115,853927
CPU 5 DPC total execution time (s): 0,012861
CPU 5 DPC count: 2304
_
CPU 6 Interrupt cycle time (s): 0,915962
CPU 6 ISR highest execution time (µs): 3,881941
CPU 6 ISR total execution time (s): 0,000054
CPU 6 ISR count: 42
CPU 6 DPC highest execution time (µs): 207,073537
CPU 6 DPC total execution time (s): 0,045244
CPU 6 DPC count: 7587
_
CPU 7 Interrupt cycle time (s): 0,736548
CPU 7 ISR highest execution time (µs): 3,321661
CPU 7 ISR total execution time (s): 0,000430
CPU 7 ISR count: 497
CPU 7 DPC highest execution time (µs): 173,636818
CPU 7 DPC total execution time (s): 0,016548
CPU 7 DPC count: 2615
_
 
Solution
DPC latency suddenly become a problem for both 10 and 11 in the last few months so I don't know if its something Microsoft have done. Its too wide spread to be just one cause.

I never even knew I had latency problems until I started getting a random spike once a week.

ndis and nvidia drivers being top seems to be normal, or regular. Its hard to tell if its a clue or not
mine shows part of windows to blame which is always fun
jalxCgv.jpg

d9sbutq.jpg


I think mine caused by a problem AMD need to fix with a BIOS update, I guess I find out if I am right after then.
Mar 17, 2022
6
0
10
I'm connecting through ethernet cable. According to Device Manager, the network adapter is Intel(R) Ethernet Connection (2) i219-v. Already manually installed latest drivers for it from the official website.

Motherboard: 2014 Maximus VII Formula
GPU: GTX 980ti
CPU: i7 4790k
RAM: don't remember manufacturer but DDR3 1600Mhz

It does seem to get slightly better after I've just scrapped all final remains of my Corsair drivers, that stuff is surprisingly difficult to remove completely. But that just may be a false sense of security until the next big stutter.
EDIT:
It was a false sense of security. At worst the DPC time reaches ~7000, that is where it becomes unbearable for me.
 
Last edited:
Mar 19, 2022
2
0
10
I have somewhat outdated specs and recently encountered the same behavior. Fresh installation of Windows 10 21H2 on new Samsung 870 EVO gave me high DPC latency spikes. My previous installation was on Samsung 850 PRO. I cloned my old installation to the new drive and everything seemed to be fine, so I figured out it was not a hardware problem. I checked all the drivers and they turned out to be the same (Windows Update in both cases). Then I noticed that on fresh installation the spikes seem to disappear after 24h from installation. It sounds strange, but I tried it twice and it worked. So try to wait for 24h after fresh install and check again.

My specs:
Motherboard: ASUS P8Z77-m
GPU: GTX 1070
CPU: i7 3770k
RAM: DDR3 1600 MHz
 
Mar 17, 2022
6
0
10
I also have Samsung 870 EVO, but in my case, it has already been more than a week since I've installed Windows, tho I did a system reset midway. Will have to wait and see, I guess. I wonder if there is an issue with the latest Windows 10 21H2. On my previous drive I had quite old verrsion on Windows 10 since I've blocked updates.
I must say it is incredibly frustrating that a new fresh install on an SSD works worse in this case that an outdated install on a 11 year old harddrive.
 
Mar 19, 2022
2
0
10
I also have Samsung 870 EVO, but in my case, it has already been more than a week since I've installed Windows, tho I did a system reset midway. Will have to wait and see, I guess. I wonder if there is an issue with the latest Windows 10 21H2. On my previous drive I had quite old verrsion on Windows 10 since I've blocked updates.
I must say it is incredibly frustrating that a new fresh install on an SSD works worse in this case that an outdated install on a 11 year old harddrive.

I checked whether it's a 21H2 problem or not. I upgraded my previous installation from 21H1 to 21H2 and there was still no DPC latency after that.
 

Colif

Win 11 Master
Moderator
DPC latency suddenly become a problem for both 10 and 11 in the last few months so I don't know if its something Microsoft have done. Its too wide spread to be just one cause.

I never even knew I had latency problems until I started getting a random spike once a week.

ndis and nvidia drivers being top seems to be normal, or regular. Its hard to tell if its a clue or not
mine shows part of windows to blame which is always fun
jalxCgv.jpg

d9sbutq.jpg


I think mine caused by a problem AMD need to fix with a BIOS update, I guess I find out if I am right after then.
 
Solution
Mar 17, 2022
6
0
10
If this is the case, I guess, I'll have to wait until MS rolls out the fix, or try and downgrade to a much older version. But for now, I'm going to continue searching for possible fixes.

Also, as I said in my first post, contrary to 18Whlr's situation, my problems started after some days of using the new installation.
 

Colif

Win 11 Master
Moderator
Only reason his might have gotten better after 12 hours is it might have taken that long to get all the updates for his hardware, windows 10 uses the Microsoft store to update things as well, it doesn't download it all at once.

Wdf01000.sys
thats process that was cause on mine as well.
its window driver framework driver. I don't know windows enough to know what it was doing. its used to make windows drivers, but clearly thats not why it was running - https://en.wikipedia.org/wiki/Windows_Driver_Frameworks

have you got newest realtek audio drivers?
https://answers.microsoft.com/en-us...o/dde24722-2cce-450a-a353-f0c16aa1f4ff?page=2
 
Mar 17, 2022
6
0
10
Now, I'm not sure I've installed Realtek Audio Drivers. They don't show up in device manager, and as I've started experiencing problems, knowing that realtek drivers are prone to causing issues with sound, and the latest ones being from 2017, I didn't bother. I'll try installing them now, and see if it makes a difference.

Also, Wdf01000.sys is not the process that causes issues for me. It's only 0,25 ms. My issue is from ndis.sys, that goes up to more that 10 ms.
 
Last edited:

Colif

Win 11 Master
Moderator
i ran intel driver updater, it showed new WiFi and BT drivers, I installed both, restart PC. Updater tells me new BT drivers... erm, I just did this? Same drivers as before, I run installer again, it "repairs" drivers, I run updater again... offers same drivers. You know, I like circles. MIght check tomorrow, see if they randomly update after a restart.

I still don't have newest BT installed even after installing and repairing them. I have now given up lol. It shouldn't be BT as I rarely use it for anything. And as far as I know I turned WIFI off anyway.
 
Mar 17, 2022
6
0
10
I've installed Realtek Audio Drivers from my motherboard's webpage. It's been ~2 hours, and I've yet to encounter hiccups and pops while using youtube. I feel kinda like an idiot for ignoring the most obvious step.

Yet LatencyMon still shows the same bad ndis.sys DPC latency issues, sometimes at ~10ms. Except, while earlier I would hear artifacts at every spike, now I don't really hear anything. Now I'm even more baffled than before.
Well, at least it seems like the main problem is hopefully solved.
 

Colif

Win 11 Master
Moderator
as i said, it seems more complicated than just one driver.

I already have the latest realtek drivers according to mb website but I know there are newer, from looking at tenforums site.

mine isn't fixed, it just moved
GS0Q6mk.jpg

I didn't even notice it though.
now its blaming Nvidia. I have newest drivers now. I can't do much besides run ddu and put older ones on. I don't feel like messing with a problem that isn't noticeable.

_
CONCLUSION
_
Your system appears to be having trouble handling real-time audio and other tasks. You are likely to experience buffer underruns appearing as drop outs, clicks or pops. One problem may be
related to power management, disable CPU throttling settings in Control Panel and BIOS setup. Check for BIOS updates.
LatencyMon has been analyzing your system for 2:44:36 (h🇲🇲ss) on all processors.


_
SYSTEM INFORMATION
_
Computer name: DESKTOP-UR82F48
OS version: Windows 11, 10.0, version 2009, build: 22000 (x64)
Hardware: X570 AORUS ELITE WIFI, Gigabyte Technology Co., Ltd.
BIOS: F20
CPU: AuthenticAMD AMD Ryzen 5 3600XT 6-Core Processor
Logical processors: 12
Processor groups: 1
Processor group size: 12
RAM: 32712 MB total


_
CPU SPEED
_
Reported CPU speed (WMI): 3793 MHz
Reported CPU speed (registry): 3793 MHz

Note: reported execution times may be calculated based on a fixed reported CPU speed. Disable variable speed settings like Intel Speed Step and AMD Cool N Quiet in the BIOS setup for more
accurate results.


_
MEASURED INTERRUPT TO USER PROCESS LATENCIES
_
The interrupt to process latency reflects the measured interval that a usermode process needed to respond to a hardware request from the moment the interrupt service routine started execution.
This includes the scheduling and execution of a DPC routine, the signaling of an event and the waking up of a usermode thread from an idle wait state in response to that event.

Highest measured interrupt to process latency (µs): 10599.90
Average measured interrupt to process latency (µs): 5.174335

Highest measured interrupt to DPC latency (µs): 10595.30
Average measured interrupt to DPC latency (µs): 1.738212


_
REPORTED ISRs
_
Interrupt service routines are routines installed by the OS and device drivers that execute in response to a hardware interrupt signal.

Highest ISR routine execution time (µs): 889.187978
Driver with highest ISR routine execution time: dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation

Highest reported total ISR routine time (%): 0.084724
Driver with highest ISR total time: dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation

Total time spent in ISRs (%) 0.090354

ISR count (execution time <250 µs): 7735343
ISR count (execution time 250-500 µs): 0
ISR count (execution time 500-1000 µs): 54
ISR count (execution time 1000-2000 µs): 0
ISR count (execution time 2000-4000 µs): 0
ISR count (execution time >=4000 µs): 0


_
REPORTED DPCs
_
DPC routines are part of the interrupt servicing dispatch mechanism and disable the possibility for a process to utilize the CPU while it is interrupted until the DPC has finished execution.

Highest DPC routine execution time (µs): 851.738993
Driver with highest DPC routine execution time: nvlddmkm.sys - NVIDIA Windows Kernel Mode Driver, Version 511.79 , NVIDIA Corporation

Highest reported total DPC routine time (%): 0.034552
Driver with highest DPC total execution time: nvlddmkm.sys - NVIDIA Windows Kernel Mode Driver, Version 511.79 , NVIDIA Corporation

Total time spent in DPCs (%) 0.102076

DPC count (execution time <250 µs): 21096292
DPC count (execution time 250-500 µs): 0
DPC count (execution time 500-10000 µs): 1303
DPC count (execution time 1000-2000 µs): 0
DPC count (execution time 2000-4000 µs): 0
DPC count (execution time >=4000 µs): 0


_
REPORTED HARD PAGEFAULTS
_
Hard pagefaults are events that get triggered by making use of virtual memory that is not resident in RAM but backed by a memory mapped file on disk. The process of resolving the hard pagefault
requires reading in the memory from disk while the process is interrupted and blocked from execution.

NOTE: some processes were hit by hard pagefaults. If these were programs producing audio, they are likely to interrupt the audio stream resulting in dropouts, clicks and pops. Check the
Processes tab to see which programs were hit.

Process with highest pagefault count: mbamservice.exe

Total number of hard pagefaults 16626
Hard pagefault count of hardest hit process: 3146
Number of processes hit: 92


Its a game of whack a mole.