KRN-201 · Linux Kernel Core · Practitioner
Process Lifecycle & Scheduling — full syllabus
How processes are created, scheduled and destroyed, and how scheduling decisions show up as latency in your application.
Who this course is for
Developers and performance engineers whose applications live or die by scheduling behaviour — and who want to reason from task_struct and scheduler traces rather than folklore.
Prerequisites
- Solid C
- Userspace systems programming (fork, exec, wait)
- KRN-101-level source navigation
Course outline
Day 1 — The task as a data structure
- task_struct and thread_info: what the kernel keeps per task
- The process family tree, PID namespaces and /proc views
- Threads vs processes in the kernel: it is tasks all the way down
- Kernel threads and their role
- Reading /proc/<pid> against the structures it reflects
Day 2 — Creation and destruction
- fork, clone and clone3: what is shared vs copied, flag by flag
- Copy-on-write mechanics at fork
- execve: replacing the address space and starting over
- exit, zombies and reparenting
- ptrace as an observer of the lifecycle
Day 3 — Scheduling classes and policies
- The scheduling classes: stop, deadline, RT, fair, idle
- Priorities and policies: nice, SCHED_FIFO, SCHED_RR, SCHED_DEADLINE
- The runqueue and the pick-next path
- Where preemption points come from
- What a scheduler class change actually does to a workload
Day 4 — Blocking, waking and the cost of switching
- Context-switch cost and what drives it: cache, TLB, FPU state
- Wait queues, completions and blocking behaviour
- Wake-up paths and thundering herds
- Measuring wakeup-to-run latency with ftrace and perf sched
- Reading sched tracepoints to explain a latency spike
Hands-on labs
- Lab: watch fork/exec/exit with strace and ftrace, matching every userspace call to its kernel path
- Lab: measure context-switch cost while varying working-set size and CPU count, and explain the curve you get
- Lab: run competing tasks under nice levels and RT policies (chrt) and observe who actually runs
- Lab: instrument the wake-up path with ftrace (sched_wakeup, sched_switch) and measure wakeup-to-run latency
- Lab: reproduce a convoy or thundering-herd effect and make it visible in scheduler traces
Capstone project
Given a latency complaint about a multi-process service, produce an evidence-based diagnosis: scheduler traces showing wakeup-to-run delays, a breakdown of what drives the context-switch cost, policy and priority changes with before/after latency distributions, and a rollback plan — in the format you would hand to a review board.
What you leave with
- Source-level understanding of the task lifecycle from clone to exit
- Working scheduler tracing with ftrace and perf sched
- Correct, sceptical use of priorities and scheduling policies
- Latency evidence you can defend in front of others
Upcoming dates
| Dates | Where | Seats | Early bird | Regular | |
|---|---|---|---|---|---|
| 8 Nov – 11 Nov 20264 full days | RiyadhIn person · KAFD Conference Centre | 4 of 14 | SAR 9,450until 9 Oct | ||
| 15 Nov – 18 Nov 20264 full days | Kuwait CityIn person · Al Hamra Tower | 9 of 14 | KWD 780until 16 Oct | ||
| 15 Nov – 18 Nov 20264 full days | MuscatIn person · Knowledge Oasis Muscat | 4 of 14 | OMR 970until 16 Oct | ||
| 22 Nov – 1 Dec 20268 half-days | Gulf bandLive online · 09:00–13:00 GMT+3 | 16 of 20 | US$1,800until 23 Oct | ||
| 23 Nov – 26 Nov 20264 full days | OttawaIn person · Kanata North Tech Park | 9 of 14 | CAD 3,430until 24 Oct | ||
| 23 Nov – 2 Dec 20268 half-days | Europe bandLive online · 09:00–13:00 CET | 5 of 20 | US$1,800until 24 Oct | ||
| 30 Nov – 3 Dec 20264 full days | TorontoIn person · MaRS Discovery District | 4 of 14 | CAD 3,430until 31 Oct | ||
| 30 Nov – 3 Dec 20264 full days | LondonIn person · Shoreditch Works | 9 of 14 | GBP 1,960until 31 Oct | ||
| 30 Nov – 9 Dec 20268 half-days | Americas bandLive online · 13:00–17:00 ET | 10 of 20 | US$1,800until 31 Oct | ||
| 7 Dec – 10 Dec 20264 full days | BerlinIn person · Factory Görlitzer Park | 4 of 14 | EUR 2,320until 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.