Lune

PLDI2024Top-tier venue

A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation

Ruslan Nikolaev, Binoy Ravindran

Abstract

Historically, memory management based on lock-free reference counting was very inefficient, especially for read-dominated workloads. Thus, approaches such as epoch-based reclamation (EBR), hazard pointers (HP), or a combination thereof have received significant attention. EBR exhibits excellent performance but is blocking due to potentially unbounded memory usage. In contrast, HP are non-blocking and achieve good memory efficiency but are much slower. Moreover, HP are only lock-free in the general case. Recently, several new memory reclamation approaches such as WFE and Hyaline have been proposed. WFE achieves wait-freedom, but is less memory efficient and performs suboptimally in oversubscribed scenarios; Hyaline achieves higher performance and memory efficiency, but lacks wait-freedom.

We present a family of non-blocking memory reclamation schemes, called Crystalline, that simultaneously addresses the challenges of high performance, high memory efficiency, and wait-freedom. Crystalline can guarantee complete wait-freedom even when threads are dynamically recycled, asynchronously reclaims memory in the sense that any thread can reclaim memory retired by any other thread, and ensures (an almost) balanced reclamation workload across all threads. The latter two properties result in Crystalline's high performance and memory efficiency. Simultaneously ensuring all three properties requires overcoming unique challenges. Crystalline supports ubiquitous x86-64 and ARM64 architectures, while achieving superior throughput than prior fast schemes such as EBR as the number of threads grows.

We also accentuate that many recent approaches, unlike HP, lack strict non-blocking guarantees when used with multiple data structures. By providing full wait-freedom, Crystalline addresses this problem as well.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data Structures cites A marriage of pointer- and epoch-based reclamation
  • Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data Structures cites NBR: neutralization based reclamation
  • Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data Structures cites Concurrent deferred reference counting with constant-time overhead
  • Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data Structures cites Universal wait-free memory reclamation
  • Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data Structures cites OrcGC: automatic lock-free memory reclamation
  • NBR: neutralization based reclamation cites Universal wait-free memory reclamation
  • Concurrent deferred reference counting with constant-time overhead cites A marriage of pointer- and epoch-based reclamation
  • Concurrent deferred reference counting with constant-time overhead cites Universal wait-free memory reclamation
  • Concurrent deferred reference counting with constant-time overhead cites OrcGC: automatic lock-free memory reclamation
  • Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation Schemes cites NBR: neutralization based reclamation
  • Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation Schemes cites Concurrent deferred reference counting with constant-time overhead
  • Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation Schemes cites Universal wait-free memory reclamation
  • Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation Schemes cites OrcGC: automatic lock-free memory reclamation
  • OrcGC: automatic lock-free memory reclamation cites A marriage of pointer- and epoch-based reclamation
  • OrcGC: automatic lock-free memory reclamation cites Universal wait-free memory reclamation
  • Sharded Elimination and Combining for Highly-Efficient Concurrent Stacks cites Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data Structures
  • Sharded Elimination and Combining for Highly-Efficient Concurrent Stacks cites NBR: neutralization based reclamation
  • Sharded Elimination and Combining for Highly-Efficient Concurrent Stacks cites Concurrent deferred reference counting with constant-time overhead
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites A marriage of pointer- and epoch-based reclamation
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites NBR: neutralization based reclamation
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Concurrent deferred reference counting with constant-time overhead
  • Leveraging Immutability to Validate Hazard Pointers for Optimistic Traversals cites Universal wait-free memory reclamation
  • RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites A marriage of pointer- and epoch-based reclamation
  • RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites NBR: neutralization based reclamation
  • RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites Concurrent deferred reference counting with constant-time overhead
  • RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation Schemes
  • RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites Universal wait-free memory reclamation
  • RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data Structures cites OrcGC: automatic lock-free memory reclamation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data StructuresAjay Singh, Trevor BrownPPoPP 2025 · 3 citations
  2. Leveraging Immutability to Validate Hazard Pointers for Optimistic TraversalsJanggun Lee, Jeonghyeon Kim, Jeehoon KangPLDI 2025 · 2 citations
  3. RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data StructuresMd Amit Hasan Arovi, Ruslan NikolaevPLDI 2025 · 2 citations
  4. Fixing Non-blocking Data Structures for Better Compatibility with Memory Reclamation SchemesMd Amit Hasan Arovi, Ruslan NikolaevPPoPP 2026 · 1 citation
  5. Sharded Elimination and Combining for Highly-Efficient Concurrent StacksAjay Singh, Nikos Metaxakis, Panagiota FatourouPPoPP 2026

Builds on8

  1. Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 citations
  2. A marriage of pointer- and epoch-based reclamationJeehoon Kang, Jaehwang JungPLDI 2020 · 25 citations
  3. NBR: neutralization based reclamationAjay Singh, Trevor Brown, Ali José MashtizadehPPoPP 2021 · 23 citations
  4. Universal wait-free memory reclamationRuslan Nikolaev, Binoy RavindranPPoPP 2020 · 23 citations
  5. OrcGC: automatic lock-free memory reclamationAndreia Correia, Pedro Ramalhete, Pascal FelberPPoPP 2021 · 19 citations

Related papers

  1. Snapshot-free, transparent, and robust memory reclamation for lock-free data structuresRuslan Nikolaev, Binoy RavindranPLDI 2021 · 18 citations
  2. Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 citations
  3. Are Your Epochs Too Epic? Batch Free Can Be HarmfulDaewoo Kim, Trevor Brown, Ajay SinghPPoPP 2024 · 5 citations
  4. Partial Failure Resilient Memory Management System for (CXL-based) Distributed Shared MemoryMingxing Zhang, Teng Ma, Jinqi Hua, Zheng Liu et al.SOSP 2023 · 38 citations
  5. Concurrent Immediate Reference CountingJaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon KangPLDI 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines