~/talk

Designing fast lock free algorithms by understanding cache coherence dynamics

Talkat Hydra 2021 · 2021-06-15..06-18· [concurrency]
links:none on file
slides:none on file

Shows that cache-coherence dynamics (the MESI-style directory flow and forward/invalidation messages) make contended CAS operations serialize and incur latency that grows roughly linearly with the number of writers, so CAS failures waste most of the work and can make lock-free code slower than locks. Replaces contended CAS on head/tail with a non-failing fetch-and-add plus a bounded cyclic ring, sequence numbers, and an elimination/closure mechanism (LCRQ). Result: a practical queue that approaches hardware RMW throughput and avoids the CAS-driven collapse.

AI-written summary · about

  1. 0:00Introduction
  2. 5:58Welcome
  3. 6:17Outline
  4. 6:57Context
  5. 8:00Model
  6. 10:00Parallel Operations
  7. 12:10Approach
  8. 13:35Algorithm
  9. 14:35Queue
  10. 16:02Issues with Queue
  11. 16:29Lockfree synchronization
  12. 20:53Lock free algorithm
  13. 22:26Lock free recipe
  14. 23:26Inconsistent states
  15. 25:22Log free version
  16. 30:11Log free version performance
  17. 31:02Cache coherence
  18. 32:26MSI protocol
  19. 34:17Directorybased protocol
  20. 36:56Why is this behavior important
  21. 39:48Atomic read modify instructions
  22. 41:02Cache line contention
  23. 45:26Question
  24. 50:45Unrealistic algorithm
~/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.