[SOLVED] Extremely High Latency

Apr 5, 2022
93
2
35
Got a new laptop recently, it's a Lenovo Ideapad Gaming 3, but i'm getting random freezes and audio is popping
I used latencymon to see what's going on and i'm getting extremely high levels of latency
_
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:11:37 (h🇲🇲ss) on all processors.


_
SYSTEM INFORMATION
_
Computer name: LAPTOP-11QI23AL
OS version: Windows 10, 10.0, version 2009, build: 22000 (x64)
Hardware: 82K2, LENOVO
CPU: AuthenticAMD AMD Ryzen 5 5600H with Radeon Graphics
Logical processors: 12
Processor groups: 1
RAM: 5996 MB total


_
CPU SPEED
_
Reported CPU speed: 3294 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): 420227.60
Average measured interrupt to process latency (µs): 55.763570

Highest measured interrupt to DPC latency (µs): 420223.50
Average measured interrupt to DPC latency (µs): 46.648393


_
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): 33685.626594
Driver with highest ISR routine execution time: HDAudBus.sys - High Definition Audio Bus Driver, Microsoft Corporation

Highest reported total ISR routine time (%): 0.008110
Driver with highest ISR total time: Wdf01000.sys - Motor en tiempo de ejecución del marco de controlador en modo kernel, Microsoft Corporation

Total time spent in ISRs (%) 0.013960

ISR count (execution time <250 µs): 91359
ISR count (execution time 250-500 µs): 0
ISR count (execution time 500-1000 µs): 0
ISR count (execution time 1000-2000 µs): 2
ISR count (execution time 2000-4000 µs): 13
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): 95914.540073
Driver with highest DPC routine execution time: dxgkrnl.sys - DirectX Graphics Kernel, Microsoft Corporation

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

Total time spent in DPCs (%) 0.214949

DPC count (execution time <250 µs): 1135439
DPC count (execution time 250-500 µs): 0
DPC count (execution time 500-10000 µs): 260
DPC count (execution time 1000-2000 µs): 45
DPC count (execution time 2000-4000 µs): 324
DPC count (execution time >=4000 µs): 1170


_
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 45023
Hard pagefault count of hardest hit process: 14298
Number of processes hit: 134


_
PER CPU DATA
_
CPU 0 Interrupt cycle time (s): 77.506743
CPU 0 ISR highest execution time (µs): 33685.626594
CPU 0 ISR total execution time (s): 1.135296
CPU 0 ISR count: 83927
CPU 0 DPC highest execution time (µs): 95914.540073
CPU 0 DPC total execution time (s): 15.447351
CPU 0 DPC count: 914610
_
CPU 1 Interrupt cycle time (s): 61.011657
CPU 1 ISR highest execution time (µs): 8025.762295
CPU 1 ISR total execution time (s): 0.023164
CPU 1 ISR count: 870
CPU 1 DPC highest execution time (µs): 16090.355191
CPU 1 DPC total execution time (s): 0.143824
CPU 1 DPC count: 13718
_
CPU 2 Interrupt cycle time (s): 58.754196
CPU 2 ISR highest execution time (µs): 24.514572
CPU 2 ISR total execution time (s): 0.001006
CPU 2 ISR count: 158
CPU 2 DPC highest execution time (µs): 20582.432605
CPU 2 DPC total execution time (s): 0.369622
CPU 2 DPC count: 38870
_
CPU 3 Interrupt cycle time (s): 60.214632
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): 42333.820583
CPU 3 DPC total execution time (s): 0.292201
CPU 3 DPC count: 12306
_
CPU 4 Interrupt cycle time (s): 49.135768
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): 70948.587432
CPU 4 DPC total execution time (s): 0.150377
CPU 4 DPC count: 18019
_
CPU 5 Interrupt cycle time (s): 51.584330
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): 8342.337887
CPU 5 DPC total execution time (s): 0.065866
CPU 5 DPC count: 5317
_
CPU 6 Interrupt cycle time (s): 51.590302
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): 49920.765027
CPU 6 DPC total execution time (s): 0.213715
CPU 6 DPC count: 15064
_
CPU 7 Interrupt cycle time (s): 52.001259
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): 15918.843352
CPU 7 DPC total execution time (s): 0.050138
CPU 7 DPC count: 6869
_
CPU 8 Interrupt cycle time (s): 53.596208
CPU 8 ISR highest execution time (µs): 5504.698543
CPU 8 ISR total execution time (s): 0.008236
CPU 8 ISR count: 5343
CPU 8 DPC highest execution time (µs): 73796.795993
CPU 8 DPC total execution time (s): 0.955972
CPU 8 DPC count: 63124
_
CPU 9 Interrupt cycle time (s): 43.554839
CPU 9 ISR highest execution time (µs): 4.578324
CPU 9 ISR total execution time (s): 0.000197
CPU 9 ISR count: 226
CPU 9 DPC highest execution time (µs): 8639.247723
CPU 9 DPC total execution time (s): 0.045582
CPU 9 DPC count: 6865
_
CPU 10 Interrupt cycle time (s): 39.447225
CPU 10 ISR highest execution time (µs): 5.419854
CPU 10 ISR total execution time (s): 0.000308
CPU 10 ISR count: 358
CPU 10 DPC highest execution time (µs): 46421.612933
CPU 10 DPC total execution time (s): 0.187660
CPU 10 DPC count: 17964
_
CPU 11 Interrupt cycle time (s): 38.157267
CPU 11 ISR highest execution time (µs): 6.321494
CPU 11 ISR total execution time (s): 0.000443
CPU 11 ISR count: 556
CPU 11 DPC highest execution time (µs): 1857.867942
CPU 11 DPC total execution time (s): 0.071727
CPU 11 DPC count: 24512
_
 
Solution

I did the Nvidia thing, not that mine was bad before, but it could have helped
7fdsWPf.jpg

what he calls good is higher than mine.

if you do anything in registry, backup first - https://neosmart.net/wiki/backup-restore-registry/

Colif

Win 11 Master
Moderator
my experience with stutter is it only happens sometimes, if yours is more constant it could be something else.

I don't like how they renamed the driver packages so I can't tell what you actually have
Highest ISR routine execution time (µs): 33685.626594
Driver with highest ISR routine execution time: HDAudBus.sys - High Definition Audio Bus Driver, Microsoft Corporation

that could be AMD or Realtek.

your DPC being DirectX could be audio or GPU
Page file usage - MSMPENG is Windows Defender so could be lan, or could be defender just runs a lot.


Can you download and run Driverview - http://www.nirsoft.net/utils/driverview.html

All it does is looks at drivers installed; it won't install any (this is intentional as 3rd party driver updaters often get it wrong)

When you run it, go into view tab and set it to hide all Microsoft drivers, will make list shorter.

take a screenshot from (and including)Driver name to (and including)Creation date.

upload it to an image sharing website and show link here
 

Colif

Win 11 Master
Moderator
i should have shown a link for images, and that site wouldn't have worked with instructions anyway

well, your sound drivers are newer that what I have.
it is realtek
all of it. Ethernet and WIFI are realtek too..
do you use wifi or Ethernet cable?
WIFI dated 6th Sept 2021
ethernet 16th Nov 2021

ethernet drivers
download Win11 Auto Installation Program (NetAdapterCx) from under windows header here - https://www.realtek.com/en/componen...0-1000m-gigabit-ethernet-pci-express-software

WIFI might take me a while. Different chips have different drivers

shame its not a thinkpad - https://support.lenovo.com/au/en/do...for-windows-10-version-1809-or-later-thinkpad (don't use these, its right chip. wrong device, so close and yet...)

seems wifi can cause the stutter - link

you may have to wait for lenovo to update the driver for your laptop
 

Colif

Win 11 Master
Moderator
seems, you have newest drivers according to site, your realtek driver package dated 17th Jan 2022.
the package is new but some of the drivers in it aren't - this is normal. I just can't tell looking at drivers.
https://pcsupport.lenovo.com/au/en/...for-windows-10-64-bit-ideapad-gaming-3-15ach6

So that doesn't help.

so its almost constant?
I wonder if it happens in safe mode
  1. go to settings/recovery
  2. next to advanced startup, click restart now button
  3. this restarts PC in a blue menu
  4. choose troubleshoot
  5. choose advanced
  6. choose startup options
  7. click the restart button
  8. choose a safe mode (it doesn't matter which) by using number associated with it.
  9. Pc will restart and load safe mode
can't play games but this will at least tell me if its a driver to blame.
 
Apr 5, 2022
93
2
35
Let me try that, I wouldn't say the problem is constant because yesterday it was working fine, it happens randomly, there's no way for me to tell specifically how often it happens, but today I have restarted the computer at least 10 times and it persists. I'll try booting on safe mode
 

Colif

Win 11 Master
Moderator
so how do i figure out which driver is cause...

when you run latencymon, once it gets a result. stop it and look on the drivers and processes tab and screenshot those, just curious what your most used are. I know what report shows. I often see DirectX as top

d9sbutq.jpg

i don't run it often now I am waiting for bios update. thats an old report above. My highest is part of windows which always helps.

wonder what chipset it has
 
Apr 5, 2022
93
2
35
So i should run latencymon again? How much time? I instantly get a conclusion when running it

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.
 

Colif

Win 11 Master
Moderator
latencymon self reporting there. its top of list.
ignoring it
ntoskrnl is 2nd but well, its the windows kernel so its got an excuse'
wdf1001.sys is windows driver framework driver - its the one that sits on top on my PC if I get a warning.
ndis.sys - network driver Interface Specification - talks to WIFI/Ethernet drivers
storport.sys - storage port - storage drives
dxgkrnl - direct X
tcpip.sys - transmission control protocol/internet protocol - used for internet (its in the name)
ndu.sys - network driver data usage
afd.sys - ancillary function driver for winsock - windows driver used for lan

everything below there is on 1.0 or lower execution

enough of them are network related to make me think it could be WIFI.