Papers from the Real Time Linux Workshop | Linux Today

Papers from the Real Time Linux Workshop

Written By
Web Webster
Web Webster
Oct 23, 2009

“Finding origins of latencies using Ftrace

“Ftrace developer Steven Rostedt describes how to use ftrace to
find unexpected and/or unacceptable latencies, which may be a
barrier to realtime processing, in his paper [PDF]. Ftrace is a
relatively new tool in the kernel that provides various kinds of
tracing information and has some facilities that can be used
specifically for tracking down latency issues. Tracers like
irqsoff, preemptoff, and wakeup (along with some variants) capture
information while the kernel is running in specific modes (i.e.
with interrupts disabled, preemption turned off, etc.).

“Rostedt’s paper gives a fairly detailed look at the tracers,
how to enable them, what they do, and the output they produce.
While these latency tracers are active, they capture things like
kernel functions called or trace event points encountered while
looking for the maximum time spent in the latency-causing modes. By
looking at what the kernel is doing when the latency has exceeded
expectations, it can lead a developer to the specific
cause—which may lead to a way to reduce the latency. Rostedt
mentions the JACK “audio connection kit” developers as an early
adopter of latency tracing, noting that they found both kernel and
JACK bugs that were causing excess latency.”

Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.