Skip to main content
QUICK REVIEW

[Paper Review] APEX: A High-Performance Learned Index on Persistent Memory

Baotong Lu, Jialin Ding|arXiv (Cornell University)|May 3, 2021
Parallel Computing and Optimization TechniquesComputer Science47 references6 citations
TL;DR

APEX is a high-performance, persistent, and concurrent learned index optimized for persistent memory (PM) that combines the data-distribution-aware efficiency of learned indexes with PM-specific optimizations. By integrating ALEX’s model-based structure with PM-aware data layout, metadata caching in DRAM, and lazy recovery, APEX achieves up to 15× higher throughput than existing PM indexes and instant recovery in ~42ms on Intel DCPMM.

ABSTRACT

The recently released persistent memory (PM) offers high performance, persistence, and is cheaper than DRAM. This opens up new possibilities for indexes that operate and persist data directly on the memory bus. Recent learned indexes exploit data distribution and have shown great potential for some workloads. However, none support persistence or instant recovery, and existing PM-based indexes typically evolve B+-trees without considering learned indexes. This paper proposes APEX, a new PM-optimized learned index that offers high performance, persistence, concurrency, and instant recovery. APEX is based on ALEX, a state-of-the-art updatable learned index, to combine and adapt the best of past PM optimizations and learned indexes, allowing it to reduce PM accesses while still exploiting machine learning. Our evaluation on Intel DCPMM shows that APEX can perform up to ~15x better than existing PM indexes and can recover from failures in ~42ms.

Motivation & Objective

  • Address the performance bottleneck of learned indexes on persistent memory (PM) due to high PM write bandwidth consumption during insertions.
  • Enable crash consistency and instant recovery in learned indexes, which are typically designed for DRAM and lack persistence semantics.
  • Reduce PM accesses in learned indexes by caching metadata and accelerators in DRAM while maintaining high search and insert performance.
  • Integrate PM-optimized data structures (e.g., unsorted overflow buckets) with learned index abstractions to support efficient updates without sacrificing lookup performance.
  • Achieve both high throughput and low recovery time by leveraging lazy recovery and PM-aware synchronization mechanisms.

Proposed method

  • Adapt ALEX, a state-of-the-art updatable learned index, to operate directly on persistent memory by rearchitecting its data layout and access patterns.
  • Cache critical metadata (e.g., model parameters, accelerators) in DRAM to reduce PM accesses, especially for high-frequency operations like lookups and inserts.
  • Use unsorted, append-only overflow buckets for insertions to avoid costly data shifting and reduce PM write bandwidth usage.
  • Employ a loose density bound policy ([0.5, 0.9]) to minimize structural modification operations (SMOs), thereby reducing PM writes and synchronization overhead.
  • Implement lazy recovery via PMwCAS and descriptor pools to enable instant restarts, deferring full consistency checks until runtime.
  • Apply thread-level parallelism to recover multiple data nodes concurrently, reducing warm-up time after failure.

Experimental results

Research questions

  • RQ1Can a learned index be efficiently and persistently deployed on persistent memory while maintaining high performance and low PM bandwidth usage?
  • RQ2How can structural modification operations (SMOs) in learned indexes be minimized on PM to reduce PM write bandwidth and improve scalability?
  • RQ3Can instant recovery be achieved in a learned index without relying on in-memory state reconstruction, and what is the performance impact?
  • RQ4What is the performance trade-off between PM access reduction and DRAM usage in a hybrid index design combining learned indexing and PM optimizations?
  • RQ5How does the integration of model-based search with PM-optimized data structures affect throughput and recovery time compared to traditional B+-tree-based PM indexes?

Key findings

  • APEX achieves up to ~15× higher throughput than existing PM-optimized indexes (e.g., uTree, LB+Tree, FPTree) on Intel Optane DCPMM under high-concurrency workloads.
  • APEX recovers from crashes in ~42ms on average, with a warm-up time of less than 1.9s under 24 threads, enabling instant availability after restart.
  • Caching accelerators and metadata in DRAM improves search performance by 1.76× and insert performance by 2.21×, demonstrating the effectiveness of reducing PM accesses.
  • Using a loose density bound ([0.5, 0.9]) reduces SMO frequency by half compared to a tight bound, improving performance by 1.21× with fewer PM writes.
  • APEX consumes only 0.23GB DRAM and 2.14GB PM after loading 100M records from Longitudes, showing low DRAM footprint and high capacity utilization.
  • Recovery time for APEX is sub-second and scales sublinearly with data size, outperforming uTree (43s at 100M keys) and LB+Tree (7.2s at 100M keys), and is competitive with FPTree and BzTree.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.