Share via

High DPC/ ISR Latency

Anonymous
2019-01-31T17:04:34+00:00

Hello community, 

So by way of background, for a while now I have experienced issues regarding audio crackles and pops. This primarily occurs when using Cubase 9.5 but also exists outside of the software too, occasionally. After searching for solutions, I came across LatencyMon and decided to start testing (the results of which can be found below). I should add that when trying it for the past few days, I have noticed that the 'Highest measured interrupt to process latency' changes between HDAudBus.sys and Wdf01000.sys. 

Steps I have taken so far:

  1. The first thing I did was simply to plug out all of the USB devices that were inserted in my computer one by one. One potentially notable piece of information is that I switched audio interface very recently - from the Focusrite 2i2 to the Audient iD4. However, I experienced these issues with my last audio interface too. This step produced no differences. 
  2. I then, through device manager, disabled a huge variety of drivers one by one to see if there was a particular driver causing the issue. This primarily included network, audio and USB drivers. This step produced no differences. 
  3. Following this I downloaded Driver Booster and tried to update all outdated drives, of which there were many. This step produced no differences. 

Pretty sure there were a few other minor things I have tried too such as disabling WiFi, antivirus and more. All produced no result.

More than happy to provide more details if necessary. Any help is greatly appreciated. 

LatencyMon:

_________________________________________________________________________________________________________

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. 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:04:26  (h:mm:ss) on all processors.

_________________________________________________________________________________________________________

SYSTEM INFORMATION

_________________________________________________________________________________________________________

Computer name:                                        DESKTOP-9TGICJA

OS version:                                           Windows 10 , 10.0, build: 17134 (x64)

Hardware:                                             N552VX, ASUSTeK COMPUTER INC.

CPU:                                                  GenuineIntel Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz

Logical processors:                                   4

Processor groups:                                     1

RAM:                                                  12156 MB total

_________________________________________________________________________________________________________

CPU SPEED

_________________________________________________________________________________________________________

Reported CPU speed:                                   2304 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):   2250.220222

Average measured interrupt to process latency (µs):   5.684522

Highest measured interrupt to DPC latency (µs):       2190.220275

Average measured interrupt to DPC latency (µs):       2.232872

_________________________________________________________________________________________________________

 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):              149.830729

Driver with highest ISR routine execution time:       HDAudBus.sys - High Definition Audio Bus Driver, Microsoft Corporation

Highest reported total ISR routine time (%):          0.021921

Driver with highest ISR total time:                   Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

Total time spent in ISRs (%)                          0.023631

ISR count (execution time <250 µs):                   82832

ISR count (execution time 250-500 µs):                0

ISR count (execution time 500-999 µs):                0

ISR count (execution time 1000-1999 µs):              0

ISR count (execution time 2000-3999 µ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):              1638.547743

Driver with highest DPC routine execution time:       Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

Highest reported total DPC routine time (%):          0.562742

Driver with highest DPC total execution time:         Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

Total time spent in DPCs (%)                          0.710236

DPC count (execution time <250 µs):                   944181

DPC count (execution time 250-500 µs):                0

DPC count (execution time 500-999 µs):                162

DPC count (execution time 1000-1999 µs):              4

DPC count (execution time 2000-3999 µ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:                 winword.exe

Total number of hard pagefaults                       643

Hard pagefault count of hardest hit process:          323

Number of processes hit:                              18

_________________________________________________________________________________________________________

 PER CPU DATA

_________________________________________________________________________________________________________

CPU 0 Interrupt cycle time (s):                       17.051465

CPU 0 ISR highest execution time (µs):                149.830729

CPU 0 ISR total execution time (s):                   0.251434

CPU 0 ISR count:                                      82832

CPU 0 DPC highest execution time (µs):                1638.547743

CPU 0 DPC total execution time (s):                   7.498538

CPU 0 DPC count:                                      938734

_________________________________________________________________________________________________________

CPU 1 Interrupt cycle time (s):                       6.104686

CPU 1 ISR highest execution time (µs):                0.0

CPU 1 ISR total execution time (s):                   0.0

CPU 1 ISR count:                                      0

CPU 1 DPC highest execution time (µs):                227.875868

CPU 1 DPC total execution time (s):                   0.026960

CPU 1 DPC count:                                      2310

_________________________________________________________________________________________________________

CPU 2 Interrupt cycle time (s):                       5.310433

CPU 2 ISR highest execution time (µs):                0.0

CPU 2 ISR total execution time (s):                   0.0

CPU 2 ISR count:                                      0

CPU 2 DPC highest execution time (µs):                203.476563

CPU 2 DPC total execution time (s):                   0.009951

CPU 2 DPC count:                                      1081

_________________________________________________________________________________________________________

CPU 3 Interrupt cycle time (s):                       5.152465

CPU 3 ISR highest execution time (µs):                0.0

CPU 3 ISR total execution time (s):                   0.0

CPU 3 ISR count:                                      0

CPU 3 DPC highest execution time (µs):                279.683160

CPU 3 DPC total execution time (s):                   0.021462

CPU 3 DPC count:                                      2222

_________________________________________________________________________________________________________

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2019-02-08T23:08:50+00:00

    Thank you for getting back to me. I have done all of the above steps, with no success so far. I will be sure to provide feedback. I attach a more recent LatencyMon test. I believe the results are slightly different this time.

    Test:

    _________________________________________________________________________________________________________

    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. Also one or more ISR 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:03:50  (h:mm:ss) on all processors.

    _________________________________________________________________________________________________________

    SYSTEM INFORMATION

    _________________________________________________________________________________________________________

    Computer name:                                        DESKTOP-9TGICJA

    OS version:                                           Windows 10 , 10.0, build: 17134 (x64)

    Hardware:                                             N552VX, ASUSTeK COMPUTER INC.

    CPU:                                                  GenuineIntel Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz

    Logical processors:                                   4

    Processor groups:                                     1

    RAM:                                                  12156 MB total

    _________________________________________________________________________________________________________

    CPU SPEED

    _________________________________________________________________________________________________________

    Reported CPU speed:                                   2304 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):   8111.544740

    Average measured interrupt to process latency (µs):   5.791453

    Highest measured interrupt to DPC latency (µs):       7941.322745

    Average measured interrupt to DPC latency (µs):       2.073635

    _________________________________________________________________________________________________________

     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):              1030.326389

    Driver with highest ISR routine execution time:       Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

    Highest reported total ISR routine time (%):          0.012373

    Driver with highest ISR total time:                   Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

    Total time spent in ISRs (%)                          0.016551

    ISR count (execution time <250 µs):                   67271

    ISR count (execution time 250-500 µs):                0

    ISR count (execution time 500-999 µs):                3

    ISR count (execution time 1000-1999 µs):              1

    ISR count (execution time 2000-3999 µ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):              2116.898438

    Driver with highest DPC routine execution time:       Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

    Highest reported total DPC routine time (%):          0.491111

    Driver with highest DPC total execution time:         Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation

    Total time spent in DPCs (%)                          0.710999

    DPC count (execution time <250 µs):                   828232

    DPC count (execution time 250-500 µs):                0

    DPC count (execution time 500-999 µs):                201

    DPC count (execution time 1000-1999 µs):              15

    DPC count (execution time 2000-3999 µs):              2

    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:                 chrome.exe

    Total number of hard pagefaults                       3315

    Hard pagefault count of hardest hit process:          2238

    Number of processes hit:                              40

    _________________________________________________________________________________________________________

     PER CPU DATA

    _________________________________________________________________________________________________________

    CPU 0 Interrupt cycle time (s):                       15.185592

    CPU 0 ISR highest execution time (µs):                1030.326389

    CPU 0 ISR total execution time (s):                   0.151369

    CPU 0 ISR count:                                      66958

    CPU 0 DPC highest execution time (µs):                2116.898438

    CPU 0 DPC total execution time (s):                   6.362623

    CPU 0 DPC count:                                      811189

    _________________________________________________________________________________________________________

    CPU 1 Interrupt cycle time (s):                       5.965884

    CPU 1 ISR highest execution time (µs):                151.618056

    CPU 1 ISR total execution time (s):                   0.000914

    CPU 1 ISR count:                                      317

    CPU 1 DPC highest execution time (µs):                446.163194

    CPU 1 DPC total execution time (s):                   0.106391

    CPU 1 DPC count:                                      8997

    _________________________________________________________________________________________________________

    CPU 2 Interrupt cycle time (s):                       5.402804

    CPU 2 ISR highest execution time (µs):                0.0

    CPU 2 ISR total execution time (s):                   0.0

    CPU 2 ISR count:                                      0

    CPU 2 DPC highest execution time (µs):                1140.368924

    CPU 2 DPC total execution time (s):                   0.038947

    CPU 2 DPC count:                                      4303

    _________________________________________________________________________________________________________

    CPU 3 Interrupt cycle time (s):                       4.951277

    CPU 3 ISR highest execution time (µs):                0.0

    CPU 3 ISR total execution time (s):                   0.0

    CPU 3 ISR count:                                      0

    CPU 3 DPC highest execution time (µs):                210.392361

    CPU 3 DPC total execution time (s):                   0.033685

    CPU 3 DPC count:                                      3961

    _________________________________________________________________________________________________________

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-02-05T05:17:00+00:00

    Hi,

    Apologies for the delayed response.

    We have been researching on this issue, we would like you to try a couple of steps and let us know if it works.

    Change Power plan

    Change the power plan to High performance or Power saver and see if it makes any difference.


    Disable dynamic timer tick feature

    Open Command prompt in admin mode.

    Type bcdedit /set disabledynamictick yes and hit the Enter key.

    Reboot the computer and check the status.

    Enable the dynamic timer tick in case, disabling it doesn’t help.

    I would also encourage you to post your feedback and suggestions on Windows 10 feedback Hub app to help us improve your Windows experience.

    Send feedback to Microsoft with the Feedback Hub app

    I have also sent you a private message, please click on your profile name, select My Profile and choose View personal messages.

    Regards,

    Peer Samie

    Microsoft Community-Moderator

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2019-02-01T18:18:18+00:00

    Many thanks for the response. 

    I have tried all of the above steps, but the results of LatencyMon have not appeared to change so far.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2019-02-01T09:49:51+00:00

    Hi,

    Thank you for writing to Microsoft Community Forums.

    I appreciate you for providing us the required amount of information. As can be seen from the LatencyMon report, the problem can be related to power management. As suggested in the report, you can try with disabling CPU throttling Settings in control panel and BIOS. Also check if there are any updates available for BIOS and chipset.

    Disclaimer: Modifying BIOS/ complementary metal oxide semiconductor (CMOS) settings incorrectly can cause serious problems that may prevent your computer from booting properly. Microsoft cannot guarantee that any problems resulting from the configuring of BIOS/CMOS settings can be solved. Modifications of the settings are at your own risk. 

    I would suggest to contact the system manufacturer to get BIOS and chipset drivers updated.

    Please follow the steps given below to adjust the power management settings for the processor.

    • Click Start and select Settings >System > Power & sleep.
    • Click on Power Options.
    • Click Change Plan Settings next to the selected Plan.
    • Click Change Advanced Power Settings.
    • In Advanced settings, scroll down to Processor power management. Make sure the settings as highlighted in the red boxes are all set to 100%.
    • Click Ok.

    In case, the above steps do not work,****disable/turn off Microsoft ACPI-Compliant Method Battery in device manager. Before disabling it, uninstall Intel Dynamic Platform and thermal Framework. Please follow the steps as given below.

    • Press Windows key + R. This will open Run. Alternatively, you can go to Start and search for Run.
    • In Run dialog box, type devmgmt.msc and hit Enter.
    • Expand Intel Dynamic Platform and thermal Framework.
    • Right click on Intel(R) Dynamic Platform and thermal Framework Managerand click on Uninstall.
    • Check the checkbox remove the device driver from the computer.
    • Click Ok.
    • Expand Battery.
    • Right click on Microsoft ACPI-Compliant Method Batteryand click on Disable.
    • Reboot the computer and check the results.

    Hope it helps.

    Please get back to us with the updated information and let us know, if we can be of further assistance to you.

    Regards,

    Peer Samie

    Microsoft Community-Moderator

    0 comments No comments