[Paper Review] Data Structure Primitives on Persistent Memory: An Evaluation
This paper evaluates low-level data structure primitives for persistent memory (PMem) by decomposing existing tree-based designs into fundamental building blocks. Using real PMem hardware, it identifies optimal primitives—such as hash probing with bitmaps for data nodes and sorted layouts for inner nodes—offering performance trade-offs and design guidelines for write-intensive, point-query, or iteration-heavy workloads.
Persistent Memory (PMem), as already available, e.g., with Intel Optane DC Persistent Memory, represents a very promising, next-generation memory solution with a significant impact on database architectures. Several data structures for this new technology and its properties have already been proposed. However, primarily only complete structures are presented and evaluated. Thus, the implications of the individual ideas and PMem features are concealed. Therefore, in this paper, we disassemble the structures presented so far, identify their underlying design primitives, and assign them to appropriate design goals regarding PMem. As a result of our comprehensive experiments on real PM hardware, we can reveal the trade-offs of the primitives for various access patterns. This allowed us to pinpoint their best use cases as well as vulnerabilities. Besides our general insights regarding PMem-based data structure design, we also discovered new combinations not examined in the literature so far.
Motivation & Objective
- To move beyond monolithic evaluation of PMem data structures and instead analyze their underlying low-level design primitives.
- To identify and classify core primitives that address PMem-specific challenges such as write amplification, persistence, and consistency.
- To evaluate these primitives under real-world access patterns on Intel Optane DC Persistent Memory hardware.
- To provide actionable design insights and performance trade-offs for database and systems researchers building PMem-optimized data structures.
- To discover novel combinations of primitives not previously explored in the literature, especially for hybrid DRAM/PMem systems.
Proposed method
- Decomposed existing PMem data structures (e.g., B+Trees, SkipLists, LSM-Trees) into atomic design primitives such as hashing, bitmaps, indirection, and sorted layouts.
- Mapped each primitive to one of three critical design goals: reducing writes, enabling fine-grained access, and ensuring consistent/durable operations.
- Defined and evaluated 10 distinct low-level access patterns (e.g., search, insert, erase, iterate) on real DCPMM hardware using microbenchmarks.
- Used Intel’s Memory Latency Checker and Flexible I/O tester to measure latency and performance under controlled conditions.
- Evaluated PMDK transactions and compared them to hand-rolled atomicity mechanisms to assess performance overhead.
- Proposed a hybrid DRAM/PMem architecture for performance-critical workloads, with inner nodes in DRAM and data nodes in PMem.
Experimental results
Research questions
- RQ1Which low-level data structure primitives on PMem deliver the best performance for different access patterns (e.g., point queries, scans, updates)?
- RQ2How do combinations of primitives (e.g., hashing + bitmap, indirection + sorted layout) affect performance and write amplification?
- RQ3What are the performance implications of using PMDK transactions versus custom atomic update mechanisms in PMem?
- RQ4How does memory layout (e.g., 256B vs. 1KB node size) and cache-line alignment affect performance on real DCPMM hardware?
- RQ5What are the performance bottlenecks in PMem data structures, and how can they be mitigated through primitive selection and allocation strategies?
Key findings
- Hash probing with a bitmap for data nodes (1 KiB size) delivers the best overall performance for workloads with many point queries and deletes.
- Indirection and sorted layouts in inner nodes (stored in DRAM) significantly reduce performance degradation from pointer chasing and improve traversal efficiency.
- PMDK transactions introduce substantial overhead—up to 10x slower than hand-rolled atomic updates—making them unsuitable for performance-critical applications.
- Sequential access to cache lines is significantly faster than non-sequential access; jumping between cache lines degrades performance, especially in indirection and iteration patterns.
- Allocations in PMem are expensive and should be minimized via group allocation and node reuse; frequent allocation/deallocation severely impacts performance.
- The optimal node size for PMem-based index structures lies between 256 bytes and 1 KiB, balancing write-combining buffer efficiency and search structure overhead.
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.