Profiling data structures
summary
Combines hardware sampling and type-aware layout introspection to find false sharing and hot fields: uses perf record -a mem-loads with PEBS/C2C load-latency sampling (often filtering >30 cycles) and maps offsets back with pahole + BTF to identify cache-line offsets; demonstrates fixes that work (cacheline_align or member reordering moved parent/usage to different lines, improving counters and page-stats), and prototypes kernel-side BPF aggregation to scale analysis and auto-suggest layout changes.
AI-written summary · about
chapters (13)
- 0:00Introduction to talk
- 1:05Data structures and cache efficiency
- 2:34Hardware support for optimization
- 4:43False sharing and cache line issues
- 9:17Introducing perf c2c
- 13:16Hardware tracing tools
- 15:27Perf load latency and c2c
- 22:13Perf workflow and data analysis
- 27:17Automating data structure analysis
- 33:08Compiler and tool limitations
- 35:23BPF and perf integration
- 36:48Future of data structure annotation
- 37:32Q&A session
related talks
01h 02mProfiling with Heaptrack and Hotspot on Embedded Linux
45mPerformance lab. The power of the perf tool!
59mBeyond pprof, Hardware Performance Counters
31mFantastic tracepoints and where to find them
36mContinuous Profiling with Parca- Beneath the Kernel to Beyond...
40mTowards a Tool for Access-Affinity Based Structure Reordering in the Linux Kernel
45mPerf tools updates and beyond
36mObservability and performance analysis with BPF
