ESG: Pipeline-Conscious Efficient Scheduling of DNN Workflows on Serverless Platforms with Shareable GPUs

Xinning Hui, Yuanchao Xu, Zhishan Guo, Xipeng Shen · DOI

Introduction

Serverless computing has revolutionized cloud development by offering automated scaling and a pay-as-you-go billing model. However, this paradigm remains largely "CPU-centric," presenting significant challenges for Deep Learning (DL) workloads that require GPU acceleration. Current serverless platforms often treat GPUs as monolithic, unshareable resources, leading to massive under-utilization and inflated costs. While recent advancements in GPU sharing (e.g., NVIDIA MPS or MIG) and task batching offer a path forward, they introduce a "configuration search space" explosion. For a standard 7-function pipeline, the number of possible resource configurations can jump from 78,000 to over 476 trillion, making traditional scheduling methods obsolete.

The Challenge: Complexity and Pipeline Fragility

Existing serverless schedulers face two primary hurdles when handling modern DNN workflows. First, the sheer volume of configuration choices—balancing batch sizes, vCPU counts, and vGPU partitions—overwhelms standard optimization algorithms. Second, most schedulers ignore the inter-dependencies within a function pipeline. In a multi-stage workflow (e.g., image deblurring followed by classification), a delay in an early stage directly impacts the deadline of subsequent stages. Static, offline schedules often fail in production because they cannot adapt to the dynamic nature of cloud environments, such as "cold starts" or network jitter. Research indicates that 59%–86% of configurations chosen by offline models fail to meet Service Level Objectives (SLOs) in real-world scenarios.

The ESG Framework

To address these challenges, we introduce ESG (Efficient Serverless Scheduling for Sharable GPUs), a system designed to optimize for GPU sharing, task batching, and pipeline dependencies simultaneously. ESG employs a three-tiered approach to manage complexity and ensure reliability:

1. ESG_1Q: The Planner

To navigate the trillion-scale search space, ESG_1Q treats configuration selection as a path-finding problem in a massive graph. It utilizes A*-search enhanced by a novel "dual-blade pruning" technique. This method calculates mathematical lower bounds for both execution time and infrastructure cost. If a potential path is guaranteed to exceed the time budget or cost limit, the algorithm prunes it immediately, allowing ESG to reach near-optimal decisions in under 10ms.

2. Dominator-based SLO Distribution

For complex Directed Acyclic Graphs (DAGs), ESG uses compiler-inspired techniques to group functions. It then intelligently distributes the total "time budget" (the SLO) across these groups. This ensures that the scheduler remains scalable and that each segment of the pipeline has a realistic deadline based on its relative computational weight.

3. ESG_Dispatch: The Executor

Once a plan is established, ESG_Dispatch maps tasks to specific worker nodes. This component is "locality-sensitive," prioritizing the placement of functions from the same pipeline on the same physical machine to minimize data transfer overhead. Crucially, ESG is adaptive; it revisits and adjusts the schedule before every function execution to account for real-time performance variations.

Experimental Evaluation

ESG was evaluated in an emulated OpenWhisk environment using hardware-validated performance data from AMD EPYC CPUs and NVIDIA A100 GPUs. The study utilized six popular DNN models—SRGAN, DeepLabV3, DeblurGAN, ResNet50, U2Net, and MiDaS—organized into four realistic application workflows. Real-world traffic patterns were simulated using Azure Function traces.

Key Results

ESG was compared against state-of-the-art competitors, including INFless, FaST-GShare, Orion, and Aquatope. The results demonstrate significant improvements across all metrics:

  • Reliability: ESG achieved 61%–80% higher SLO hit rates compared to existing methods. In scenarios with strict deadlines, it outperformed competitors by 46%–80%.
  • Cost Efficiency: By avoiding over-provisioning and optimizing GPU sharing, ESG reduced infrastructure costs by 47% to 187% compared to INFless and FaST-GShare.
  • Latency Management: Under heavy workloads, ESG maintained end-to-end latencies within SLO limits, whereas competing schedulers often saw latencies spike by an order of magnitude.

Conclusion and Future Work

ESG demonstrates that pipeline-conscious scheduling is essential for the efficient execution of DNN workflows on serverless platforms. By combining A*-search with dual-blade pruning and adaptive dispatching, ESG tames the complexity of shareable GPUs. Future work will focus on reducing the overhead of initial performance profiling and exploring dynamic MIG repartitioning to further enhance resource flexibility in production environments.

Summary updated

BibTeX
@inproceedings{hui2024esg,
  author = {Xinning Hui and Yuanchao Xu and Zhishan Guo and Xipeng Shen},
  title = {{ESG: Pipeline-Conscious Efficient Scheduling of DNN Workflows on Serverless Platforms with Shareable GPUs}},
  booktitle = {HPDC},
  year = {2024},
  doi = {10.1145/3625549.3658657},
}
Figure