~/talk

MariaDB performance analysis with Linux BPF

links:none on file
slides:none on file

Uses Linux BPF (BPFTrace then BCC) to attach uprobes to MariaDB do_command and tracepoints, running live on a 10,000-thread production box. Finds average queries ~500 µs but spikes of seconds; one commit spends 194 ms with 193 ms in kernel and ~190 ms waiting on futex waits caused by a custom reader/writer lock. Correlates buffer pool pagein and mutex holder across databases to a global lock bug fixed in 10.1.8; BPF script is public.

AI-written summary · about

  1. 0:00Introduction to MariaDB BPF analysis
  2. 1:03Background on MariaDB at CM
  3. 2:05Identifying latency spikes in WordPress
  4. 3:10Initial troubleshooting with slow query log
  5. 5:20Exploring IO and buffer pool metrics
  6. 6:43Limitations of existing tools
  7. 7:04Introduction to Linux BPF
  8. 8:10Tracing MariaDB queries with BPF
  9. 9:16Measuring query execution time
  10. 9:59Kernel-level system call tracing
  11. 11:05Investigating write operations and futexes
  12. 12:07Discovering futex contention in MariaDB
  13. 13:15Analyzing slow queries with futex patterns
  14. 14:21Pinpointing the problematic futex
  15. 15:46Locating the source of the futex lock
  16. 16:09Researching MariaDB bug reports
  17. 17:12Implications of global locks in MariaDB
  18. 17:56BPF as a performance analysis superpower
  19. 18:40Overhead considerations for BPF
  20. 19:23BPF safety and production use
  21. 20:48BPF memory safety guarantees
  22. 21:32Why BPF is a game-changer
  23. 23:05Stack traces and frame pointers
~/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.