In-Storage Domain-Specific Acceleration for Serverless Computing

Rohan Mahapatra, Soroush Ghodrati, Byung Hoon Ahn, Sean Kinzer, Shu-ting Wang, Hanyang Xu, Lavanya Karthikeyan, Hardik Sharma, Amir Yazdanbakhsh, Mohammad Alian, Hadi Esmaeilzadeh

TL;DR

While serverless computing, storage disaggregation, and hardware acceleration are independently transforming modern datacenters, combining them creates a massive data-movement bottleneck that erases acceleration gains. This paper introduces DSCS-Serverless, an execution model that embeds a small, low-power domain-specific accelerator directly inside computational storage drives. By executing serverless functions right where the data lives, it bypasses network overheads and outperforms high-end GPUs while operating within a strict 25W storage power budget.

What Problem Does This Paper Address?

Modern cloud datacenters are being shaped by three major architectural shifts:

  1. Serverless Computing: Developers deploy stateless, ephemeral functions that scale automatically.
  2. Storage Disaggregation: Compute and storage resources are separated into distinct pools over high-speed networks to improve resource utilization.
  3. Domain-Specific Acceleration: Specialized hardware like GPUs, TPUs, and FPGAs handle heavy compute workloads (e.g., machine learning).

Individually, these trends are highly beneficial. However, when combined, they clash. Because serverless functions are stateless, they must fetch inputs and store outputs from remote storage on every single invocation.

Figure 1. This paper devises DSCS-Serverless at the conjunc- tion of three different trends in datacenters: (1) serverless computing in the programming level; (2) storage disaggrega- tioninthesysteminfrastructurelevel;and(3)domain-specific accelerators in the hardware level.

The authors observe that in a disaggregated datacenter, the network and I/O overhead of moving data to a compute node completely overshadows the performance gains of high-end accelerators. As shown in Figure 4, communication accounts for over 55% of the end-to-end runtime on average. According to Amdahl's Law, even an infinitely fast accelerator cannot overcome this data-movement bottleneck.

Figure 4. Runtime latency breakdown for application mod- eled as serverless functions deployed on AWS EC2 with re- mote S3 storage.

Methods

To solve this, the authors propose DSCS-Serverless (Domain-Specific Computational Storage for Serverless). Instead of fetching massive amounts of data from remote storage to a compute node, the system offloads the serverless function directly to a specialized DSCS-Drive where the data resides.

Figure 5. System architecture of DSCS-Serverless. (a) How DSCS-Serverless fits into the datacenter rack infrastructure. (b) The architecture of DSCS-Drive that integrates a DSA next to the flash array.

The key components of their methodology include:

  • In-Storage Microarchitecture: The DSCS-Drive integrates a lightweight, programmable Domain-Specific Accelerator (DSA) next to the flash array controller. The DSA features a Matrix Processing Unit (MPU) for heavy matrix multiplications and a Vector Processing Unit (VPU) for element-wise operations and data pre/post-processing.
  • Strict Power-Constrained Design: Commercial storage drives have a tight Thermal Design Power (TDP) budget of $\le$ 25 Watts, shared between the flash array and compute. The authors performed a Pareto design space exploration across 650+ configurations to find an optimal architecture—settling on a 128×128 systolic array with 4 MB of on-chip scratchpad memory and DDR5 support—drawing just 4.2 Watts for the accelerator itself.
  • Full-Stack Software Integration: They extended the OpenFaaS and Kubernetes serverless stacks. Developers can flag "acceleratable" functions in standard YAML configuration files. A custom OpenCL driver handles direct peer-to-peer (P2P) data transfers over PCIe links, completely bypassing the host CPU's heavy software stack.

Datasets

The authors evaluated their system using eight real-world, latency-critical serverless applications inspired by actual AWS Lambda case studies. Because proprietary cloud models aren't public, they utilized representative state-of-the-art models from Hugging Face:

  1. Credit Risk Assessment: Logistic Regression
  2. Asset Damage Detection: ResNet-50
  3. PPE Detection: YOLOv3
  4. Clinical Analysis: Fully Convolutional Network (FCN)
  5. Content Moderation: EfficientNet
  6. Conversational Chatbot: BERT-Base
  7. Document Translation: GPT-2
  8. Remote Sensing: Vision Transformer

Key Insights and Ideas

  • Less is More: A lightweight, 4.2W in-storage accelerator can significantly outperform a 250W NVIDIA RTX 2080 Ti GPU. The GPU sits underutilized because it spends most of its time waiting for data to arrive over the network.
  • ASICs Beat FPGAs and CPUs in Storage: Current computational storage trends favor embedding general-purpose ARM cores or FPGAs. However, ARM cores lack the compute density for modern machine learning, and FPGAs suffer from high static power dissipation. A domain-specific ASIC is uniquely suited to maximize throughput within the strict 25W storage power envelope.
  • Unlocking Batching for Serverless: Serverless functions typically process requests with a batch size of one, which severely underutilizes traditional GPUs. Near-storage acceleration allows efficient batching (up to 64) because it amortizes the cost of loading large model weights (like LLMs) directly from flash memory without network penalties.

Key Results

Compared to traditional and conventional near-storage baselines, DSCS-Serverless demonstrated substantial improvements:

  • Vs. Traditional GPU (RTX 2080 Ti): Achieved a 2.7$\times$ end-to-end application speedup despite the GPU having vastly more raw compute power.
  • Vs. Near-Storage ARM Cores: Provided a 3.7$\times$ speedup, a 4.3$\times$ energy reduction, and 3.2$\times$ better cost efficiency.
  • Vs. Near-Storage FPGAs (Samsung SmartSSD): Delivered a 1.7$\times$ speedup, a 1.9$\times$ energy reduction, and 2.3$\times$ better cost efficiency.
  • Robustness to Tail Latency: Because it eliminates network hops, DSCS-Serverless proved highly robust against the long-tail latencies typical of disaggregated cloud storage, providing up to a 5.0$\times$ speedup at the 99th percentile.

Limitations and Future Work

  • Cold Start Penalties: While P2P flash-to-accelerator transfers are fast, loading massive machine learning models into the DSA memory for the first time still introduces a "cold start" latency penalty, reducing the initial speedup from 3.6$\times$ to 2.6$\times$.
  • Rigid Function Chaining: If a serverless pipeline contains a mix of acceleratable and non-acceleratable functions, data must still be shipped back to a standard compute node CPU, re-introducing network overhead for those specific stages.
  • Future Directions: The authors note that developing more sophisticated, DAG-aware (Directed Acyclic Graph) scheduling algorithms could help optimize complex, multi-function serverless workflows to better exploit data locality.

Summary updated

BibTeX
@inproceedings{mahapatra2024storage,
  author = {Rohan Mahapatra and Soroush Ghodrati and Byung Hoon Ahn and Sean Kinzer and Shu-ting Wang and Hanyang Xu and Lavanya Karthikeyan and Hardik Sharma and Amir Yazdanbakhsh and Mohammad Alian and Hadi Esmaeilzadeh},
  title = {{In-Storage Domain-Specific Acceleration for Serverless Computing}},
  booktitle = {ASPLOS},
  year = {2024},
  doi = {10.1145/3620665.3640413},
}
Figure