Using KSRTM

Kernel System Response Time Measurement (KSRTM) is a Windows driver and utility that measures HAL-level timer latencies on the RTSS cores and provides reports and histograms of the results.

To measure HAL-level timer latency, run the command prompt as Administrator and type the following:

"C:\Program Files\IntervalZero\MaxRT\wRTOS\bin\ksrtm.exe" [/r|/k|/m][/h][/n][/d][/l][/u minutes] seconds_to_sample

IMPORTANT: Do not attempt to stop the wRTOS subsystem while KSRTM is running. The subsystem may become unstable and crash.

Parameters

/r

Real-time HAL extension timer (default). Exercises the KSRTM test using the wRTOS hardware abstraction layer timer.

/k

Kernel (DPC-level) timer. Exercises the KSRTM test using the Windows kernel timer.

/m

Multimedia (user-level) timer. Exercises the KSRTM test using the multimedia timer.

/h

Displays a histogram of latencies (in addition to the summary).

/n

Do not use real-time process and thread priorities. Avoids setting the highest real-time priority (relevant only for the multimedia user level timer).

/d

Display loaded driver information. Causes the program to display information about currently loaded drivers, such as the name, start address, and end address.

/l

Longest latency event information. Only supported for the wRTOS HAL timer test [/r].

/u minutes

Minutes between display updates. For tests that are set to last longer than a minute (seconds_to_sample>60), this option forces the program to display the current data after the specified number of minutes.

seconds_to_sample

Duration in seconds to sample timer response latencies.

Related topics: