LatencyMon v.2.03 Build 203.

Advertisement
Advertisement

The LatencyMon application was developed to be a small tool that lets you find the root cause of audio dropouts, clicks and pops. LatencyMon checks if a system is suitable for processing real time audio by measuring DPC and ISR excecution times as well as hard pagefaults.

It will provide a comprehensible report and find the kernel modules and processes responsible for causing audio latencies which result in drop outs. It also provides the functionality of an ISR monitor, DPC monitor and a hard pagefault monitor.

LatencyMon will display the execution time of each ISR, DPC routine and hard pagefault and will resolve them to the drivers and processes responsible for executing them. It will create a comprehensible report but it will also represent all sampled data in a detailed manner allowing you to perform in-depth analysis.

The audio latency problemWindows is not a real time operating system. All requests to the operating system are delivered on a best effort basis. There are no guarantees whatsoever that requests are delivered within a certain time frame, which are the characteristics of a real-time operating system.

That is not a problem for most devices and tasks but this is bad news for audio applications (which are considered soft real-time) because they need to deliver data to the subsystem and the hardware in buffers several times per second. If one or more buffers miss their deadlines and are not delivered in time it has audible consequences which are recognized as dropouts, clicks and pops.

About DPCs and ISRsThe Windows thread disptacher (also known as scheduler) which is part of the kernel executes threads based on a priority scheme. Threads with higher priority will be given a longer execution time (also known as quantum or time slice) than threads with a lower priority.

However the kernel also knows other types of units of execution known as interrupts. Devices connected to the system may interrupt on a connected CPU and cause their interrupt service routines to execute. An interrupt can occur on the same processor that an audio program is running on. Any thread that was running on the processor on which an interrupt occured will be temporarily halted regardless of its priority.

The interrupt service routine (ISR) is executed and may schedule a DPC (Deferred Procedure Call) to offload an amount of work. The DPC will most likely run immediately on the same processor which means the audio application will halt until both the ISR and the DPC routines have finished execution. That is because ISRs and DPCs run at elevated IRQL which means they cannot become preempted by the thread dispatcher (scheduler).

Therefore to guarantee responsiveness of the system, ISR and DPC routines should execute as fast as possible. Guidelines say that they should not spend more than 100 µs of execution time however this is often not reached due to hardware factors beyond the control of the driver developer. If execution time gets too high, the audio program may be unable to deliver audio buffers to the hardware in a timely manner. About hard pagefaultsWindows uses a concept of virtual memory which relies on the page translation system provided by the CPU.

Whenever a memory address is requested which is not available in phyical memory (not resident), an INT 14 will occur. The OS provided INT 14 handler will decide how to proceed next. If the page in which the address resides is known to Windows but not resident, Windows will read in the required page from the page file.

That is known as a hard pagefault and can take a lot of time to complete. If the page can be read in from the hard disk cache, the price will be limited. However if it needs to physically read in the data from its sectors this takes a lot of time. If a hard pagefault is hit by a program producing real time audio such as a software synthesizer this will almost certainly have audible consequences recognized as dropouts, clicks or pops. In the worst case, the hard disk was suspended due to power management features and interruption of the audio stream can last even tens of seconds.

Hard pagefaults are a very common but often overlooked cause of audio dropouts, clicks and pops. They especially occur often with audio software that uses a lot of memory such as samplers. Solutions for avoiding hard pagefaults are increasing the working set of the audio application, increasing the amount of RAM or disabling the pagefile altogether.

Note that if you disable the pagefile, the system may run 'out of memory' because it does not have the pagefile available to swap memory to. Also the system will no longer create crash dump files in case of a system crash.
for WindowsVista, 2008, Vista64, 7, 7x64

The LatencyMon application was developed to be ...

audio dropout, dpc measurement, isr excecution time, dpc, measurement, measure

 
  • LatencyMon
  • 2.03 Build 203.
  • 07 Aug 12
  • Resplendence
  • WindowsVista, 2008, Vista64, 7, 7x64
  • Freeware
  • 162
  • Free
 
 

Review LatencyMon

  • captcha
 

Other software of Resplendence
  • SanityCheck  v.2.02.20230504SanityCheck is an advanced rootkit and malware detection tool for Windows which thoroughly scans the system for threats and irregularities which indicate malware or rootkit behavior. By making use of special deep inventory techniques, this program ...
  • Undeluxe  v.1.03Undeluxe is an advanced file protection and recovery utility for Windows.

New Miscellaneous software
  • Planetary Aspects and Transits  v.21.46Displays aspects between planets at a given date, personal transits and synastry. It has graphical and dynamical displays as well as tabular. It identifies aspect patterns and enables searches for them, and graphs planets transiting natal planets.
  • Heliocentric Planetary Aspects  v.23.37Displays heliocentric aspects between planets at a given date, personal transits and synastry. It has graphical and dynamical displays as well as tabular. It identifies aspect patterns and enables searches for them.
  • Toolbox  v.3.2The ultimate companion for the busy teacher.
  • Quizmaster  v.1.4Five fun learning quiz games plus multiple-choice test software ...
  • Ad-Aware Definitions File  v.149.616 / 150.3The definitions have two versions because the versioning differs for Ad-Aware 8.2 (the first version) and Ad-Aware 9.x / 8.3 (the second version). Ad-Aware is the latest version of Lavasoft's industry leading anti-spyware solution. Ad-Aware helps ...
  • FreePCB2CAD  v.2.01.24This application was developed to be a small utility for converting FreePCB .fpc files to GenCad format, which is supported by various PCB layout programs and other tools for interchange of PCB data. This program can also be run from the command ...