~/talk

Beyond pprof, Hardware Performance Counters

Talkat GopherCon UK 2026 · 2026-08-12..08-13· [linux-and-operating-systems, go]
slides:none on file

perfgo collects PMU data via Linux perf and converts it into pprof so you can map perfgo profiles to Go source; dTLB instrumentation shows Grafana Labs cut TLB misses by moving to huge pages but it costs ~7% more RSS and yields no measurable runtime gain for that workload using dTLB cache miss counters; focusing on branches, adding three lexer fast paths drops a hot function from ~17.5% to ~9% CPU and shrinks branch misses from the hot path (observed 14% branch-miss rate on random input); note many cloud VMs hide PMUs and transparent huge pages have allocation and latency tradeoffs.

AI-written summary · about

  1. 0:00Hardware performance counters
  2. 1:55CPU architecture evolution
  3. 8:17Cache locality and prefetching
  4. 10:26Hardware counters and PMU
  5. 11:31Prometheus workload analysis
  6. 16:30TLB optimization with huge pages
  7. 23:14Branch prediction misses
  8. 33:20Benchmarking methodology
  9. 36:53Perf Go profiling tool
  10. 39:00Branch optimization demo
  11. 44:44Kubernetes profiling with Perf Go
  12. 46:43Summary
  13. 48:28Q&A
~/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.