OrcGC: automatic lock-free memory reclamation
Andreia Correia, Pedro Ramalhete, Pascal Felber
摘要
Dynamic lock-free data structures require a memory reclamation scheme with a similar progress. Until today, lock-free schemes are applied to data structures on a case-by-case basis, often with algorithm modifications to the data structure.
In this paper we introduce two new lock-free reclamation schemes, one manual and the other automatic with user annotated types. The manual reclamation scheme, named pass-the-pointer (PTP), has lock-free progress and a bound on the number of unreclaimed objects that is linear with the number of threads.
The automatic lock-free memory reclamation scheme, which we named OrcGC, uses PTP and object reference counting to automatically detect when to protect and when to de-allocate an object. OrcGC has a linear bound on memory usage and supports the system allocator. We propose a new methodology that utilizes OrcGC to provide lock-free memory reclamation to a data structure.
We conducted a performance evaluation on two machines, an Intel and an AMD, applying PTP and OrcGC to several lock-free data structures, providing lock-free memory reclamation where before there was none. On the Intel machine we saw no significant performance impact, while on AMD we observed a worst-case performance drop below 50%.
• Theory of computation Concurrent algorithms.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 A marriage of pointer- and epoch-based reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 Concurrent deferred reference counting with constant-time overhead
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 Universal wait-free memory reclamation
- A Family of Fast and Memory Efficient Lock- and Wait-Free Reclamation 引用了 Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 Concurrent deferred reference counting with constant-time overhead
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 Universal wait-free memory reclamation
- Turning manual concurrent memory reclamation into automatic reference counting 引用了 Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- Concurrent Immediate Reference Counting 引用了 Turning manual concurrent memory reclamation into automatic reference counting
- Concurrent Immediate Reference Counting 引用了 Concurrent deferred reference counting with constant-time overhead
- Concurrent Immediate Reference Counting 引用了 Snapshot-free, transparent, and robust memory reclamation for lock-free data structures
- Concurrent deferred reference counting with constant-time overhead 引用了 A marriage of pointer- and epoch-based reclamation
- Concurrent deferred reference counting with constant-time overhead 引用了 Universal wait-free memory reclamation
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structures 引用了 A marriage of pointer- and epoch-based reclamation
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structures 引用了 Universal wait-free memory reclamation
引用它的顶会 Paper10
- Concurrent deferred reference counting with constant-time overheadDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2021 · 26 次引用
- Snapshot-free, transparent, and robust memory reclamation for lock-free data structuresRuslan Nikolaev, Binoy RavindranPLDI 2021 · 18 次引用
- Turning manual concurrent memory reclamation into automatic reference countingDaniel Anderson, Guy E. Blelloch, Yuanhao WeiPLDI 2022 · 14 次引用
- A Family of Fast and Memory Efficient Lock- and Wait-Free ReclamationRuslan Nikolaev, Binoy RavindranPLDI 2024 · 7 次引用
- Concurrent Immediate Reference CountingJaehwang Jung, Jeonghyeon Kim, Matthew J. Parkinson, Jeehoon KangPLDI 2024 · 6 次引用
它引用的 Paper2
相关 Paper
- Are Your Epochs Too Epic? Batch Free Can Be HarmfulDaewoo Kim, Trevor Brown, Ajay SinghPPoPP 2024 · 5 次引用
- Pointer life cycle types for lock-free data structures with memory reclamationRoland Meyer, Sebastian WolffPOPL 2020 · 7 次引用
- RRR-SMR: Reduce, Reuse, Recycle: Better Methods for Practical Lock-Free Data StructuresMd Amit Hasan Arovi, Ruslan NikolaevPLDI 2025 · 2 次引用
- Leveraging Immutability to Validate Hazard Pointers for Optimistic TraversalsJanggun Lee, Jeonghyeon Kim, Jeehoon KangPLDI 2025 · 2 次引用
- Publish on Ping: A Better Way to Publish Reservations in Memory Reclamation for Concurrent Data StructuresAjay Singh, Trevor BrownPPoPP 2025 · 3 次引用
