[Paper Review] Durable Queues
This paper presents a high-performance, lock-free, and durably linearizable queue for non-volatile main memory by minimizing both the number of persist operations and accesses to flushed data. By optimizing for cache efficiency and reducing costly cache invalidations, the proposed durable queue outperforms state-of-the-art solutions, demonstrating that minimizing data access to flushed content is as critical as minimizing persist instructions.
We consider durable data structures for non-volatile main memory, such as the new Intel Optane memory architecture. Substantial recent work has concentrated on making concurrent data structures durable with low overhead, by adding a minimal number of blocking persist operations (i.e., flushes and fences). In this work we show that focusing on minimizing the number of persist instructions is important, but not enough. We show that access to flushed content is of high cost due to cache invalidation in current architectures. Given this finding, we present a design of the queue data structure that properly takes care of minimizing blocking persist operations as well as minimizing access to flushed content. The proposed design outperforms state-of-the-art durable queues. We start by providing a durable version of the Michael Scott queue (MSQ). We amend MSQ by adding a minimal number of persist instructions, fewer than in available durable queues, and meeting the theoretical lower bound on the number of blocking persist operations. We then proceed with a second amendment to this design, that eliminates accesses to flushed data. Evaluation shows that the second amendment yields substantial performance improvement, outperforming the state of the art and demonstrating the importance of reduced accesses to flushed content. The presented queues are durably linearizable and lock-free. Finally, we discuss the theoretical optimal number of accesses to flushed content.
Motivation & Objective
- Address the performance bottleneck in durable concurrent data structures caused by high-cost access to flushed data in non-volatile main memory.
- Design a durable queue that meets the theoretical lower bound on the number of blocking persist operations while reducing access to flushed content.
- Achieve superior performance over existing durable queues by optimizing both persist operations and data access patterns.
- Establish a theoretical foundation for the optimal number of accesses to flushed content in durable data structures.
Proposed method
- Start with the Michael Scott queue (MSQ), a well-known lock-free queue, and enhance it with a minimal number of persist instructions to ensure durability.
- Apply a theoretical lower bound analysis to ensure the number of persist operations is minimized, matching the theoretical minimum.
- Introduce a second optimization that eliminates reads from flushed memory locations, reducing cache invalidation and improving performance.
- Ensure the resulting data structure remains durably linearizable and lock-free, preserving correctness under persistent memory semantics.
- Use memory barriers and flush operations strategically to enforce durability without sacrificing concurrency.
- Analyze and compare access patterns to flushed data across different queue designs to quantify performance impact.
Experimental results
Research questions
- RQ1What is the optimal number of persist operations required for a durable, lock-free queue in non-volatile memory?
- RQ2How does access to flushed data impact performance in durable concurrent data structures?
- RQ3Can reducing access to flushed content significantly improve the performance of durable queues beyond minimizing persist operations?
- RQ4What is the theoretical lower bound on the number of accesses to flushed content in durable data structures?
- RQ5How can a durable queue be designed to be both lock-free and durably linearizable while minimizing both persist operations and flushed data accesses?
Key findings
- Access to flushed data incurs high performance costs due to cache invalidation in current architectures, which is a critical bottleneck beyond the cost of persist operations.
- The proposed queue design reduces both the number of persist operations and accesses to flushed content, resulting in superior performance compared to existing durable queues.
- The second optimization—eliminating reads from flushed data—delivers substantial performance gains, demonstrating that minimizing data access to flushed content is as important as minimizing persist instructions.
- The final design achieves the theoretical lower bound on the number of persist operations, confirming its optimality in this dimension.
- The proposed queue is both durably linearizable and lock-free, ensuring correctness and concurrency safety under persistent memory semantics.
- The study establishes a theoretical foundation for the optimal number of accesses to flushed content, providing a benchmark for future durable data structure designs.
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.