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.

Duration3 full days in person · 6 half-days online
Cohortmax 14 in person · 20 online
Pricefrom SAR 9,000 in person · local pricing per city
Delivery35% principles · 20% guided investigation · 45% engineering studio

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

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

  1. Lab: Build a mainline and a PREEMPT_RT kernel from the same config base; diff the preemption-related options and boot both
  2. Lab: Create a priority inversion with three threads and a mutex; watch rt-mutex PI resolve it, then reproduce the unbounded case
  3. Lab: Force-thread an interrupt handler and measure the hard-IRQ window it removes with ftrace
  4. Lab: Trace a latency spike to a non-preemptible section with the preemptoff and irqsoff tracers and name the lock responsible
  5. 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

Upcoming dates

DatesWhereSeatsEarly birdRegular
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 OctKWD 740
15 Nov – 17 Nov 20263 full days MuscatIn person · Knowledge Oasis Muscat 4 of 14 OMR 830until 16 OctOMR 920
15 Nov – 22 Nov 20266 half-days Gulf bandLive online · 09:00–13:00 GMT+3 18 of 20 US$1,580until 16 OctUS$1,750
16 Nov – 18 Nov 20263 full days OttawaIn person · Kanata North Tech Park 9 of 14 CAD 2,930until 17 OctCAD 3,260
23 Nov – 25 Nov 20263 full days TorontoIn person · MaRS Discovery District 4 of 14 CAD 2,930until 24 OctCAD 3,260
23 Nov – 30 Nov 20266 half-days Europe bandLive online · 09:00–13:00 CET 7 of 20 US$1,580until 24 OctUS$1,750
30 Nov – 2 Dec 20263 full days LondonIn person · Shoreditch Works 9 of 14 GBP 1,680until 31 OctGBP 1,870
30 Nov – 7 Dec 20266 half-days Americas bandLive online · 13:00–17:00 ET 12 of 20 US$1,580until 31 OctUS$1,750
7 Dec – 9 Dec 20263 full days BerlinIn person · Factory Görlitzer Park 4 of 14 EUR 1,990until 7 NovEUR 2,210

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.

Course page & booking

Questions about fit or prerequisites? Email hello@kernelsystems.academy. To save this syllabus, print this page to PDF from your browser.