Abstract
μTree is a novel persistent B+-tree design that slashes tail latency by an order of magnitude compared to state-of-the-art indices. By decoupling the index into a volatile "array layer" in DRAM and a durable "shadow list layer" in Persistent Memory (PM), it removes heavy structural operations from the critical path and enables fine-grained, concurrent access. Evaluation shows that μTree achieves up to 10x lower tail latency and 4.7x higher throughput than existing persistent B+-trees.
The Challenge: Tail Latency in Persistent Memory
As data centers transition to Persistent Memory (PM) technologies like Intel Optane, traditional B+-tree indices face significant performance hurdles. When implemented on PM, these structures often suffer from massive "tail latency" spikes. The authors identify two primary culprits:
- Structural Refinement Operations (SROs): Node splits and merges are expensive in PM because they involve moving large amounts of data and ensuring durability through frequent hardware flushes.
- Interference: PM's lower write bandwidth compared to DRAM leads to contention. When multiple threads update the same node, slow PM writes or SROs can block other threads—even those performing simple read operations—behind long-held locks.
The μTree Solution: Decoupling Search from Durability
μTree addresses these issues by using a hybrid DRAM/PM architecture that separates the structure used for fast searching from the structure used for data durability.
Hybrid Leaf Node Structure
The core of μTree is its two-layer leaf node design:
- The Array Layer (DRAM): The entire B+-tree structure, including inner nodes and leaf node arrays, is kept in volatile DRAM. This allows for fast $O(\log N)$ searches and rapid SROs that do not require slow PM flushes.
- The Shadow List Layer (PM): Durable data is stored as a singly linked list of individual elements in PM. This list is exempt from SROs; adding an item is a simple matter of linking a new node.
Coordinated Concurrency Control
μTree employs "speculative persistence" to move slow PM operations out of the critical locking path. A thread first creates and persists its new data in the PM list using atomic Compare-and-Swap (CAS) operations. Only after the PM work is complete does it acquire a lock to update the volatile DRAM layer. To handle read-write conflicts without heavy locking, μTree embeds version numbers and "deleted" bits directly into the 8-byte pointers of the PM list nodes.
Key Results
The authors evaluated μTree using the Yahoo Cloud Serving Benchmark (YCSB) and real-world integration with Redis.
- Tail Latency: Under heavy load, μTree’s 99th percentile latency is 10x lower than competitors like FPTree and FAST&FAIR.
- Throughput: μTree achieves 2.8x to 4.7x higher throughput than state-of-the-art persistent B+-trees.
- Robustness: Performance remains stable even under restricted PM bandwidth, unlike traditional trees which see performance crater.
- Recovery: Despite its volatile DRAM layer, μTree can rebuild an index of 100 million keys from the PM list in approximately 4 seconds using a multi-threaded recovery scheme.
Conclusion and Future Work
μTree demonstrates that decoupling search and durability structures is a powerful technique for optimizing persistent indices. While it introduces some DRAM overhead and "pointer chasing" during long range scans, the gains in tail latency and throughput are substantial. Future work will focus on supporting bidirectional range queries and further optimizing scan performance.
Summary updated