~/talk

Scheduler Tracing With ftrace + eBPF

links:none on file
slides:none on file

Shows how to collect scheduler events (sched_waking, sched_switch, sched_wakeup_new) by enabling event files in tracefs and reading per‑CPU lockfree ring buffers, and visualizes them with perfetto trace viewer. Replays a pinned 3‑task workload (10,000µs/4,000µs, 5,000µs/2,000µs, 600µs/300µs) totaling ~65% CPU and observes a 3.67ms wake‑to‑run delay. Explains CFS internals (per‑CPU red‑black runqueue keyed by vruntime) and identifies the overload-on-wakeup scheduling bug; shows using ftrace + eBPF to reproduce and inspect behavior and mentions EEVDF as a newer scheduler to watch.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Why scheduler tracing matters
  3. 4:40Common server threading patterns
  4. 9:15Tracing scheduling events
  5. 13:56Analyzing scheduling latency
  6. 15:59Overload on wakeup bug
  7. 16:42Real-world impact of bugs
  8. 17:03Key takeaways and tools
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.