Dynamic tracing of MariaDB on Linux
summary
Shows how Linux dynamic tracing adds and removes probes at runtime and applies ftrace, perf, bcc tools and bpftrace to MariaDB binaries without recompiling. Demonstrates capturing live SQL text and stack traces, using perf probes and line-level uprobe insertion, and measuring overhead: pt‑pmp can cut throughput to ~56% while perf stays ~98% and bpftrace adds about 0.13% overhead at 99 Hz. Provides practical workarounds for C++ symbol issues and missing debug info.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker background
- 3:01Tracing methods for MariaDB
- 9:58OS-level tracing tools in Linux
- 14:23Why not Performance Schema
- 20:30Event sources and tracing approaches
- 23:31Tracing with ftrace
- 25:47Frontends for dynamic tracing
- 27:23Adding probes with ftrace
- 34:33Perf as a dynamic probe tool
- 37:39Advanced perf probe usage
- 41:58Profiling with perf
- 46:13Real-world troubleshooting case
- 49:01Challenges with perf impact
- 50:31Introduction to eBPF
- 53:33bcc tools and static tracepoints
- 54:48bpftrace basics and usage
- 57:12Performance impact comparison
- 58:20Data visualization with flame graphs
- 59:08Challenges and limitations
- 1:00:39Conclusion and Q&A
