You are here: Home / OSADL / News / 
2019-06-18 - 17:05
2007-05-30 12:00 Age: 12 Years

Do you know what a latency fighter is?

By: Carsten Emde

Latencies? No, thanks.

Found latency in /proc/latency_trace - marked '!'

Get it

Need a Linux real-time system? No problem. Download the Linux kernel from www.kernel.org, apply the RT-Preempt patches, configure Preemption Mode as Complete Preemption (Real-Time) in the Processor type and features menu and compile your new real-time kernel - that's it. If everything works as expected, you are in business.

Test it

What, however, if the systems does not work as expected and you suspect that the system is not as real-time as it should? Then, the famous latency fighting begins.

Fight it

Fortunately, the RT-Preempt patches already contain a number of trace and debug tools that can be enabled in the Kernel hacking configuration menu. (Remember, however, to disable them when the problem has been solved, since these tools may increase runtime overhead and latencies.) A typical latency fighter would enable Kernel debugging, Debug preemptible kernel, Wakeup latency timing, Latency tracing and Wakeup latency histogram. Latency tracing is then enabled by default, and the current scheduling latency can be inspected via the /proc file system. The procedure is explained in more detail in the updated version of our related HOWTO.

In general, the output of the latency trace contains the information required to remove the source of the increased latency (kernel misconfiguration, driver problem etc.). Sometimes, however, the trace output is not obvious. OSADL has therefore established a special service: Simply send the output of the latency trace along with the kernel configuration and the output of the lspci command to latency-fightersªosadl.org. We are sure you understand that OSADL members will be served first, but we promise to do our best to help everybody to fight against latencies.