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

GPUVM:GPU驱动的统一虚拟内存

GPUVM: GPU-driven Unified Virtual Memory

Nurlan Nazaraliyev, Elaheh Sadredini, Nael Abu-Ghazaleh

AI总结:

本文提出GPUVM,一种利用RDMA网络设备构建无需CPU/OS参与的GPU驱动虚拟内存系统,通过GPU线程管理按需分页与迁移,对延迟敏感应用性能比UVM提升高达4倍。

摘要:

图形处理单元(GPU)利用大规模并行性和高内存带宽来支持高性能计算应用,如多媒体渲染、加密货币挖矿、深度学习和自然语言处理。这些应用所需的模型和数据集规模日益增大,目前挑战了单个GPU的内存容量,导致显著的性能开销。为解决此问题,程序员必须对数据进行分区并手动在GPU内外传输数据。这种方法要求程序员仔细调优其应用,并且对于具有不规则访问模式的工作负载(如深度学习、推荐系统和图应用)可能不切实际。为简化可编程性,可以使用诸如统一虚拟内存(UVM)之类的编程抽象,在整个系统上创建虚拟统一内存空间,并在访问数据时按需透明地移动数据。然而,UVM带来了操作系统参与的额外开销以及因生成大量传输请求而导致的低效,尤其是在GPU内存超订时。本文提出GPUVM,一种GPU内存管理系统,利用支持RDMA的网络设备构建虚拟内存系统,无需CPU/OS参与。GPUVM为GPU应用启用按需分页,并依赖GPU线程进行内存管理和页面迁移。由于CPU芯片组不支持GPU驱动的内存管理,我们使用网络接口卡来促进从/向GPU的透明页面迁移。对于延迟受限的应用,GPUVM实现了比UVM高达4倍的性能提升,同时提供了可访问的编程抽象,无需用户直接管理内存传输。

英文摘要:

Graphics Processing Units (GPUs) leverage massive parallelism and large memory bandwidth to support high-performance computing applications, such as multimedia rendering, crypto-mining, deep learning, and natural language processing. These applications require models and datasets that are getting bigger in size and currently challenge the memory capacity of a single GPU, causing substantial performance overheads. To address this problem, a programmer has to partition the data and manually transfer data in and out of the GPU. This approach requires programmers to carefully tune their applications and can be impractical for workloads with irregular access patterns, such as deep learning, recommender systems, and graph applications. To ease programmability, programming abstractions such as unified virtual memory (UVM) can be used, creating a virtually unified memory space across the whole system and transparently moving the data on demand as it is accessed. However, UVM brings in the overhead of the OS involvement and inefficiencies due to generating many transfer requests especially when the GPU memory is oversubscribed. This paper proposes GPUVM, a GPU memory management system that uses an RDMA-capable network device to construct a virtual memory system without involving the CPU/OS. GPUVM enables on-demand paging for GPU applications and relies on GPU threads for memory management and page migration. Since CPU chipsets do not support GPU-driven memory management, we use a network interface card to facilitate transparent page migration from/to the GPU. GPUVM achieves performance up to 4x higher than UVM for latency-bound applications while providing accessible programming abstractions that do not require the users to manage memory transfers directly.

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

↑