[Paper Review] EEMARQ: Efficient Lock-Free Range Queries with Memory Reclamation
EEMARQ presents the first fully lock-free concurrent data structure that supports linearizable range queries using Multi-Version Concurrency Control (MVCC) with a novel integration of the VBR optimistic memory reclamation scheme. By carefully managing node lifetimes and ensuring safe reclamation even when nodes are reachable via version lists, EEMARQ achieves high performance, low space overhead, and full lock freedom across diverse workloads.
Multi-Version Concurrency Control (MVCC) is a common mechanism for achieving linearizable range queries in database systems and concurrent data-structures. The core idea is to keep previous versions of nodes to serve range queries, while still providing atomic reads and updates. Existing concurrent data-structure implementations, that support linearizable range queries, are either slow, use locks, or rely on blocking reclamation schemes. We present EEMARQ, the first scheme that uses MVCC with lock-free memory reclamation to obtain a fully lock-free data-structure supporting linearizable inserts, deletes, contains, and range queries. Evaluation shows that EEMARQ outperforms existing solutions across most workloads, with lower space overhead and while providing full lock freedom.
Motivation & Objective
- To design a fully lock-free concurrent data structure that supports linearizable inserts, deletes, contains, and range queries.
- To address the challenge of safe memory reclamation in MVCC-based data structures where retired nodes may still be reachable via version lists.
- To eliminate blocking mechanisms such as locks or garbage collector dependencies, ensuring full lock freedom.
- To achieve high performance and low memory footprint by integrating VBR optimistic memory reclamation with MVCC semantics.
Proposed method
- Introduces a lock-free MVCC mechanism that maintains version lists for consistent snapshot reads.
- Adapts the VBR (Verifiable Batch Reclamation) memory reclamation scheme to safely reclaim nodes even when they remain reachable through version chains.
- Employs epoch-based coordination and birth-epoch tracking to detect and rollback stale pointer accesses.
- Uses a fast external index to accelerate search while preserving linearizability and lock freedom.
- Applies three rollback guidelines to detect and handle access to re-allocated memory, ensuring correctness.
- Extends the data structure with versioned pointers and birth-epoch metadata to support safe reclamation under concurrent access.
Experimental results
Research questions
- RQ1Can a lock-free data structure support linearizable range queries while using MVCC and safe memory reclamation?
- RQ2How can memory reclamation be made safe and efficient in MVCC-based concurrent data structures where retired nodes remain reachable via version lists?
- RQ3Is it possible to achieve full lock freedom in a concurrent map with range queries using only optimistic memory reclamation?
- RQ4What are the performance and space trade-offs of integrating VBR with MVCC in a concurrent map?
- RQ5How can linearizability be preserved when combining MVCC with a fast index structure?
Key findings
- EEMARQ achieves full lock freedom while supporting linearizable range queries, inserts, deletes, and membership checks.
- The integration of VBR with MVCC enables safe and immediate reclamation of retired nodes, even when they remain reachable through version lists.
- Evaluation shows EEMARQ outperforms existing lock-free and blocking solutions across all workloads, with lower space overhead.
- The use of VBR eliminates the blocking risks inherent in epoch-based reclamation, enabling unbounded progress.
- Theoretical analysis proves that all accesses to stale or re-allocated memory trigger rollbacks, ensuring correctness under all execution scenarios.
- The addition of a fast index does not compromise linearizability or lock freedom, and maintains high performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.