~/talk

Going Nowhere Faster

Talkat CppCon 2017 · 2017-09-24..09-29· [software-architecture]
slides:none on file

Benchmark shows random-index probes reveal cache boundaries on an AMD Epyc: L1D ≈ 64 KB, L2 ≈ 512 KB, L3 ≈ 16 MB, with throughput falling from ~18 GB/s to ~15 GB/s at L1 pressure and later cratering near L3, and L1 miss rates jumping from ~0.01% to ~0.04% then to percent-level. Uses Google Benchmark, perf stat and perf list counters to confirm L1D misses, and demonstrates a tiny clamp loop where a conditional move (cmov) and an explicit branch are compared — surprisingly the branch can beat cmov depending on micro-op scheduling; Intel Architecture Code Analyzer is recommended for deeper pipeline analysis.

AI-written summary · about

  1. 0:00Intro
  2. 3:10Performance
  3. 6:20Profiling
  4. 11:00Benchmarking
  5. 17:15Performance Monitoring
  6. 19:40Cache Metrics
  7. 22:15Benchmark Libraries
  8. 23:45Clamp Loop
  9. 25:40Client Benchmark
  10. 28:40Faster Mod
  11. 29:35C Move
  12. 31:30Faster Branch Prediction
  13. 33:15Fancy Clamp
  14. 33:35Not Fancy Clamp
  15. 34:30Test Addthis
  16. 36:00Slides
  17. 36:55Microcode
  18. 37:15Notation
  19. 37:35Load
  20. 38:05MacroOpFusion
  21. 39:25Inversion
  22. 39:45Reorder Buffer
  23. 40:10Register Rename
  24. 40:50Speculative Execution
  25. 41:05Execution Units
  26. 41:50Execution Cycles
  27. 43:50Execution Latency
  28. 44:25Fully Packed Execution
  29. 46:15Speculation
  30. 47:25Intel Code Analyzer
  31. 48:15Performance Counters
  32. 50:20Questions
  33. 51:50Annotations
  34. 53:35Comparing literals to registers
  35. 54:30Store buffer
  36. 55:25EVX
  37. 56:00Builtin expect annotations
  38. 59:20LLVM
~/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.