~/talk

Understanding Hardware Transactional Memory

Talkat Joker 2016 · 2016-10-14..10-15· [concurrency]
slides:none on file

Hardware transactional memory becomes a commodity on Intel servers (Skylake, Broadwell, Haswell‑E, post‑March 2016) and gets used by JVMs (Zing; HotSpot via a flag) to perform speculative lock elision, letting synchronized blocks run concurrently unless data conflicts force aborts. Transactions track all accessed cache lines so they succeed only if they fit without eviction — practical limits are around L1 (~32KB) with associativity quirks that can fail with as few as nine conflicted addresses (cache-capacity limits). Microbenchmarks and customer data show typical gains from modest to 2x or ~50% better concurrency for coarse‑locked structures after simple changes (striped counters, cached size); it works but requires per‑lock heuristics to avoid regressions.

AI-written summary · about

  1. 0:00Introduction to HTM
  2. 1:05Background and context
  3. 6:07HTM in modern CPUs
  4. 8:17What is HTM?
  5. 10:59HTM and cache coherence
  6. 20:26CPU state and transactions
  7. 22:18Speculative lock elision
  8. 26:23Scaling and Amdahl's Law
  9. 30:24Lock vs data contention
  10. 35:35JVM transactional support
  11. 40:37Benchmarks and heuristics
  12. 43:10Coding for HTM benefits
  13. 49:48Future of HTM
  14. 50:53Questions and answers
~/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.