arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.13996cs.DCcs.ARcs.PF
收藏

SGDRC:面向NVIDIA GPU上并发DNN推理的软件定义动态资源控制

SGDRC: Software-Defined Dynamic Resource Control for Concurrent DNN Inference on NVIDIA GPUs

Yongkang Zhang, Haoxuan Yu, Chenxia Han, Cheng Wang, Baotong Lu, Yunzhe Li, Zhifeng Jiang, Yang Li, Xiaowen Chu, Huaicheng Li

AI总结:

针对GPU上并发DNN推理的资源分配难题,提出软件定义的SGDRC,通过逆向工程与缓存着色消除VRAM冲突,动态分配带宽和计算单元,提升SLO达标率与吞吐量。

摘要:

云服务提供商通常在同一个GPU上大量混合部署高优先级、对延迟敏感(LS)和低优先级、尽力而为(BE)的DNN推理服务,以提高数据中心的资源利用率。在关键的共享GPU资源中,关于计算单元和VRAM带宽的动态分配的分析非常有限,主要原因有两个:(1)原生的GPU资源管理解决方案要么是硬件特定的,要么无法将资源动态分配给不同租户,或者两者兼而有之;(2)NVIDIA不提供用于VRAM带宽分配的接口,且软件栈和VRAM通道架构是黑盒,这两者都限制了软件层面的资源管理。这些因素促使先前的工作要么设计保守的共享策略(不利于吞吐量),要么设计仅适用于少数GPU型号的静态资源分区。为弥补这一差距,本文提出了SGDRC,一种完全软件定义的动态VRAM带宽和计算单元管理解决方案,用于并发DNN推理服务。SGDRC旨在保证服务质量、最大化整体吞吐量,并提供对NVIDIA GPU的通用适用性。SGDRC首先通过全面的逆向工程揭示了NVIDIA GPU的通用VRAM通道哈希映射架构,并使用软件级缓存着色消除VRAM通道冲突。SGDRC应用双峰张量和潮汐SM掩码来动态分配VRAM带宽和计算单元,并基于离线分析指导资源分配。我们在两个NVIDIA GPU上使用真实工作负载评估了11个主流DNN。结果表明,与最先进的GPU共享解决方案相比,SGDRC实现了最高的SLO达标率(平均99.0%),并将整体吞吐量提高了最多1.47倍,BE作业吞吐量提高了最多2.36倍。

英文摘要:

Cloud service providers heavily colocate high-priority, latency-sensitive (LS), and low-priority, best-effort (BE) DNN inference services on the same GPU to improve resource utilization in data centers. Among the critical shared GPU resources, there has been very limited analysis on the dynamic allocation of compute units and VRAM bandwidth, mainly for two reasons: (1) The native GPU resource management solutions are either hardware-specific, or unable to dynamically allocate resources to different tenants, or both; (2) NVIDIA doesn't expose interfaces for VRAM bandwidth allocation, and the software stack and VRAM channel architectures are black-box, both of which limit the software-level resource management. These drive prior work to design either conservative sharing policies detrimental to throughput, or static resource partitioning only applicable to a few GPU models. To bridge this gap, this paper proposes SGDRC, a fully software-defined dynamic VRAM bandwidth and compute unit management solution for concurrent DNN inference services. SGDRC aims at guaranteeing service quality, maximizing the overall throughput, and providing general applicability to NVIDIA GPUs. SGDRC first reveals a general VRAM channel hash mapping architecture of NVIDIA GPUs through comprehensive reverse engineering and eliminates VRAM channel conflicts using software-level cache coloring. SGDRC applies bimodal tensors and tidal SM masking to dynamically allocate VRAM bandwidth and compute units, and guides the allocation of resources based on offline profiling. We evaluate 11 mainstream DNNs with real-world workloads on two NVIDIA GPUs. The results show that compared with the state-of-the-art GPU sharing solutions, SGDRC achieves the highest SLO attainment rates (99.0% on average), and improves overall throughput by up to 1.47x and BE job throughput by up to 2.36x.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑