[SOLVED] Extremely High Latency

Page 3 - Seeking answers? Join the Tom's Hardware community: where nearly two million members share solutions and discuss the latest tech.
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
do you turn it off at night or leave it in sleep?

ssd are pretty fast, I wouldn't expect you have to stay there that long. its only new so it shouldn't be that full yet.

Since its fine in safe mode but not in normal, the probable only cause is drivers. Just in case its something else:

Try a clean boot and see if it changes anything - make sure to read instructions and make sure NOT to disable any microsoft services or windows won't load right - https://support.microsoft.com/en-au/help/929135/how-to-perform-a-clean-boot-in-windows

all it does is stops programs running with windows, its easily reversed. Doesn't remove anything

if clean boot fixes it, it shows its likely a startup program. You should, over a number of startups. restart the programs you stopped to isolate the one that is to blame.


try the disable net thing and see if that helps. Need to try to isolate cause.

screenshot of driver tab at idle with no latency would be useful to just compare. see what changes. apart from totals of course. Need a base line to see what normal should be.
 
  • Like
Reactions: rauvel
Apr 5, 2022
93
2
35
do you turn it off at night or leave it in sleep?

ssd are pretty fast, I wouldn't expect you have to stay there that long. its only new so it shouldn't be that full yet.

Since its fine in safe mode but not in normal, the probable only cause is drivers. Just in case its something else:

Try a clean boot and see if it changes anything - make sure to read instructions and make sure NOT to disable any microsoft services or windows won't load right - https://support.microsoft.com/en-au/help/929135/how-to-perform-a-clean-boot-in-windows

all it does is stops programs running with windows, its easily reversed. Doesn't remove anything

if clean boot fixes it, it shows its likely a startup program. You should, over a number of startups. restart the programs you stopped to isolate the one that is to blame.


try the disable net thing and see if that helps. Need to try to isolate cause.

screenshot of driver tab at idle with no latency would be useful to just compare. see what changes. apart from totals of course. Need a base line to see what normal should be.
I usually turn it off but yesterday I decided to leave it on sleep since I need to use it.

I'll try what you said whenever this thing starts freezing again, there's no way to know when it will happen

I was thinking and as I told you, when in safe mode the audio was still popping, I guess it's because the driver was still loaded
 

Colif

Win 11 Master
Moderator
i believe it makes a ram drive and runs from it, just like windows installer does. Difference is you not installing, you running a linux desktop off the USB/ram drive.
I haven't done it myself. (I should one day but I installed Ubuntu on win 11 in its linux work space and never loaded it again. Not sure I want to learn everything again)
 
Apr 5, 2022
93
2
35
Ok, I think I will wait until friday to do it because I need my computer working fine this week, the next one I have vacations so no worries about it. I'll just leave it on sleep these days. I'll try to boot Ubuntu, hopefully the speakers work fine there, when I do it I'll let you know
 

Colif

Win 11 Master
Moderator
OS version: Windows 10, 10.0, version 2009, build: 22000 (x64)
funny how it thinks build 22000 is windows 10.
version should be 21H2, not 2009. 2009 was the year before (before they went to the current numbering system of Year/half of year, so 21H2 is 2021 2nd half, they used numbers... so 2009 was released in 2020 and in November... although it should have been September but their release dates were starting to not match month they were meant for, so they swapped to current system. And then broke it again with Windows 11 as it only gets 1 Version update this year.

But that is not really important :)

looking for popping noises in safe mode leads me back to the BIOS update in May. I did a search.
 
  • Like
Reactions: rauvel

Colif

Win 11 Master
Moderator
So its windows... Not sure what to suggest... I would add an extra post onto your Lenovo thread and mention how it is in Linux. Its clearly windows itself.

I wonder if a clean install of 11 would fix it. I would think if you have this on laptop, others with same laptop would too... so might be a bad install.

I wonder what John would suggest.

latency being audio is nothing new. I wonder why it pops in safe mode, i wonder what drivers it uses in safe mode... i can't find an answer to that on Google. no 3rd party drivers run there but well, what counts as 3rd party? Microsoft rename drivers as their own... does that count?

have you tried running the Playing audio troubleshooter?
Go to settings/system/troubleshoot
choose Other troubleshooters
it should be in top area - Playing audio
might try the recording audio one too.
 
Last edited:
Apr 5, 2022
93
2
35
So its windows... Not sure what to suggest... I would add an extra post onto your Lenovo thread and mention how it is in Linux. Its clearly windows itself.

I wonder if a clean install of 11 would fix it. I would think if you have this on laptop, others with same laptop would too... so might be a bad install.
I already tried that before, I guess that a clean install is the one you do from the restore this device option, right? Or I have to use the usb? I'll check the post on Lenovo Forums
 
Apr 5, 2022
93
2
35
So its windows... Not sure what to suggest... I would add an extra post onto your Lenovo thread and mention how it is in Linux. Its clearly windows itself.

I wonder if a clean install of 11 would fix it. I would think if you have this on laptop, others with same laptop would too... so might be a bad install.

I wonder what John would suggest.

latency being audio is nothing new. I wonder why it pops in safe mode, i wonder what drivers it uses in safe mode... i can't find an answer to that on Google. no 3rd party drivers run there but well, what counts as 3rd party? Microsoft rename drivers as their own... does that count?

have you tried running the Playing audio troubleshooter?
Go to settings/system/troubleshoot
choose Other troubleshooters
it should be in top area - Playing audio
might try the recording audio one too.
I tried running the troubleshooter before and it says that no problem was found
 

Colif

Win 11 Master
Moderator
You reply too fast :)

Clean install is off the USB, wipe everything, start again. Force windows to get new drivers.
You would follow this guide: https://forums.tomshardware.com/faq/how-to-do-a-clean-installation-of-windows-10.3170366/
except its for 10, the process hasn't changed that much...

BUT don't install yet. I am unsure if it will help. Sort of, won't know unless you try it situation, I don't want to waste time and lose info :)

I saw they didn't reply but well, the more info you give them, the more they have to work with. And as I said, if others have same problem, you might give them enough to figure it out.
 
Apr 5, 2022
93
2
35
You reply too fast :)

Clean install is off the USB, wipe everything, start again. Force windows to get new drivers.
You would follow this guide: https://forums.tomshardware.com/faq/how-to-do-a-clean-installation-of-windows-10.3170366/
except its for 10, the process hasn't changed that much...

BUT don't install yet. I am unsure if it will help. Sort of, won't know unless you try it situation, I don't want to waste time and lose info :)

I saw they didn't reply but well, the more info you give them, the more they have to work with. And as I said, if others have same problem, you might give them enough to figure it out.
Sorry, I get the notifications and I feel the need to answer haha

Hmmm, I haven't performed a clean install then, I did it from the recovery menu. I will wait until next week to see if I get an answer on the lenovo website, aaand don't worry, I will not lose my data, I have an old hard drive where I can backup my things. It takes some time to reinstall the programs but anything is worth it to make this thing work.

Hopefully a lenovo mod answers :)
 

Colif

Win 11 Master
Moderator
Just thought of something, linux doesn't stress hardware out as much as windows does. So a lot of hardware works fine on it that doesn't like windows. So yes, cause is windows but it might be hardware as well. I know that is case with some hardware but not sure about sound.
 
Apr 5, 2022
93
2
35
Just thought of something, linux doesn't stress hardware out as much as windows does. So a lot of hardware works fine on it that doesn't like windows. So yes, cause is windows but it might be hardware as well. I know that is case with some hardware but not sure about sound.
I played music for like 30 minutes to see if it was fine, and it was. What do you mean by hardware stress?