GMM:面向可编程XPU的通用操作系统内存管理
GMM: Generalized OS Memory Management for Programmable XPUs
AI总结:
针对XPU内存管理碎片化问题,提出通用内存管理框架GMM,实现统一MM子系统,其驱动程序性能与厂商驱动相当,可降低内存利用率并提升推理服务切换延迟。
摘要:
自AI热潮以来,快速发展的可编程XPU设备利用高带宽本地内存加速从主机CPU卸载的特定领域任务,导致专有驱动程序中实现的XPU内存管理系统大量涌现。然而,现有的操作系统核心内存管理(MM)仍然缺乏高级软件抽象,将XPU排除在利用操作系统高级内存功能之外。XPU制造商必须重新实现独立的XPU MM驱动程序,加剧了碎片化的XPU软件生态系统。本文提出GMM,即通用内存管理,为XPU提供统一的MM子系统。通过添加显式逻辑映射抽象,GMM实现了三点功能:1)为XPU提供通用的NUMA感知内存API;2)允许轻松委托XPU MM;3)支持共享高级XPU内存功能。针对两个代表性XPU制造商Nvidia和Huawei实现了轻量级XPU MM驱动程序。与供应商提供的驱动程序相比,基于GMM的驱动程序均获得了有竞争力的性能,GMM的故障驱动页面迁移吞吐量最高提升了41%。开展了两个实际工业案例研究,其中GMM将XPU内存利用率降低了10%,推理服务切换延迟最高提升了22.6倍。
英文摘要:
Since the AI boom, the fast evolving programmable XPU devices utilize high-bandwidth local memory to accelerate domain-specific tasks offloaded from the host CPU, resulting in a proliferation of XPU memory management systems implemented in proprietary drivers. However, existing OS core memory management (MM) continues to lack a high-level software abstraction, excluding the XPUs from leveraging OS advanced memory features. The XPU manufacturers have to reimplement independent XPU MM drivers, exacerbating the fragmented XPU software ecosystem. This paper presents GMM, generalized memory management that provides unified MM subsystems for XPUs. By adding an explicit logical mapping abstraction, GMM 1) provides universal NUMA-aware memory API for XPUs; 2) allows ease of XPU MM delegation; 3) enables sharing of advanced XPU memory features. Lightweight XPU MM drivers are implemented for two representative XPU manufacturers, Nvidia and Huawei. Both GMM-based drivers obtain competitive performance compared with their vendor-supplied drivers. GMM also obtains up to 41% higher fault-driven page migration throughput. Two real-world industrial case studies are exercised, where GMM reduces XPU memory utilization by 10% with up to 22.6x faster inference serving switch latency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。