~/talk

Out-of-order execution - what can it do for me?

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [concurrency]
links:none on file
slides:none on file

Explains how modern x86 CPUs decode instructions into microops, use a reorder buffer and memory-disambiguation to run loads/stores out of order, and how that both boosts IPC and causes costly recoveries when mispredicted. Uses microbenchmarks (objdump, no-op padding, perf and pmu-tools) to discover a reorder buffer = 512 on a Raptor Cove core, to show a machine clear ≈ 30–40 cycles when load-speculation fails at a specific iteration, and to prove branchless/conditional-move and layout fixes work — e.g. Google Propeller 4% runtime win measured with perf + pmu-tools.

AI-written summary · about

  1. 0:00Out-of-order execution intro
  2. 1:11Why CPU knowledge matters now
  3. 5:10What to expect
  4. 6:15Out-of-order benefits example
  5. 9:09How CPUs execute out-of-order
  6. 12:06Branch speculation in OoO
  7. 15:39Handling wrong predictions
  8. 17:30Measuring reorder buffer
  9. 21:03Memory disambiguation
  10. 24:41Reverse engineering memory disambiguation
  11. 29:44OoO advantages and power costs
  12. 31:09Limitations of out-of-order execution systems
  13. 35:53Top-down CPU workload analysis
  14. 36:36Front-end bound optimizations
  15. 39:00Code layout for performance
  16. 41:53Branch prediction efficiency
  17. 43:39Why untaken branches are faster
  18. 45:03Google’s Propeller function splitting
  19. 46:28Code layout impact
  20. 50:02Binary search bad speculation
  21. 53:42Branchless binary search
  22. 54:49Memory locality with I-singer
  23. 56:59Summary of CPU techniques
~/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.