Introduction
Serverless computing has emerged as a popular paradigm for deploying Machine Learning (ML) inference services due to its scalability and pay-as-you-go pricing. These services are often structured as complex workflows—Directed Acyclic Graphs (DAGs) consisting of multiple functions, some executing on CPUs (cFuncs) and others on GPUs (gFuncs). However, as these workflows become more sophisticated, a critical performance barrier has emerged: the massive I/O overhead associated with passing data between functions.
FaaSTube is a high-performance data-passing framework designed specifically to eliminate these bottlenecks. By shifting from a traditional "host-oriented" transfer model to a "GPU-oriented" approach, FaaSTube achieves significant reductions in end-to-end latency and substantial boosts in system throughput.
The Bottleneck: Host-Oriented Transfers
In current serverless platforms, data passing is typically "host-oriented." When a GPU function completes its task, it must copy the resulting data back to the host (CPU) memory or to external storage. The subsequent function in the workflow then fetches this data from the host or storage to begin its own processing.
This approach creates a severe bottleneck. PCIe links, while fast, have significantly lower bandwidth than the internal interconnects within a GPU or between GPUs (like NVLink). Furthermore, the constant movement of data between device memory and host memory introduces high latency. Research conducted by the authors reveals that inter-function data passing can account for up to 92% of total end-to-end latency in typical ML inference workflows.
As shown in the figure above, computation (the blue segment) often represents only a small fraction of the total execution time, with the majority consumed by Host-to-GPU and GPU-to-GPU data transfers.
The FaaSTube Solution: A GPU-Oriented Architecture
FaaSTube addresses this by introducing a "GPU-oriented" architecture. Instead of treating the GPU server as a collection of isolated processors connected to a central host, FaaSTube views the entire GPU server as a high-speed, routable network.
In the GPU-oriented model, data is kept on the GPU whenever possible. Intermediate results are passed directly between GPUs using high-speed links like NVLink or optimized PCIe paths, bypassing the host memory entirely. This paradigm shift allows the system to exploit the full bandwidth of modern hardware topologies.
Key Innovations
FaaSTube implements several novel mechanisms to realize this vision:
- Unified Data Passing Interface (UI): FaaSTube provides a simple
storeandfetchAPI. This abstracts away the underlying physical complexity, allowing developers to write code without worrying about whether data is moving between GPUs, nodes, or to the host. - Topology-aware NVLink Scheduling: Rather than just using a single direct link, FaaSTube treats the GPU topology as a graph. It can route data through multiple parallel NVLink paths simultaneously (e.g., routing from GPU1 to GPU4 via intermediate GPUs), effectively multiplying the available point-to-point bandwidth.
- SLO-aware PCIe Scheduling: PCIe bandwidth is treated as a shared network resource. FaaSTube uses rate control to ensure that latency-sensitive "foreground" functions meet their Service Level Objectives (SLOs) without being delayed by data-intensive "background" tasks.
- Elastic GPU Data Store with Queue-aware Migration: Traditional Least Recently Used (LRU) eviction policies are often counter-productive in workflows. In a DAG, the "oldest" data (the output of the first function) is often exactly what the next function needs. FaaSTube uses a queue-aware policy: it examines the function request queue to identify which data will be needed soon, keeping "hot" intermediate data in VRAM and migrating "cold" data to the host.
Evaluation and Results
The authors evaluated FaaSTube using seven real-world inference workflows, including traffic monitoring (YOLO + ResNet), autonomous driving (denoising + segmentation), and video/image editing. They used Azure Function production traces to simulate realistic, bursty request patterns.
The results demonstrate the transformative impact of the GPU-oriented approach:
- Latency Reduction: End-to-end latency was reduced by 86%–90% compared to state-of-the-art baselines like INFless+.
- Throughput Gains: FaaSTube achieved 2.4x to 12x higher throughput, with the most significant gains observed in data-heavy media workflows.
- Efficiency: The overhead of data movement was slashed by up to 98%.
- Memory Management: The elastic memory pool prevented the typical 4x memory bloat associated with static allocation, ensuring high performance even during workload bursts.
Conclusion
FaaSTube demonstrates that the primary bottleneck in serverless GPU computing is not computation itself, but the movement of data. By treating the GPU server as a high-speed network and implementing topology-aware scheduling and queue-aware memory management, FaaSTube unlocks the true potential of modern GPU hardware for serverless workflows. Future work will look into further optimizing inter-node transfers via GPU-Direct RDMA and exploring spatial-sharing models like NVIDIA's Multi-Instance GPU (MIG).
Summary updated