~/talk

Tracing MariaDB Server with bpftrace

Talkat MariaDB Server Fest 2021 · 2021-10-05..10-06· [devops-and-delivery, databases]
links:none on file
slides:none on file

bpftrace runs on Linux kernel 5.x.y, needs root, and often requires building from source; maps default to 4KB and probe count is capped by an env var (hit limits when probing ~34–35k functions). It captures SQL from dispatch_command arg2 and can record timings by storing start timestamps per thread; sampling at high rate (example: sampling at 99Hz produces ustack traces) yields flame-graphable stacks. Practical notes: ~1k selective probes work, tracing pthread mutexes halved QPS in one test, while aggregated kernel-side counting usually keeps overhead below 1% versus perf ~2%.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 14:03Why bpftrace for MariaDB
  3. 23:10bpftrace basics and language
  4. 33:23bpftrace variables and maps
  5. 43:01Tracing MariaDB queries
  6. 51:16Code coverage with bpftrace
  7. 54:19Sampling stack traces
  8. 58:40Tracing mutex locks and performance impact
  9. 1:01:59Memory allocation tracing
  10. 1:04:19bpftrace limitations and future
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.