~/talk

Using eBPF Off-CPU Sampling to See What Your DBs are Waiting For

links:none on file
slides:none on file

Demonstrates an eBPF-based profiler called xtop/xcapture that samples threads at ~20Hz and attributes wall-clock time to on-CPU vs off-CPU causes without changing database code, showing per-connection stacks for MySQL, Postgres and DuckDB. It creates an extended task state array, captures off-CPU user/kernel stacks and links weight events (Oracle example), surfaces surprises like ~300,671 sampled thread-events in a 5s run and fsync/iode_lock contention, and currently runs via BCC en route to libbpf; code is open source.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:57Old tool demo with proc FS
  3. 10:19eBPF-based xtop tool demo
  4. 18:09How the eBPF tool works
  5. 19:59Future plans and conclusion
~/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.