One Buffer Manager to Rule Them All: Using Distributed Memory with Cache Coherence over RDMA

Magdalena Pröbstl, Philipp Fent, Maximilian E. Schüle, Moritz Sichert, Thomas Neumann, Alfons KemperADMS@VLDB 2021

Abstract

This paper presents a distributed buffer manager that treats remote memory across a cluster as a high-speed cache for persistent SSD storage. By extending a cache-coherence protocol over RDMA (Remote Direct Memory Access), the system allows database engines to scale beyond the RAM and PCIe limits of a single machine with minimal performance overhead. The proposed architecture bridges the gap between disk-oriented and in-memory systems by utilizing remote RAM as a middle tier.

Introduction

Modern data sets are exploding in size, often reaching multiple terabytes, while the growth of main memory capacity has slowed. To handle this, database systems must either be "disk-oriented" (slow) or "in-memory" (capacity-limited). While scaling up a single node is an option, it hits a hard physical limit: every NVMe SSD requires PCIe lanes, and CPUs only have so many. Scaling out to multiple nodes is the logical step, but traditional distributed systems struggle with the latency of moving data over a network. The authors address the missing link: how to efficiently combine distributed memory (RAM across multiple nodes) with traditional page caching in a way that feels like a single, massive buffer pool.

System Design and Methodology

The researchers built their system on two main pillars:

1. Extended Cache Coherence and PGAS

The system extends the Global Adaptive Memory (GAM) protocol to create a Partitioned Global Address Space (PGAS). This gives every piece of data in the cluster a unique global address, whether it resides in RAM or on an SSD. Data consistency is managed through a state machine where pages transition between Unshared, Shared, and Exclusive states to ensure consistency during concurrent access.

Transition between the different cache states

2. Node Roles and Two-Stage Caching

To manage data without a central bottleneck, nodes take on specific roles:

  • Home Node: The physical location where the data lives on disk.
  • Request Node: The node asking for data.
  • Owner/Sharing Nodes: Nodes currently holding a cached copy.

The distributed buffer manager implements a "one global buffer manager" design. It first attempts to pin pages into the local node's RAM. If local capacity is reached, it "evicts" pages to the RAM of remote nodes rather than going straight to the SSD.

System architecture and API interaction for the global buffer manager

Evaluation and Results

The authors evaluated their implementation using a series of synthetic micro-benchmarks on a two-node cluster (20-core Intel Xeon CPUs, 256GiB RAM, 1TiB SSD, 56 GBit/s Mellanox InfiniBand).

Key Insights

  • Remote RAM as a New NUMA Tier: With RDMA, accessing memory on another server is only about 10x slower than local RAM, whereas accessing an SSD is orders of magnitude slower. This makes remote RAM a perfect "middle tier" for caching.
  • Read Performance: A local read takes ~15µs. A remote read with the software cache takes ~16µs—nearly zero overhead. Without the cache, a remote read jumps to ~783µs.
  • Write Performance: Local writes are fast (~14µs), but remote writes average ~771µs due to the network round-trips and consistency management overhead.
  • SSD vs. RAM: SSD writes are roughly 50 times slower than main memory writes, reinforcing why the distributed RAM cache is so vital.

Discussion and Conclusion

The benchmarks suggest a clear best practice: fully utilize the entire cluster's distributed RAM pool as a buffer before ever swapping pages out to the SSD. However, limitations remain, including the lack of persistence awareness in current RDMA technology and high variability in remote write latency. Future work will involve testing the protocol's behavior and lock contention on larger, 100-node clusters.

Summary updated

BibTeX
@inproceedings{probstl2021one,
  author = {Magdalena Pröbstl and Philipp Fent and Maximilian E. Schüle and Moritz Sichert and Thomas Neumann and Alfons Kemper},
  title = {{One Buffer Manager to Rule Them All: Using Distributed Memory with Cache Coherence over RDMA}},
  booktitle = {ADMS@VLDB},
  year = {2021},
  url = {https://openreview.net/forum?id=0kKJDLAEkT},
}
Figure