Evaluating Persistent Memory Range Indexes: Part Two

Yuliang He, Duo Lu, Kaisong Huang, Tianzheng Wang

This paper provides a comprehensive "reality check" for the latest persistent memory (PM) range indexes on real Intel Optane hardware. It reveals that while new designs are evolving, many "legacy" techniques remain king, and major hurdles like NUMA-awareness and variable-length key support are still in their infancy.

TL;DR

The authors conduct a rigorous head-to-head evaluation of five state-of-the-art persistent memory (PM) indexes on real Intel Optane hardware. They find that while newer designs leverage DRAM more aggressively to boost performance, "legacy" pre-hardware techniques remain highly effective, and significant challenges—particularly NUMA-awareness and variable-length key support—remain largely unsolved.

What Problem Does This Paper Address?

Persistent Memory (PM), specifically Intel Optane, promised the byte-addressability of DRAM with the persistence of SSDs. Before real hardware was available, researchers designed indexes based on simulations and emulations. Now that real PM hardware has been on the market, a "new breed" of indexes (like DPTree and ROART) has emerged, claiming to be tailor-made for the physical characteristics of Optane.

However, it wasn't clear how these new indexes compared to each other or if they actually outperformed the best "legacy" designs. This paper addresses this gap by evaluating the state-of-the-art across dimensions like throughput, tail latency, memory footprint, and scalability, while also investigating how these indexes handle real-world complexities like multi-socket (NUMA) effects and variable-length strings.

Methods

The authors evaluate five modern PM indexes:

  • LB+-Tree: A B+-tree optimized for 256-byte alignment and SIMD instructions.
  • $\mu$Tree: A design that puts the B+-tree in DRAM and a linked list in PM to minimize tail latency.
  • DPTree: A hybrid design using multiple buffer trees in DRAM and a trie in PM.
  • ROART: A persistent version of the Adaptive Radix Tree (ART) designed for range scans.
  • PACTree: A two-layer trie/B+-tree hybrid that is the only index in the group to explicitly attempt NUMA-awareness.

They compare these against FPTree, a representative "best-in-class" index from the pre-hardware era. The evaluation uses PiBench, a unified benchmarking framework, on a server with 1.5TB of Intel Optane PM and 384GB of DRAM.

Datasets

The study utilizes both synthetic and real-world datasets:

  • Synthetic: 8-byte integer keys under uniform and skewed (Zipfian) distributions.
  • Reddit Usernames: 25 million unique strings up to 25 characters.
  • Wikipedia Titles: 55 million unique titles up to 256 characters.
  • UK-2005 URLs: 40 million unique URLs up to 2,029 characters.

Key Insights and Ideas

  • DRAM is the Secret Sauce: The highest-performing indexes (DPTree, LB+-Tree) are those that use DRAM most aggressively. By keeping inner nodes or buffers in DRAM, they shield the slower PM from excessive traffic.
  • The "Legacy" was Right: Techniques developed during the simulation era—like fingerprinting (using 1-byte hashes to avoid unnecessary key comparisons) and unsorted nodes—remain the most effective ways to optimize for real PM hardware.
  • The NUMA Wall: Most indexes are "single-socket heroes." When threads span across two CPU sockets, performance often collapses due to the high cost of cross-socket PM traffic and directory-based cache coherence.
  • Radix Trees for Strings: While B+-trees win on integers, Trie-based designs (like ROART) are significantly better for variable-length keys because they avoid the massive overhead of pointer-chasing and string comparisons inherent in B+-trees.
  • Unintended Versatility: Surprisingly, when the authors ran these PM indexes on standard DRAM (removing persistence flushes), they often matched or outperformed specialized DRAM indexes like Masstree. This suggests a path toward "unified" index designs.

Key Results

  • Throughput: DPTree and LB+-Tree generally lead in lookups, performing up to 2x faster than the pre-hardware FPTree.
  • Inserts: LB+-Tree scales the best under high thread counts due to its "logless" split design and 256-byte internal alignment.
  • Tail Latency: Despite being designed specifically to reduce tail latency, $\mu$Tree actually exhibited the highest latency in many cases due to its reliance on PM-resident linked lists.
  • Space Efficiency: ROART showed a massive memory footprint, requiring nearly 19GB of PM to index just 1.6GB of data—a ~9% occupancy rate caused by its node split mechanism.

Limitations and Future Work

  • Hardware Lock-in: Most of these indexes are "tailor-made" for Intel Optane's 256-byte internal granularity. The authors warn this is a double-edged sword; if future PM hardware (like CXL-based devices) has different specs, these optimizations may become liabilities.
  • NUMA is Unsolved: Even PACTree, which was designed for NUMA, struggled to scale effectively across sockets, indicating that multi-socket PM indexing remains an open research problem.
  • Infrastructure Bottlenecks: PM programming libraries (like PMDK) and allocators are still significant performance bottlenecks that need further refinement.

Summary updated

BibTeX
@article{he2022evaluating,
  author = {Yuliang He and Duo Lu and Kaisong Huang and Tianzheng Wang},
  title = {{Evaluating Persistent Memory Range Indexes: Part Two}},
  journal = {PVLDB},
  year = {2022},
  doi = {10.14778/3551793.3551808},
}
Figure