Introduction
The computing landscape is currently divided between High-Performance Computing (HPC) clusters and Serverless (Function-as-a-Service) platforms. While HPC clusters provide the power necessary for large-scale simulations, they often suffer from static resource allocation, leading to significant hardware underutilization. Conversely, serverless computing offers extreme elasticity but is plagued by high invocation overheads—often in the tens or hundreds of milliseconds—due to centralized scheduling and slow TCP/IP stacks. This latency makes traditional serverless platforms unsuitable for HPC tasks that require microsecond-level coordination.
This paper introduces rFaaS, a high-performance serverless platform designed to bridge this gap. By leveraging Remote Direct Memory Access (RDMA) and a novel "lease" mechanism, rFaaS reduces function invocation overhead to microseconds, enabling serverless offloading for latency-sensitive parallel applications.
System Architecture and Methods
The rFaaS architecture reimagines the serverless invocation path to eliminate centralized bottlenecks. The system introduces three primary innovations:
- RDMA-Accelerated Transport: rFaaS utilizes RDMA to allow clients to write function headers and payloads directly into the memory of remote executors. This bypasses the OS kernel and CPU, drastically reducing latency and processing overhead.
- Allocation Leases: To avoid the bottleneck of a centralized scheduler, rFaaS introduces "leases." A client requests a lease on a set of remote executors from the Resource Manager. For the duration of that lease, the client can bypass the control plane and invoke functions directly on those executors.
- Hot Invocations: rFaaS defines a "hot" invocation type that uses active polling. The executor thread constantly checks its memory for new requests, allowing for near-zero-copy execution with sub-microsecond overhead.
Performance Evaluation
The platform was evaluated on a cluster equipped with 100 Gb/s RoCEv2 networks using microbenchmarks and real-world HPC applications, including the Black-Scholes financial solver and Jacobi linear solvers.
Microbenchmark results show that rFaaS invocations are between 695x and 3,692x faster than AWS Lambda for small payloads. As illustrated in the performance data, the "hot" invocation path adds only approximately 300 nanoseconds of overhead on top of raw network transmission time, achieving round-trip times (RTT) as low as 5.3 microseconds.
In terms of throughput, rFaaS reaches a bandwidth of 12 GB/s, effectively saturating the 100 Gb/s network link. When applied to hybrid MPI + rFaaS workloads, such as matrix multiplication, the system achieved speedups of up to 1.97x by effectively scavenging idle cluster resources.
Conclusion and Future Work
rFaaS demonstrates that serverless computing can be a viable tool for High-Performance Computing by optimizing the communication path. By decentralizing scheduling through leases and accelerating transport with RDMA, rFaaS achieves the microsecond-level latencies required for tightly coupled parallel tasks. Future work will focus on improving resource rejection handling—as the decentralized model currently rejects requests when executors are busy—and expanding language support beyond C++ and Rust to the broader Python-based serverless ecosystem.
Summary updated