TL;DR
This paper introduces Storm, a high-performance RDMA dataplane that challenges the conventional wisdom that one-sided RDMA operations are not scalable. Storm achieves significant speedups over existing systems by leveraging newer RDMA hardware capabilities and introducing novel techniques for memory management and hybrid read/RPC operations, making RDMA more practical for rack-scale distributed systems.
What Problem Does This Paper Address?
Remote Direct Memory Access (RDMA) technology promises to revolutionize data center networking by allowing direct memory access between hosts without involving the remote CPU. This can lead to lower latency, higher throughput, and reduced CPU overhead. However, a significant challenge has been the perceived scalability issues of RDMA, particularly with one-sided operations (like remote reads and writes). Prior research suggested that as the number of hosts (and thus RDMA connections) increases, the limited cache on RDMA Network Interface Cards (NICs) becomes a bottleneck, leading to performance degradation. This has led to proposals that either trade off performance for scalability or avoid one-sided operations altogether. This paper aims to re-evaluate these scalability concerns in light of newer RDMA hardware and demonstrate that one-sided operations can, in fact, be highly performant and scalable in modern rack-scale environments.
Methods
The authors introduce Storm, a transactional RDMA dataplane designed for high performance and scalability. Storm's design is guided by five key principles:
- Simple Transactional Interface: A user-friendly API that abstracts away RDMA's low-level complexity, allowing developers to define remote data structures using callbacks.
- Leverage RC Connections: Storm advocates for using Reliably Connected (RC) transport, arguing that newer hardware can handle the associated state overhead, and RC offers benefits like hardware-managed congestion control and retransmissions.
- Minimize RDMA Region Metadata: To combat NIC cache exhaustion from memory registration, Storm employs a contiguous memory allocator and leverages physical segments (a newer RDMA feature) to reduce the metadata overhead.
- Hybrid One-Two-Sided Operations: Storm dynamically switches between efficient one-sided reads for simple lookups and write-based RPCs for more complex pointer-chasing operations, optimizing for different access patterns.
- Resize and/or Cache: For improved performance, Storm suggests strategies like client-side caching of item addresses or resizing data structures to maintain low occupancy and reduce pointer chasing.
Storm implements these principles through independent pipelines for remote reads and RPCs, managed by a single event loop.
Datasets
The paper does not explicitly mention or use traditional datasets. Instead, it relies on:
- Micro-benchmarks: Specifically, a key-value lookup workload and the Telecommunication Application Transaction Processing (TATP) benchmark, which simulates accesses to a Home Location Register database.
- Real-world hardware: The evaluation is conducted on a 32-node Infiniband EDR cluster with Mellanox ConnectX-4 NICs, and also utilizes pairs of servers with ConnectX-3, ConnectX-4, and ConnectX-5 NICs for comparisons.
- Emulation: To test larger cluster sizes (up to 128 machines), Storm uses an emulation technique on its 32-node cluster.
Key Insights and Ideas
- Modern RDMA Hardware Scales: The paper strongly refutes the notion that one-sided RDMA operations are inherently unscalable. Newer NICs with larger caches and improved processing units significantly mitigate previous scalability bottlenecks.
- RC Connections are Beneficial: Contrary to some prior work, the authors argue that using reliable connections (RC) with RDMA is advantageous on modern hardware, offering benefits like hardware congestion control and simplifying application development.
- Hybrid Operations are Key: The most effective approach for complex data structures is not purely one-sided or RPC-based, but a dynamic hybrid that leverages the strengths of both.
- Memory Management is Crucial: Efficiently managing RDMA memory regions is vital to avoid overwhelming NIC caches, and techniques like contiguous allocation and physical segments are effective solutions.
- User-space RDMA is Superior: Storm's user-space design, free from kernel overheads and dependencies, provides a significant performance advantage over kernel-based approaches.
Key Results
- Significant Speedups: Storm outperforms existing systems like eRPC, FaRM, and LITE by substantial margins: 3.3x over eRPC, 3.6x over an improved FaRM, and 17.1x over an improved LITE on an Infiniband EDR cluster.
- Scalability: Storm demonstrates strong performance scaling up to 64 nodes in rack-scale deployments. Even in emulated larger clusters (up to 128 nodes), performance remains stable with appropriate thread management.
- Low Latency: Storm achieves competitive round-trip times, not trading latency for throughput.
- Hardware Evolution Matters: The paper highlights how newer NICs (CX5 vs. CX3) offer dramatically better performance, especially with increasing numbers of connections.
- Physical Segments Boost Performance: Using physical segments for memory registration in Storm leads to a 32% throughput improvement compared to using 4KB pages.
Limitations and Future Work
- Physical Segments and Security: While physical segments offer performance benefits, their use in multi-tenant environments requires careful kernel-level mediation to ensure security, which the authors have implemented.
- Large Cluster Emulation Limits: The emulation of larger clusters is limited by the available compute resources on the physical testbed.
- Lock-Free Connection Sharing: For extremely large numbers of threads per node (beyond 10), the authors envision a low-overhead, lock-free connection sharing mechanism to further improve scalability.
- Memory Footprint Reduction: The authors are exploring memory management techniques to further reduce Storm's memory footprint.
- Generalizing Data Structures: While Storm supports various data structures, further work could focus on more sophisticated memory management for specific structures like trees and graphs.
Summary updated