To solve this issue on my PC I had to separate out the audiosrv tasks from the CPU 0 and 1 processors (I recall I put it on processors 6 amd 7 but you can pick processors that are not used). The windows OS defaults a number of these critical realtime tasks to CPUs 0 and 1 .... so you NEED TO CHANGE THAT for all tasks that you need to run in realtime and not have them interrupted by whatever is running on CPU 0 and 1.
High Latency on Wdf01000.sys driver causing Real Time Audio Playback issues
Hi
I have ran Latency Mon as I am getting issues when using using my Traktor Kontrol s3 DJ controller causing real time audio play back issues and the above driver is reporting Highest execution of over 5.83 which appears to be causing the audio issues - have you any advice on what I can do to improve this?
Windows/drivers/BIOS are all up to date
Info below
SYSTEM INFORMATION
_________________________________________________________________________________________________________
Computer name: LAPTOP-RP5HJ9VC
OS version: Windows 11, 10.0, version 2009, build: 22621 (x64)
Hardware: 81NC, LENOVO
BIOS: AMCN25WW(V1.08)
CPU: AuthenticAMD AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
Logical processors: 8
Processor groups: 1
Processor group size: 8
RAM: 6082 MB total
CPU SPEED
_________________________________________________________________________________________________________
Reported CPU speed (WMI): 230 MHz
Reported CPU speed (registry): 2296 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.
Windows 11 Version 22H2 (OS Build 22621.963)
I am not aware of any changes prior to my my issue
_________________________________________________________________________________________________________
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:09:40 (h:mm:ss) on all processors.
_________________________________________________________________________________________________________
SYSTEM INFORMATION
_________________________________________________________________________________________________________
Computer name: LAPTOP-RP5HJ9VC
OS version: Windows 11, 10.0, version 2009, build: 22621 (x64)
Hardware: 81NC, LENOVO
BIOS: AMCN25WW(V1.08)
CPU: AuthenticAMD AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
Logical processors: 8
Processor groups: 1
Processor group size: 8
RAM: 6082 MB total
_________________________________________________________________________________________________________
CPU SPEED
_________________________________________________________________________________________________________
Reported CPU speed (WMI): 230 MHz
Reported CPU speed (registry): 2296 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): 418.20
Average measured interrupt to process latency (µs): 18.544421
Highest measured interrupt to DPC latency (µs): 399.30
Average measured interrupt to DPC latency (µs): 5.148406
_________________________________________________________________________________________________________
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): 72.415941
Driver with highest ISR routine execution time: Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation
Highest reported total ISR routine time (%): 0.008239
Driver with highest ISR total time: Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation
Total time spent in ISRs (%) 0.008239
ISR count (execution time <250 µs): 68316
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): 5830.930749
Driver with highest DPC routine execution time: Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation
Highest reported total DPC routine time (%): 0.116586
Driver with highest DPC total execution time: Wdf01000.sys - Kernel Mode Driver Framework Runtime, Microsoft Corporation
Total time spent in DPCs (%) 0.246767
DPC count (execution time <250 µs): 537267
DPC count (execution time 250-500 µs): 0
DPC count (execution time 500-10000 µs): 210
DPC count (execution time 1000-2000 µs): 1
DPC count (execution time 2000-4000 µs): 1
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: msmpeng.exe
Total number of hard pagefaults 49848
Hard pagefault count of hardest hit process: 23033
Number of processes hit: 76
_________________________________________________________________________________________________________
PER CPU DATA
_________________________________________________________________________________________________________
CPU 0 Interrupt cycle time (s): 29.199812
CPU 0 ISR highest execution time (µs): 72.415941
CPU 0 ISR total execution time (s): 0.382205
CPU 0 ISR count: 68295
CPU 0 DPC highest execution time (µs): 5830.930749
CPU 0 DPC total execution time (s): 9.460795
CPU 0 DPC count: 353658
_________________________________________________________________________________________________________
CPU 1 Interrupt cycle time (s): 3.327245
CPU 1 ISR highest execution time (µs): 12.952526
CPU 1 ISR total execution time (s): 0.000158
CPU 1 ISR count: 21
CPU 1 DPC highest execution time (µs): 199.577091
CPU 1 DPC total execution time (s): 0.131493
CPU 1 DPC count: 16616
_________________________________________________________________________________________________________
CPU 2 Interrupt cycle time (s): 5.915394
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): 653.486498
CPU 2 DPC total execution time (s): 0.450144
CPU 2 DPC count: 39039
_________________________________________________________________________________________________________
CPU 3 Interrupt cycle time (s): 3.192211
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): 76.172474
CPU 3 DPC total execution time (s): 0.154109
CPU 3 DPC count: 17995
_________________________________________________________________________________________________________
CPU 4 Interrupt cycle time (s): 5.699611
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): 223.598868
CPU 4 DPC total execution time (s): 0.369758
CPU 4 DPC count: 30900
_________________________________________________________________________________________________________
CPU 5 Interrupt cycle time (s): 4.162972
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): 127.471690
CPU 5 DPC total execution time (s): 0.233076
CPU 5 DPC count: 26874
_________________________________________________________________________________________________________
CPU 6 Interrupt cycle time (s): 4.355492
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): 195.680314
CPU 6 DPC total execution time (s): 0.374942
CPU 6 DPC count: 31047
_________________________________________________________________________________________________________
CPU 7 Interrupt cycle time (s): 3.526148
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): 570.812718
CPU 7 DPC total execution time (s): 0.277543
CPU 7 DPC count: 21351
_________________________________________________________________________________________________________
Windows for home | Windows 11 | 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.
73 answers
Sort by: Oldest
-
Anonymous
2024-08-25T18:48:08+00:00 -
Anonymous
2024-08-26T17:43:21+00:00 - 1. Desactive la configuración de suspensión selectiva de USB en su plan de energía, esto ayuda especialmente con la latencia de storport.sys, así como con otros de la lista anterior.
-2. *IMPORTANTE* Descargue PowerSettingsExplorer desde aquí y ejecútelo como administrador. Luego busque las siguientes 2 opciones: Umbral de degradación de inactividad del procesador y Umbral de promoción de inactividad del procesador, **DESMARQUE ambas, luego vaya a la configuración de su plan de energía, busque la nueva opción en "Administración de energía del procesador" y configure ambas al 100%. . Eso ayuda a reducir casi todas las latencias. Si está satisfecho, puede detenerse aquí; si desea intentar reducirlas aún más, continúe.
-3. (Para NVIDIA, lea a continuación) Use DDU y luego NVCleanstall para instalar sus controladores, esto ayuda a reducir la latencia de nvlddmkm.sys ya que no hay telemetría ni otras basura ejecutándose en segundo plano. Además, seleccione "Preferir rendimiento máximo" en su configuración 3D. (Para AMD, lea a continuación) Utilice DDU y descargue el paquete de controladores más reciente, extráigalo y cancele la instalación una vez finalizada. Después de eso, vaya al administrador de dispositivos, busque su adaptador de pantalla, haga clic en actualizar controlador, seleccione "examinar mi computadora" y seleccione el directorio donde se extrajeron los controladores AMD e instálelos, nuevamente, sin problemas. Esto me ayudó a reducir la latencia de wdf01000.sys. Puede intentar usar MorePowerTool (AMD) de IgorsLab bajo su propio riesgo y con su propia investigación. Además, desactive el modo de ahorro de energía ultrabajo (ULPS) a través de MSI Afterburner, que se encuentra en la configuración.
-4. Descargue MSI Utility v3 desde aquí y ejecútelo como administrador, configure su GPU en modo MSI (es posible que ya esté activado de forma predeterminada) y establezca la prioridad en Alta, luego reinicie y pruebe. Al menos debería ayudar con la tartamudez en juegos específicos, si no con la latencia, aunque ayudó a reducir la mía ligeramente.
-5. Desinstale Windows Update Health Tools. Esto reduce la latencia por alguna razón desconocida; sin embargo, tenga en cuenta que se usa para determinar si su PC es capaz de ejecutar Windows 11 y no podrá actualizar si elimina él.
-6. Probablemente hayas escuchado esto muchas veces, pero por si acaso, descarga los controladores de tu chipset directamente del fabricante de tu placa base. Sin embargo, Windows generalmente instala todo automáticamente para que todo siga funcionando, por lo que es posible que ni siquiera sea necesario si los problemas de latencia se solucionan en este momento.
-
Anonymous
2024-08-27T14:09:16+00:00 I do this in mart/april this year. It not do the essential improvement. It will be less delay, of course. Thanks. I know this moment.
My purpose - obtain it is sufficiently silent working the computer at runthrough of the audio files and under their correction from vinyl plate since headphones beside me although and perfect (Shanheizer) 0.05% 10 Hz - 25kHz, but opened.
The System to ventilations beside me it is sufficiently production that for case that for processor (disseminate 210 Watt, silent fun), all fans - silent (Be Quiet all). I use exponential increase a turn when increase the temperature since threshold in at 50-70 degrees Celsius in BIOS in 4 points of motherboard. The case is quite well blown out. Parking disk - is silenced with program, to auidio files I use SSD.
Thanks.
-
Anonymous
2024-08-27T14:41:41+00:00 Could it be possible to show us how to do this?
Thanks!!!
-
Anonymous
2024-08-27T16:43:57+00:00 I imagine he is referring to the Microsoft Interrupt Affinity Tool which allows you to change the CPU affinity of the interrupts for a given device. For example, you can assign the most problematic drivers (HDAudBus.sys, Wdf01000.sys & nvlddmkm.sys, in my case) to the least used cores. btw - I played with this tool for a bit, made a real mess of things. Might not want to change the affinity on more than two devices at a time.
You will need LatencyMon from Resplendence Software.
Here are three YouTube videos you can watch.
HOW TO - Interrupt Affinity Policy Tool
Using Interrupt Affinity Policy Tool FOR LOWEST LATENCY
Lower LATENCY and INPUT LAG using Interrupt Affinity Policy
p.s. this is just a band aid, if what jogladik says above about the system timer is true, then I think he's found the culprit.