System Response Time Measurement
System Timer Response Latency is measured as the total time from when a Subsystem timer interrupt sends a signal to when that signal is recognized by software running in an Interrupt Service Thread (IST). As shown in the diagram below, Latency is made up of Hardware latency, the time it takes for a signal to be recognized by an Interrupt Service Routine (ISR), and Software latency, the time it takes from ISR to the routine running in IST.
The RTX64 Runtime provides a utility called System Response Time Measurement (SRTM), a real-time API timer latency measurement tool that measures timer latency observed by the application. Each of the two supplied versions of SRTM, Windows and RTSS, measures its own environment. An SRTM histogram often shows a characteristic double peak profile: the first peak is a near-best case; the second is the dirty-cache case. The diagram occasionally shows additional smaller spikes from processor-level interrupt masking. With the introduction of RTSS timer tick compensation in RTX64 4.1, the diagram may show a longer tail and larger maximum latency on systems with bus contentions between Windows cores and RTSS cores.
By default, this tool generates a 15-second tone and prints a histogram of timer response latencies. You can run SRTM in the RTSS environment to measure RTSS latencies.
To measure timer latency, type the following into a command prompt:
RTSSrun "c:\program files\IntervalZero\RTX64\bin\srtm.rtss" [-h][-s][-1][f] seconds_to_sample