~/talk

The Magic of a Trace

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [linux-and-operating-systems]
slides:none on file

Shows how to use Intel PT via perf and the Magic Trace toolchain to get full execution traces, not samples, and to spot exact causes like a 750 ms re‑auth handshake that explains long tails. Demonstrates a Zig implementation for a billion‑line file reduced from minutes to 2.5 seconds by switching to mmap+madvice, a cheap integer key instead of string hashing, and release optimizations, and a 200‑line Go listener that replaces a Debezium setup, cutting costs from $800 to $200/day and eliminating production bugs.

AI-written summary · about

  1. 0:00Introduction to production
  2. 2:16The limitations of metrics
  3. 8:55Introduction to Intel PT
  4. 12:23How Intel PT works
  5. 18:02Applying Intel PT tracing
  6. 20:50Solving the 1BRC challenge
  7. 29:14Optimizing code execution
  8. 37:04Tracing and framework overhead
  9. 44:35Case study in latency
  10. 54:08Conclusion and green computing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.