TL;DR
This paper introduces DSCS-Serverless, a novel approach to accelerate serverless functions by embedding domain-specific accelerators directly into computational storage devices. This design tackles the significant overhead of data movement in disaggregated datacenters, achieving substantial performance, energy, and cost improvements over traditional serverless architectures.
What Problem Does This Paper Address?
The paper addresses a critical challenge at the intersection of three major trends in modern datacenters: the rise of serverless computing, the disaggregation of storage, and the increasing use of domain-specific accelerators (DSAs). While each trend offers benefits, their combination creates a bottleneck. Serverless functions, by nature, are stateless and frequently need to access data from disaggregated storage. This data movement, especially over networks, introduces significant latency and overhead, often overshadowing the gains from accelerators placed on separate compute nodes. The authors observe that current acceleration strategies, focused on compute efficiency, are limited by this data access bottleneck. They propose a solution to bring computation closer to the data, specifically within the storage itself, to mitigate this overhead.
Methods
The core of the paper is the DSCS-Serverless execution model. This model integrates a programmable, domain-specific accelerator (DSA) directly into a computational storage drive (DSCS-Drive). The DSA is designed to be power-efficient and programmable to cater to a range of applications within a specific domain (in this paper, machine learning/neural networks).
Key methodological contributions include:
- In-Storage Acceleration: Instead of moving data to a separate compute node with an accelerator, DSCS-Serverless moves the acceleration capability to the storage device where the data resides.
- Domain-Specific Architecture (DSA): The paper details the design of a DSA optimized for ML/DNN workloads, featuring a Matrix Processing Unit (MPU) and a Vector Processing Unit (VPU) to handle various operations like matrix multiplication, element-wise operations, and data transformations.
- Design-Space Exploration: To meet the stringent power constraints of storage devices (e.g., 25 Watts), the authors perform a comprehensive design-space exploration to identify optimal DSA configurations balancing performance, power, and area.
- System Integration: A software stack is developed to seamlessly integrate DSCS-Serverless with existing serverless frameworks (like OpenFaaS on Kubernetes). This includes a custom OpenCL device driver and modifications to the deployment configuration to identify acceleratable functions.
- Peer-to-Peer (P2P) Data Transfer: DSCS-Serverless utilizes P2P links to transfer data directly between the flash array and the DSA within the DSCS-Drive, bypassing the host CPU and network for faster data access.
Datasets
The paper does not introduce new datasets for training. Instead, it evaluates its proposed system using eight real-world latency-critical machine learning/neural network applications, including large language models (LLMs). These applications are inspired by AWS Lambda case studies and are representative of common serverless pipelines. For benchmarks where exact models are not public, they use representative state-of-the-art inference models from Hugging Face.
Key Insights and Ideas
- Data movement is the primary bottleneck: The paper strongly emphasizes that in disaggregated serverless environments, the overhead of accessing data from remote storage significantly limits the benefits of accelerators. This is a crucial insight that drives the proposed solution.
- "Near-storage" acceleration is more effective than "high-end" remote acceleration for serverless: A relatively small, power-efficient DSA embedded in storage can outperform a high-power GPU with remote storage due to reduced data movement.
- Power constraints are paramount: Designing accelerators for storage requires a different approach, prioritizing power efficiency over raw computational power, which is a significant departure from traditional compute accelerators.
- Domain-specific acceleration is key: Tailoring the accelerator to the specific computational patterns of serverless functions (especially ML/DNN) unlocks significant performance gains that general-purpose accelerators might miss.
- Serverless specific challenges require tailored solutions: Features like fail-over, function chaining, and cold starts need to be considered and supported within the DSCS-Serverless framework.
Key Results
- Performance: DSCS-Serverless achieves an average speedup of 3.6x over a baseline CPU system and 2.7x over a high-end GPU with remote storage across the evaluated benchmarks. It also outperforms conventional in-storage solutions using ARM CPUs (3.7x speedup) and FPGAs (1.7x speedup).
- Energy Efficiency: DSCS-Serverless provides an average system energy reduction of 3.5x compared to the baseline CPU system and 1.9x reduction compared to a competitive in-storage FPGA solution.
- Cost Efficiency: The system demonstrates a 3.4x higher cost efficiency compared to the baseline CPU system, attributed to its lower energy consumption and improved throughput.
- Robustness: DSCS-Serverless is shown to be robust to network and I/O tail latency, with a 5.0x speedup for the 99th percentile latency.
- Scalability: At scale, DSCS-Serverless achieves lower wall-clock latency and higher throughput compared to the baseline CPU system, processing more requests per second per instance.
Limitations and Future Work
- Domain Specificity: The current DSA is designed for ML/DNN workloads. While the framework is extensible, optimizing for other domains would require new DSA designs.
- Cold Starts: DSCS-Serverless incurs similar cold start latencies as traditional serverless platforms when pulling container images and loading models. While the paper suggests preemptive loading and P2P transfer to mitigate this for subsequent invocations, the initial cold start remains a challenge.
- Function Partitioning: The developer is responsible for identifying which functions are acceleratable. Automating this partitioning could further enhance usability.
- Future Work: The authors suggest exploring optimized scheduling policies for DSCS-Serverless, considering factors like function criticality and DAG structure. They also mention applying existing scheduling optimizations to this new model and investigating its potential for other application domains.
Summary updated