Reliability v Memory Efficiency of eBPF Instrumentation: Why Not Both
summary
CNCF Pixie profiles its Go collector with pprof and finds cumulative 110 MB heap allocations caused by runtime DWARF parsing for uprobes. A fork of OpenTelemetry’s offset generator precomputes function-argument and struct offsets into precomputed JSON offsets per Go/module version; user space injects those values into eBPF maps at attach time. The eBPF programs remain unchanged, the 100+MB allocation spikes disappear, and the system can still fall back to DWARF parsing when no precomputed file matches.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:03What is Pixie and its eBPF use
- 3:15Reliability challenges in eBPF tracing
- 6:03Stability levels of eBPF probes
- 8:54Dwarf runtime information solution
- 11:00Memory overhead of Dwarf parsing
- 12:28Precomputing offsets for efficiency
- 14:13Automating offset enumeration
- 17:04Integrating precomputed offsets
- 18:30Key takeaways and future work
- 19:53Pixie memory profiling plans
- 20:15Closing and Q&A
