MuxFlow:大规模生产深度学习集群中高效安全的GPU共享
MuxFlow: Efficient and Safe GPU Sharing in Large-Scale Production Deep Learning Clusters
摘要:
大规模GPU集群被广泛用于加速延迟关键型(在线)和尽力而为型(离线)深度学习(DL)工作负载。然而,大多数DL集群要么将每个GPU专用于一个工作负载,要么及时共享工作负载,导致GPU资源利用率非常低。我们提出了MuxFlow,第一个生产集群系统,支持DL工作负载的高效和安全的空间共享。NVIDIA MPS提供了在广泛部署的NVIDIA GPU上共享空间中的多个工作负载的机会,但它无法保证在线工作负载的性能和安全性。MuxFlow为内存和计算引入了两级保护机制,以保证在线工作负载的性能。基于我们的实际错误分析,我们设计了一个混合的错误处理机制,以保证在线工作负载的安全性。MuxFlow进一步提出了动态流式多处理器(SM)分配和基于匹配的调度,以提高离线工作负载的效率。MuxFlow已经部署在CompanyX的集群中,拥有超过20,000个GPU。部署结果表明,MuxFlow将GPU利用率从26 $\%$大幅提高到76 $\%$,SM活动从16 $\%$提高到33 $\%$,GPU内存从42 $\%$提高到48 $\%$。
英文摘要:
Large-scale GPU clusters are widely-used to speed up both latency-critical (online) and best-effort (offline) deep learning (DL) workloads. However, most DL clusters either dedicate each GPU to one workload or share workloads in time, leading to very low GPU resource utilization. We present MuxFlow, the first production cluster system that supports efficient and safe space-sharing for DL workloads. NVIDIA MPS provides an opportunity to share multiple workloads in space on widely-deployed NVIDIA GPUs, but it cannot guarantee the performance and safety of online workloads. MuxFlow introduces a two-level protection mechanism for memory and computation to guarantee the performance of online workloads. Based on our practical error analysis, we design a mixed error-handling mechanism to guarantee the safety of online workloads. MuxFlow further proposes dynamic streaming multiprocessor (SM) allocation and matching-based scheduling to improve the efficiency of offline workloads. MuxFlow has been deployed at CompanyX's clusters with more than 20,000 GPUs. The deployment results indicate that MuxFlow substantially improves the GPU utilization from 26$\%$ to 76$\%$, SM activity from 16$\%$ to 33$\%$, and GPU memory from 42$\%$ to 48$\%$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。