TL;DR
This paper dives deep into the performance of combining Remote Direct Memory Access (RDMA) with Non-Volatile Memory (NVM), specifically Intel Optane DC Persistent Memory. The authors identify key optimization strategies that significantly boost performance for existing RDMA-NVM systems, achieving up to 2.4X speedups. This work is crucial for unlocking the full potential of these emerging technologies in distributed systems.
What Problem Does This Paper Address?
As Non-Volatile Memory (NVM) like Intel Optane DC Persistent Memory becomes more accessible, researchers are eager to integrate it with high-performance networking technologies like RDMA to build faster and more persistent distributed systems. However, many existing RDMA-NVM systems were designed before production NVM was widely available or relied on emulated NVM. This led to suboptimal performance because these systems didn't fully exploit NVM's unique characteristics or RDMA's capabilities. The core problem is understanding how to best combine RDMA and NVM, especially for write operations, to achieve performance close to theoretical limits, rather than falling short due to misconfigurations or unoptimized access patterns.
Methods
The authors conduct a systematic study to uncover optimization hints for RDMA-NVM systems. Their approach involves:
- Microbenchmarking: They developed microbenchmarks to precisely measure the performance of remote read and write operations using both one-sided and two-sided RDMA primitives with NVM.
- Factor Analysis: They analyze the impact of various system configurations, NVM access patterns, and RDMA-specific optimizations on performance. This includes examining factors like DDIO (Data Direct I/O), cacheline vs. XPLine granularity, and the use of non-temporal stores.
- Optimization Synthesis: They consolidate and propose new optimization hints, categorizing them into configuration advice, access pattern advice, and RDMA-aware advice.
- System Improvement: They apply these synthesized hints to two existing open-source RDMA-NVM systems: a distributed database (DrTM+H) and a distributed file system (Octopus).
Datasets
Not discussed in the paper. The authors use their own microbenchmarks and evaluate existing systems (DrTM+H and Octopus) using standard benchmarks like TPC-C/no and SmallBank.
Key Insights and Ideas
- Remote Reads are Fast, Writes are the Bottleneck: Unlike remote reads, which perform comparably to DRAM, remote writes to NVM are significantly slower and far from theoretical limits. This highlights writes as the primary area for optimization.
- DDIO is a Double-Edged Sword: Disabling DDIO significantly improves one-sided RDMA NVM WRITE performance by preventing cache-induced random writes. However, it can degrade two-sided RDMA performance. This leads to a trade-off, suggesting a hybrid approach based on payload size.
- Granularity Matters (A Lot): The mismatch in access granularities between RNICs, NVM controllers, and the NVM media itself can lead to significant performance penalties. Optimizing for XPLine (256B) for writes and PCIe DW (64B) for small writes is crucial.
- Non-Temporal Stores are Key for Writes: Using non-temporal stores (
ntstore) is essential for efficient NVM writes, especially when dealing with smaller payloads or when avoiding CPU cache interference. - Persistent Writes Need RDMA-Awareness: Implementing persistent writes with one-sided RDMA typically requires two network roundtrips. The paper shows how RDMA-aware optimizations like "outstanding request with doorbell batching" can reduce this to a single roundtrip.
- Existing Systems Need Retuning: Systems designed before production NVM was common often fail to exploit its characteristics, leading to significant performance gains when optimized with the insights from this paper.
Key Results
- Significant Performance Improvements:
- Optimized DrTM+H achieved up to 1.45X speedup on TPC-C/no and 2.20X on SmallBank for non-persistent workloads.
- With persistence enabled, DrTM+H saw improvements of 1.01X (TPC-C/no) and 1.17X (SmallBank) after applying H9.
- Optimized Octopus achieved up to 2.4X improvement (from 1.2X) in data I/O throughput.
- One-sided RDMA WRITE Optimization: With optimizations, one-sided RDMA 16B WRITE achieved 87% of the NVM's peak write throughput.
- DDIO Impact: Disabling DDIO improved one-sided RDMA NVM WRITE by up to 2X for large payloads, while enabling it incurred a roughly 2X write amplification.
Limitations and Future Work
- Hardware Specificity: The study focuses on specific RNIC (Mellanox ConnectX-5) and NVM (Intel Optane DC Persistent Memory) hardware. While the authors believe their findings are generalizable, other hardware might yield different results.
- Next-Generation NVM: The paper acknowledges that future NVMs will offer higher bandwidth and potentially include processor caches in their persistent domain. This could simplify persistence for one-sided RDMA, but the core advice on optimizing NVM write performance will likely remain relevant.
- RDMA Hardware Evolution: Future RDMA hardware with even higher bandwidth could further shift performance bottlenecks, but the fundamental principles of efficient NVM access will persist.
- Suggestions for Hardware Designers: The authors suggest hardware extensions to RDMA to better support NVM, such as an RDMA-version of
ntstorefor one-sided non-temporal writes.
Summary updated