LithOS:一种用于GPU上高效机器学习操作系统
LithOS: An Operating System for Efficient Machine Learning on GPUs
AI总结:
LithOS提出一种GPU操作系统,通过TPC调度、内核原子化、硬件规模调整和功耗管理机制,实现高效细粒度GPU资源管理,显著降低尾部延迟并提升吞吐量,节省GPU容量和能耗。
摘要:
数据中心中机器学习(ML)对GPU的需求激增,使得高效利用GPU变得至关重要。然而,在优化资源使用的同时满足ML模型的多样化需求颇具挑战。为了实现透明、细粒度的GPU管理,在保持强隔离的同时最大化利用率和能效,需要采用操作系统(OS)方法。本文介绍了LithOS,这是迈向GPU OS的第一步。LithOS包含以下用于高效GPU资源管理的新抽象和机制:(i)一种新颖的TPC调度器,支持在单个TPC粒度上进行空间调度,实现工作负载之间高效的TPC窃取;(ii)透明的内核原子化,以减少队头阻塞并在执行过程中实现动态资源重新分配;(iii)一种轻量级的硬件规模调整机制,用于确定每个原子所需的最小TPC资源;(iv)一种透明的功耗管理机制,根据进行中的工作行为降低功耗。我们使用Rust实现LithOS,并在广泛的ML环境中评估其性能,与NVIDIA和先前研究的最新解决方案进行比较。对于推理堆叠,与MPS相比,LithOS将尾部延迟降低了13倍;与最佳SotA相比,它将尾部延迟降低了3倍,同时将聚合吞吐量提高了1.6倍。在混合推理-训练堆叠中,与MPS相比,LithOS将尾部延迟降低了4.7倍;与最佳SotA相比,它将尾部延迟降低了1.18倍,同时将聚合吞吐量提高了1.35倍。最后,在性能损失低于4%的情况下,LithOS的规模调整平均节省了四分之一的GPU容量,而在7%的性能损失下,其功耗管理节省了四分之一的GPU能耗。总体而言,LithOS提高了GPU效率,为未来GPU上的OS研究奠定了基础。
英文摘要:
The surging demand for GPUs in datacenters for machine learning (ML) has made efficient GPU utilization crucial. However, meeting the diverse needs of ML models while optimizing resource usage is challenging. To enable transparent, fine-grained GPU management that maximizes utilization and energy efficiency while maintaining strong isolation, an operating system (OS) approach is needed. This paper introduces LithOS, a first step toward a GPU OS. LithOS includes the following new abstractions and mechanisms for efficient GPU resource management: (i) a novel TPC Scheduler that supports spatial scheduling at the granularity of individual TPCs, unlocking efficient TPC stealing between workloads; (ii) transparent kernel atomization to reduce head-of-line blocking and enable dynamic resource reallocation mid-execution; (iii) a lightweight hardware right-sizing mechanism that determines the minimal TPC resources needed per atom; and (iv) a transparent power management mechanism that reduces power consumption based on in-flight work behavior. We implement LithOS in Rust and evaluate its performance across extensive ML environments, comparing it to state-of-the-art solutions from NVIDIA and prior research. For inference stacking, LithOS reduces tail latencies by 13x compared to MPS; compared to the best SotA, it reduces tail latencies by 3x while improving aggregate throughput by 1.6x. In hybrid inference-training stacking, LithOS reduces tail latencies by 4.7x compared to MPS; compared to the best SotA, it reduces tail latencies 1.18x while improving aggregate throughput by 1.35x. Finally, for a modest performance hit under 4%, LithOS's right-sizing provides a quarter of GPU capacity savings on average, while for a 7% hit, its power management yields a quarter of a GPU's energy savings. Overall, LithOS increases GPU efficiency, establishing a foundation for future OS research on GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。