FaST-GShare:在无服务器计算中实现深度学习推理的高效时空GPU共享
FaST-GShare: Enabling Efficient Spatio-Temporal GPU Sharing in Serverless Computing for Deep Learning Inference
AI总结:
FaST-GShare提出一种面向FaaS的时空GPU共享架构,通过资源隔离、性能分析和启发式调度,在保证SLO的同时将吞吐量提升3.15倍,GPU利用率提升1.34倍。
摘要:
无服务器计算(FaaS)因其部署简便和按需付费的优势,已被广泛用于深度学习(DL)推理。然而,现有的FaaS平台在DL推理中对GPU的使用较为粗放,未考虑时空资源的多路复用和隔离,导致GPU利用率严重不足、使用成本高昂以及SLO(服务级别目标)违规。因此,迫切需要一种高效且SLO感知的GPU共享机制,以支持成本效益高的DL推理。本文提出了FaST-GShare,一种面向FaaS的高效时空GPU共享架构,用于深度学习推理。在该架构中,我们引入了FaST-Manager来限制和隔离GPU多路复用所需的时空资源。为了实现函数性能,我们提出了自动且灵活的FaST-Profiler,用于在不同资源分配下分析函数吞吐量。基于性能分析数据和隔离机制,我们引入了FaST-Scheduler,通过启发式自动缩放和高效资源分配来保证函数的SLO。同时,FaST-Scheduler通过高效的GPU节点选择来调度函数,以最大化GPU使用率。此外,利用模型共享来缓解内存争用。我们在OpenFaaS平台上的原型实现以及在基于MLPerf的基准上的实验证明,FaST-GShare能够确保资源隔离和函数SLO。与时间共享机制相比,FaST-GShare平均可将吞吐量提高3.15倍,GPU利用率提高1.34倍,SM(流式多处理器)占用率提高3.13倍。
英文摘要:
Serverless computing (FaaS) has been extensively utilized for deep learning (DL) inference due to the ease of deployment and pay-per-use benefits. However, existing FaaS platforms utilize GPUs in a coarse manner for DL inferences, without taking into account spatio-temporal resource multiplexing and isolation, which results in severe GPU under-utilization, high usage expenses, and SLO (Service Level Objectives) violation. There is an imperative need to enable an efficient and SLO-aware GPU-sharing mechanism in serverless computing to facilitate cost-effective DL inferences. In this paper, we propose \textbf{FaST-GShare}, an efficient \textit{\textbf{Fa}aS-oriented \textbf{S}patio-\textbf{T}emporal \textbf{G}PU \textbf{Sharing}} architecture for deep learning inferences. In the architecture, we introduce the FaST-Manager to limit and isolate spatio-temporal resources for GPU multiplexing. In order to realize function performance, the automatic and flexible FaST-Profiler is proposed to profile function throughput under various resource allocations. Based on the profiling data and the isolation mechanism, we introduce the FaST-Scheduler with heuristic auto-scaling and efficient resource allocation to guarantee function SLOs. Meanwhile, FaST-Scheduler schedules function with efficient GPU node selection to maximize GPU usage. Furthermore, model sharing is exploited to mitigate memory contention. Our prototype implementation on the OpenFaaS platform and experiments on MLPerf-based benchmark prove that FaST-GShare can ensure resource isolation and function SLOs. Compared to the time sharing mechanism, FaST-GShare can improve throughput by 3.15x, GPU utilization by 1.34x, and SM (Streaming Multiprocessor) occupancy by 3.13x on average.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。