Abstract
Remote Direct Memory Access (RDMA) provides high-performance networking by bypassing the OS kernel, but its heavy control plane setup—often exceeding 30ms—is a major bottleneck for short-lived serverless tasks. Swift is a high-performance RDMA control plane designed for the millisecond timescales of elastic computing. By debunking the myth that user-space setup is inherently slow, Swift employs user-space caching and native fork support to achieve a 10x speedup in connection setup. Crucially, Swift maintains full kernel bypass, avoiding the significant data-plane performance penalties seen in previous kernel-based management solutions.
Introduction: The Control Plane Bottleneck
In modern cloud environments, elastic computing platforms like AWS Lambda or OpenWhisk execute tasks that are increasingly transient, often running for only tens of milliseconds. While RDMA is the gold standard for low-latency networking, its traditional control plane was designed for long-lived applications. Profiling standard RDMA libraries reveals that a typical setup phase takes approximately 26.5ms, which can exceed the execution time of the task itself.
Previous attempts to mitigate this latency, such as KRCore, moved RDMA resource management into the Linux kernel. While this allows for faster resource sharing, it forces applications to use system calls for every data transfer. This trade-off effectively destroys the "kernel bypass" benefit, resulting in data-plane throughput drops of up to 75%. Swift aims to provide rapid setup without sacrificing the raw performance of user-space RDMA.
System Design and Methods
Swift's architecture is based on the discovery that roughly 80% of RDMA setup time is spent in user-space, primarily on redundant environment checks and internal function calls that yield static results. Swift addresses this through three core innovations:
- Cache-Optimized libibverbs: Swift utilizes an optimized version of the standard RDMA library (
libibverbs) that identifies and caches "static" internal functions. By replacing repetitive hardware and architecture checks with direct return values, Swift significantly reduces the overhead of initial API calls. - RDMA-Aware Forking: Swift leverages the native
ibv_fork_initcapability, allowing a parent process to pre-establish RDMA connections. Child processes then inherit these ready-to-use communication channels via standard process forking, enabling near-instantaneous communication setup for new tasks. - Serverless Co-design: Integrated into the OpenWhisk framework, Swift manages resources across three distinct startup scenarios via a centralized Orchestrator Table.
Evaluation and Results
The system was evaluated on a testbed featuring 100Gbps Mellanox ConnectX-5 RDMA NICs and Intel Xeon Gold CPUs. Swift was compared against unmodified libibverbs and the kernel-space solution KRCore.
Performance Gains
Swift reduces the latency of the ibv_open_device call from 22.9ms to just 2.18ms, contributing to a total control plane setup time of approximately 2.5ms—a 10x improvement over standard implementations. In "Fork Start" scenarios, the overhead is only 6.5% higher than a baseline with no RDMA setup at all.
Data Plane Efficiency
Unlike kernel-based alternatives, Swift maintains full kernel bypass. This architectural choice allows it to achieve 30.56% to 46.50% higher throughput than KRCore. Furthermore, Swift reduces data transfer latency by 18.55% to 37.21% compared to kernel-sharing methods.
Discussion and Conclusion
Swift demonstrates that the perceived slowness of the RDMA control plane is not a fundamental architectural limitation but rather a result of software bloat in management libraries. By optimizing user-space execution and leveraging process inheritance, Swift provides a portable, high-performance solution that remains compatible across various Linux kernel versions (from 4.15 to 6.2).
Summary updated