Abstract
For decades, distributed database design has been predicated on the assumption that the network is the primary bottleneck. However, the advent of high-speed RDMA (Remote Direct Memory Access) networks like InfiniBand has fundamentally changed this landscape. This paper argues for a shift from traditional "shared-nothing" architectures to a Network-Attached Memory (NAM) model. By decoupling compute from storage and utilizing one-sided RDMA operations, NAM allows distributed systems to treat remote memory with the same efficiency as local RAM, enabling massive speedups in both transactional and analytical workloads.
The Network Bottleneck is Dead
Historically, moving data across a network was significantly slower than local memory access. To mitigate this, distributed databases relied on complex partitioning to keep data local and avoided distributed transactions at all costs.
Modern hardware has reached a tipping point. Technologies like InfiniBand FDR/EDR provide bandwidth up to 100Gbps—comparable to local memory channels—with near-microsecond latency. As shown in the figure below, the gap between network and memory bandwidth has narrowed to the point where software overhead, rather than hardware, is the limiting factor.
Methods: Network-Attached Memory (NAM)
The authors propose the NAM architecture, which separates the system into two distinct layers:
- Storage Nodes: These serve as passive memory pools, exposing their RAM to the network.
- Compute Nodes: These handle database logic and interact with storage nodes using one-sided RDMA verbs (READ, WRITE, and Atomic operations). This approach bypasses the remote node's CPU entirely, reducing latency and overhead.
To demonstrate the power of NAM, the paper introduces two key protocols:
- RDMA-enabled Snapshot Isolation (RSI): A transactional protocol that uses RDMA atomic "compare-and-swap" to validate and lock records in a single network round-trip.
- RDMA Radix Join (RRJ): An analytical algorithm that shuffles data between nodes while overlapping computation and communication to saturate hardware bandwidth.
Key Insights: The CPU as the New Bottleneck
A critical finding is that traditional networking stacks (TCP/IP) are too heavy for modern hardware. These stacks require significant CPU intervention for every packet, whereas RDMA offloads this work to the Network Interface Card (NIC).
As illustrated in the performance benchmarks above, RDMA maintains a constant, low CPU overhead regardless of message size, while traditional stacks scale linearly with data volume. Furthermore, by using "one-sided" verbs, compute nodes can treat the entire cluster as a giant, distributed NUMA (Non-Uniform Memory Access) machine.
Key Results
The evaluation across OLTP (TPC-W) and OLAP (large-scale joins) workloads yielded impressive results:
- Transactional Performance: The RSI protocol achieved 1.8 million transactions per second on an 8-node cluster—a 50x improvement over traditional Snapshot Isolation on 1Gbps Ethernet.
- Analytical Efficiency: The RDMA-optimized join (RRJ) outperformed state-of-the-art distributed joins, particularly as data matching (selectivity) increased.
- Linear Scalability: Unlike traditional protocols that bottlenecked after 40 concurrent clients, the RDMA-based RSI scaled linearly up to hardware saturation.
Limitations and Future Outlook
While NAM offers a revolutionary path forward, several challenges remain:
- Coherence: RDMA lacks hardware-level cache coherence, requiring software to manage consistency manually.
- Management: Memory registration with the NIC is complex for dynamic workloads.
- Optimizer Redesign: Query optimizers must be rebuilt to recognize that remote data access is now nearly as "cheap" as local access.
The authors suggest that the next frontier involves moving more logic—such as complex filtering or join predicates—directly onto programmable NICs using FPGAs, further offloading the CPU and pushing the boundaries of distributed performance.
Summary updated