~/talk

Abusing Your Memory Model for Fun and Profit

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
links:none on file
slides:none on file

Four practical tricks that shave real latency: a transformation makes any open‑address hash table wait‑free for writers and statistically wait‑free readers on x86‑TSO by using a global version counter and in‑place key/value ordering with near 0 cost; epoch reclamation that scales to millions of events by bounding epochs to three values and using per‑thread two refcounts to avoid frequent fences; a single‑writer event count using xadd and futexes that is 8 cycles no atomic on the fast path (vs ~24 cycles); and an async reverse‑barrier implemented with eBPF perf watermarks to make kernel barriers cheap and nonblocking.

AI-written summary · about

  1. 0:00Introduction to memory models
  2. 2:43Background on cache coherency
  3. 7:41TSO and memory reordering
  4. 10:16Fast bounded concurrency hash table
  5. 17:25Epoch reclamation technique
  6. 26:44Event counts for lock-free waiting
  7. 31:46Single-writer event count optimization
  8. 42:30Reverse barriers for visibility
  9. 51:05Takeaways and toolkit summary
  10. 53:37Q&A session
~/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.