RTL-101 · Real-Time Systems · Advanced
PREEMPT_RT Internals — full syllabus
What the real-time patchset actually changes in the kernel, now that most of it has landed mainline.
Who this course is for
Kernel and platform engineers who need to know what the real-time patchset changes inside the kernel — before they trust a PREEMPT_RT system with a deadline.
Prerequisites
- Solid kernel internals: scheduling classes, locking primitives, interrupt handling
- Ability to read kernel source (guided)
- Experience configuring and building kernels
Course outline
Day 1 — Preemption models and what the patchset does
- The preemption spectrum: PREEMPT_NONE, PREEMPT_VOLUNTARY, PREEMPT, PREEMPT_RT
- What full preemption means at the source level
- What has landed mainline and what the remaining patches still change
- Latency decomposition: where the microseconds actually come from
- Configuring, building and boot-verifying a PREEMPT_RT kernel
Day 2 — Sleeping spinlocks, rt-mutex and threaded IRQs
- spinlock_t becomes a sleeping lock: the substitution mechanism
- raw_spinlock_t for the paths that must stay atomic
- The rt-mutex implementation and the priority inheritance protocol
- Threaded interrupt handlers by default and what hard IRQ context still means
- local_lock and per-CPU critical sections under RT
Day 3 — Inversion, leftovers and verification
- Unbounded priority inversion: how it arises and how PI contains it
- What remains non-preemptible and why: raw spinlocks, driver paths, firmware
- Timers and hrtimers under RT; timer wheel behaviour
- Interaction with SCHED_FIFO, SCHED_RR and SCHED_DEADLINE
- Verifying preemption behaviour with ftrace latency tracers
Hands-on labs
- Lab: Build a mainline and a PREEMPT_RT kernel from the same config base; diff the preemption-related options and boot both
- Lab: Create a priority inversion with three threads and a mutex; watch rt-mutex PI resolve it, then reproduce the unbounded case
- Lab: Force-thread an interrupt handler and measure the hard-IRQ window it removes with ftrace
- Lab: Trace a latency spike to a non-preemptible section with the preemptoff and irqsoff tracers and name the lock responsible
- Lab: Run cyclictest on both kernels under identical load and attribute the difference in maxima to specific kernel paths
Capstone project
Given a stated latency requirement and a deliberately noisy platform, demonstrate that a PREEMPT_RT kernel meets it while an equivalent mainline kernel does not: produce both cyclictest distributions, the ftrace traces identifying the mainline kernel's worst offenders, and a short report naming which patchset mechanisms removed which latency sources — plus an honest list of the latency sources the patchset does not touch.
What you leave with
- A source-level model of what PREEMPT_RT changes and what it leaves alone
- Working knowledge of rt-mutex, priority inheritance and threaded IRQs
- A tracer-driven workflow from latency spike to named non-preemptible path
- A defensible position on when PREEMPT_RT is and is not the answer
Upcoming dates
| Dates | Where | Seats | Early bird | Regular | |
|---|---|---|---|---|---|
| 1 Nov – 3 Nov 20263 full days | RiyadhIn person · KAFD Conference Centre | 4 of 14 | — | SAR 9,000 | |
| 8 Nov – 10 Nov 20263 full days | Kuwait CityIn person · Al Hamra Tower | 9 of 14 | KWD 670until 9 Oct | ||
| 15 Nov – 17 Nov 20263 full days | MuscatIn person · Knowledge Oasis Muscat | 4 of 14 | OMR 830until 16 Oct | ||
| 15 Nov – 22 Nov 20266 half-days | Gulf bandLive online · 09:00–13:00 GMT+3 | 18 of 20 | US$1,580until 16 Oct | ||
| 16 Nov – 18 Nov 20263 full days | OttawaIn person · Kanata North Tech Park | 9 of 14 | CAD 2,930until 17 Oct | ||
| 23 Nov – 25 Nov 20263 full days | TorontoIn person · MaRS Discovery District | 4 of 14 | CAD 2,930until 24 Oct | ||
| 23 Nov – 30 Nov 20266 half-days | Europe bandLive online · 09:00–13:00 CET | 7 of 20 | US$1,580until 24 Oct | ||
| 30 Nov – 2 Dec 20263 full days | LondonIn person · Shoreditch Works | 9 of 14 | GBP 1,680until 31 Oct | ||
| 30 Nov – 7 Dec 20266 half-days | Americas bandLive online · 13:00–17:00 ET | 12 of 20 | US$1,580until 31 Oct | ||
| 7 Dec – 9 Dec 20263 full days | BerlinIn person · Factory Görlitzer Park | 4 of 14 | EUR 1,990until 7 Nov |
Book a seat, or bring this course to your team
Seats can be reserved online; private delivery runs on-site or live online, adapted to your stack.
Questions about fit or prerequisites? Email hello@kernelsystems.academy. To save this syllabus, print this page to PDF from your browser.