Latency/DPC issue - Audio clicks and pops.

doc46

Member
Joined
Oct 27, 2018
Posts
22
I am having latencies and DPC issues.
Windows is updated, drivers too.
I disabled all audio drivers and devices (realtek is off in the bios) because I have an USB audio card (Focusrite scarlette 2i4 2 Gen).
I've made the maximum optimsation, settings USB/hard drive/PC to power off, maximum performances, disable background apps, etc ...
(Optimising your PC for Audio on Windows 10 – Focusrite Audio Engineering)

After test with latencyMoon, this drivers seems to be the problem.
nvlddmkm.sys - NVIDIA Windows Kernel Mode Driver, Version 416.34,
dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation,
Wdf01000.sys - Runtime de l’infrastructure de pilotes en mode noyau, Microsoft Corporation

I can't fix my CPU frequency to 3.7Ghz.. Try a lot of thing in BIOS.

Screenshot_2.png
_________________________________________________________________________________________________________
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 1:04:56 (h:mm:ss) on processors 0,1,2,3,4,5,6 and 7.




_________________________________________________________________________________________________________
SYSTEM INFORMATION
_________________________________________________________________________________________________________
Computer name: DESKTOP-PT1OHLM
OS version: Windows 10 , 10.0, build: 17134 (x64)
Hardware: MS-7B79, Micro-Star International Co., Ltd., X470 GAMING PLUS (MS-7B79)
CPU: AuthenticAMD AMD Ryzen 7 2700X Eight-Core Processor
Logical processors: 16
Processor groups: 1
RAM: 16332 MB total




_________________________________________________________________________________________________________
CPU SPEED
_________________________________________________________________________________________________________
Reported CPU speed: 370 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.


WARNING: the CPU speed that was measured is only a fraction of the CPU speed reported. Your CPUs may be throttled back due to variable speed settings and thermal issues. It is suggested that you run a utility which reports your actual CPU frequency and temperature.






_________________________________________________________________________________________________________
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): 100860,825467
Average measured interrupt to process latency (µs): 4,508899


Highest measured interrupt to DPC latency (µs): 100858,611410
Average measured interrupt to DPC latency (µs): 2,047086




_________________________________________________________________________________________________________
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): 249,20
Driver with highest ISR routine execution time: dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation


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


Total time spent in ISRs (%) 0,034765


ISR count (execution time <250 µs): 3298968
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): 1079,60
Driver with highest DPC routine execution time: Wdf01000.sys - Runtime de l’infrastructure de pilotes en mode noyau, Microsoft Corporation


Highest reported total DPC routine time (%): 0,132684
Driver with highest DPC total execution time: Wdf01000.sys - Runtime de l’infrastructure de pilotes en mode noyau, Microsoft Corporation


Total time spent in DPCs (%) 0,172803


DPC count (execution time <250 µs): 11481383
DPC count (execution time 250-500 µs): 0
DPC count (execution time 500-999 µs): 264
DPC count (execution time 1000-1999 µs): 1
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: ableton live 10 suite.exe


Total number of hard pagefaults 4717
Hard pagefault count of hardest hit process: 588
Number of processes hit: 46




_________________________________________________________________________________________________________
PER CPU DATA
_________________________________________________________________________________________________________
CPU 0 Interrupt cycle time (s): 245,736470
CPU 0 ISR highest execution time (µs): 249,20
CPU 0 ISR total execution time (s): 19,289807
CPU 0 ISR count: 2985389
CPU 0 DPC highest execution time (µs): 1079,60
CPU 0 DPC total execution time (s): 97,215582
CPU 0 DPC count: 11014466
_________________________________________________________________________________________________________
CPU 1 Interrupt cycle time (s): 105,081786
CPU 1 ISR highest execution time (µs): 208,540
CPU 1 ISR total execution time (s): 2,378546
CPU 1 ISR count: 312997
CPU 1 DPC highest execution time (µs): 661,940
CPU 1 DPC total execution time (s): 10,136335
CPU 1 DPC count: 375316
_________________________________________________________________________________________________________
CPU 2 Interrupt cycle time (s): 66,946475
CPU 2 ISR highest execution time (µs): 133,380
CPU 2 ISR total execution time (s): 0,002901
CPU 2 ISR count: 582
CPU 2 DPC highest execution time (µs): 195,340
CPU 2 DPC total execution time (s): 0,035584
CPU 2 DPC count: 5972
_________________________________________________________________________________________________________
CPU 3 Interrupt cycle time (s): 56,462269
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): 105,040
CPU 3 DPC total execution time (s): 0,003689
CPU 3 DPC count: 1460
_________________________________________________________________________________________________________
CPU 4 Interrupt cycle time (s): 65,123021
CPU 4 ISR highest execution time (µs): 0,0
CPU 4 ISR total execution time (s): 0,0
CPU 4 ISR count: 0
CPU 4 DPC highest execution time (µs): 318,980
CPU 4 DPC total execution time (s): 0,252366
CPU 4 DPC count: 66959
_________________________________________________________________________________________________________
CPU 5 Interrupt cycle time (s): 55,650673
CPU 5 ISR highest execution time (µs): 0,0
CPU 5 ISR total execution time (s): 0,0
CPU 5 ISR count: 0
CPU 5 DPC highest execution time (µs): 162,380
CPU 5 DPC total execution time (s): 0,009587
CPU 5 DPC count: 3073
_________________________________________________________________________________________________________
CPU 6 Interrupt cycle time (s): 85,347620
CPU 6 ISR highest execution time (µs): 0,0
CPU 6 ISR total execution time (s): 0,0
CPU 6 ISR count: 0
CPU 6 DPC highest execution time (µs): 313,160
CPU 6 DPC total execution time (s): 0,052750
CPU 6 DPC count: 11769
_________________________________________________________________________________________________________
CPU 7 Interrupt cycle time (s): 59,970463
CPU 7 ISR highest execution time (µs): 0,0
CPU 7 ISR total execution time (s): 0,0
CPU 7 ISR count: 0
CPU 7 DPC highest execution time (µs): 121,530
CPU 7 DPC total execution time (s): 0,012738
CPU 7 DPC count: 2633
_________________________________________________________________________________________________________


A

  • System Manufacturer? Custom PC
  • Laptop or Desktop? Desktop
  • Exact model number (if laptop, check label on bottom) Custom
  • OS ? (Windows 10, 8.1, 8, 7, Vista) W10 17134
  • x86 (32bit) or x64 (64bit)? x64
  • Service pack? 17134
  • What was original installed OS on system? W10
  • Is the OS an OEM version (came pre-installed on system) or full retail version (YOU purchased it from retailer)? scdkey.com
  • Age of system? (hardware) 5 months
  • Age of OS installation? 1 month (re install -> format)
  • Have you re-installed the OS? yes
  • CPU Ryzen 2700X
  • RAM (brand, EXACT model, what slots are you using?) G.Skill Ripjaws V Gris DDR4 2 x 8 Go 3200 MHz CAS 16
  • Video Card Zotac GTX770
  • MotherBoard - (if NOT a laptop) MSI X470 Gaming Plus
  • Power Supply - brand & wattage (if laptop, skip this one) Antec High Current Pro Platinium 1000W
  • Is driver verifier enabled or disabled? disabled
  • What security software are you using? (Firewall, antivirus, antimalware, antispyware, and so forth) Avira Antivirus
  • Are you using proxy, vpn, ipfilters or similar software? no
  • Are you using Disk Image tools? (like daemon tools, alcohol 52% or 120%, virtual CloneDrive, roxio software) no
  • Are you currently under/overclocking? Are there overclocking software installed on your system? Trying to fix CPU ratio to 37 (3.7Ghz), disabled Spread spectrum/Amd cool & quiet in BIOS


B,C in attachment
D http://speccy.piriform.com/results/JrvPxyS0ApWnwlghYNlZ5dC

F I can't, I have an error, and I have no "trace.etl" on desktop
Screenshot_3.png
 

Attachments

Hi doc46,

What are you experiencing which suggests DPC latency problems? Are you getting audio glitches and/or video glitches? Did the problems happen while you were recording the trace? From what I see, the longest DPC sampled duration in the trace is .5 milliseconds which shouldn't be a problem. The longest ISR sampled duration is .08 milliseconds which also shouldn't be a problem.

Are you actually noticing glitches or are you only going by what LatencyMon says?
 
Hi thanks for your answer,

It comes after a certain time, it could be in ableton Live, youtube, soundcloud. Sound can just clip and if I stop it comes back regular, but sometimes sound crackles and stays like that. Every times I stop it comes back regular, but it is very annoying.
 
Thank you for clarifying. I can understand why that would be annoying. Did noticeable glitches happen while you were recording the trace?
 
No, I record the trace without problems, do you want I try to record when sound problem is here ?
 
Yes, I would need a trace that captures events as the problem is actually happening to have any real chance of seeing what's going wrong. Since you're using Windows 10 please try the following instructions to see if you can catch a trace. It will have the trace running in the background and then when the glitches happen you'll have around 30 seconds to go back to the command prompt windows and stop the trace which should write it out to a file.

Open an elevated command prompt (ie - use "Run as administrator" when launching the command prompt window) and run the command:
Code:
wpr -start GeneralProfile -start Network
Leave the command prompt window open so the trace continues to run. When the glitches start, switch back to the command prompt window and run the command:
Code:
wpr -stop d:\general.etl
or replace d: with whatever drive works for your system. That should write the file general.etl to the disk which is what you'd need to make available.
 
  • Is the RAM model F4-3200C16D-16GVGB?
    If yes, that's in the QVL of your MB, but in Bristol ridge and A-series lists.
    It's not present in Pinnacle ridge list (memory by Rx-2x00).
    Compatible g.skill models (i.e., try to change yours with one of these models):
    Read More:
  • Speccy shows your CPU temperature is 111 °C: that's too much.
    On amd.com, they say Max Temps: 85°C.
    You probably must change the CPU cooling solution (if that temperature is true).
 
Last edited:
I don't know if the trace is OK, I'va tried to attach it. But I can't ? Wich file do u want ? I can't attach ""kernel.etl", I have an error in post forum, invalid file ? And "general.etl" is 1.8 Go...
What is "kernel.etl" ? Can I delete "kernel.etl", "general.etl" and "general.etl.NGENPDB" folder ?
 

If the user in that thread is you, then you gave this model (the same I found): F4-3200C16D-16GVGB.
And it is not present in your MB QVL (for pinnacle ridge).

With Core Temp, my CPU temperature is 43°C. I think speccy piriform temp seems to be wrong.
Did you try to open both at the same time to compare their temperature values?

I don't know if the trace is OK, I'va tried to attach it. But I can't ? Wich file do u want ? I can't attach ""kernel.etl", I have an error in post forum, invalid file ? And "general.etl" is 1.8 Go...
What is "kernel.etl" ? Can I delete "kernel.etl", "general.etl" and "general.etl.NGENPDB" folder ?

Zip it up (general.etl and kernel.etl) and upload it to a website (google drive, OneDrive, and so forth), then post its link here.
 
Last edited:
Hi,
I disabled amd cool and quiet, spread spectrum, C-states, 37 ratio, 1.3V Vcore. My CPU frequency is not 3.7Ghz fixed because "Bus speed" is not fixed. It's changing from 99.94 to 100.1 Mhz. I don't understand.

Screenshot_1.pngScreenshot_2.png

I change RAM to 2667 MHz.
I already have clicks on sound sometimes. And when latency is coming in latencyMoon in red I hav a sound like a "bip", and it becomes "normal" affter with
clicks on sound sometimes. I tried all buffer size in ASIO control panel (sample rate 48Hz), buffer size 16,32,64,128,256,1024. Nothing changes.

Here is the "
wpr -start GeneralProfile -start Network" capture : trace.zip - Google Drive

 
In the latest general.etl file it looks like there's a large spike while processing DPCs on core 0. It looks like it was from the storport driver and the function was RaidpAdapterTimerDpcRoutine. Does event viewer show any drive I/O problems?
 
Last edited:
Is the "Focusrite scarlette 2i4 2 Gen" connected to the "AMD Turbo USB 3.1 GEN2" (the ones near the audio ports)?
With a cable like this or this (as examples)? I.e., USB 3.0/3.1 Type A Male to Type B Male Cable.
Is ASMEDIA driver version "1.16.41.3" and is its version date "10/7/2016" (Oct 7 2016)?
 
Last edited:
In the latest general.etl file it looks like there's a large spike while processing DPCs on core 0. It looks like it was from the storport driver and the function was RaidpAdapterTimerDpcRoutine. Does event viewer show any drive I/O problems?

Hi, I'am not sure where to find this, I can see in event viewer this errors
- CLSID
- Volsnap
- Kernel boot
- Kernel power
- same disk ID (I have C:/, A:/, E:/)

Screenshot_3.pngScreenshot_4.pngScreenshot_5.pngScreenshot_6.pngScreenshot_7.png
 
Is the "Focusrite scarlette 2i4 2 Gen" connected to the "AMD Turbo USB 3.1 GEN2" (the ones near the audio ports)?
With a cable like this or this (as examples)? I.e., USB 3.0/3.1 Type A Male to Type B Male Cable.
Is ASMEDIA driver version "1.16.41.3" and is its version date "10/7/2016" (Oct 7 2016)?

Hi, thanks for your help !

I will try to change USB port, actually I don't think the USB cable is 3.0, it's the one in the default bundle. So I think it's USB 2.0.

Screenshot_9.pngScreenshot_10.png

I can try to buy a USB 3.0/3.1 cable to try.

Where can I see "ASMEDIA driver version on W10 ? I don't know this driver ?
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top