【24h】

RSVM: A Region-based Software Virtual Memory for GPU

机译:RSVM:用于GPU的基于区域的软件虚拟内存

获取原文

摘要

While Graphics Processing Units (GPU) have gained much success in general purpose computing in recent years, their programming is still difficult, due to, particularly, explicitly managed GPU memory and manual CPU-GPU data transfer. Despite recent calls for managing GPU resources as first-class citizens in the operating system, a mature GPU memory management mechanism is still missing, which leads to reinventing the wheels in various GPU system software. Meanwhile, due to ever enlarging problem sizes, we urgently need a system-level mechanism for unified CPU-GPU memory management. In this work, we present the design of Region-based Software Virtual Memory (RSVM), a software virtual memory running on both CPU and GPU in a distributed and cooperative way. In addition to automatic GPU memory management and GPU-CPU data transfer, RSVM offers two novel features: 1) GPU kernel-issued on-demand data fetching from the host into the GPU memory, and 2) intra-kernel transparent GPU memory swapping into the main memory. Our study reveals important insights on the challenges and opportunities of building unified virtual memory systems for heterogeneous computing. Experimental results on real GPU benchmarks demonstrate that, though it incurs a small overhead, RSVM can transparently scale GPU kernels to large problem sizes exceeding the device memory size limit; developers write the same code for different problem sizes, but still can optimize on data layout definition accordingly. Our evaluation also identifies missing GPU architecture features for better system software efficiency.
机译:尽管近年来图形处理单元(GPU)在通用计算领域取得了很大的成功,但由于特别是显式管理的GPU内存和手动CPU-GPU数据传输,因此它们的编程仍然很困难。尽管最近有人呼吁将GPU资源作为操作系统中的一等公民来管理,但仍缺少成熟的GPU内存管理机制,这导致了各种GPU系统软件的重新发明。同时,由于问题规模不断扩大,我们迫切需要一种用于统一CPU-GPU内存管理的系统级机制。在这项工作中,我们介绍了基于区域的软件虚拟内存(RSVM)的设计,这是一种以分布式和协作方式在CPU和GPU上运行的软件虚拟内存。除了自动GPU内存管理和GPU-CPU数据传输,RSVM还提供两个新颖的功能:1)GPU内核发出的按需数据从主机读取到GPU内存,以及2)内核内透明GPU内存交换为主内存。我们的研究揭示了有关为异构计算构建统一的虚拟内存系统的挑战和机遇的重要见解。实际GPU基准测试的实验结果表明,尽管RSVM会产生少量开销,但它可以透明地将GPU内核扩展到超过设备内存大小限制的大问题大小。开发人员针对不同的问题大小编写相同的代码,但仍可以相应地优化数据布局定义。我们的评估还确定了缺少的GPU架构功能,以提高系统软件效率。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号