arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.12554cs.OS
收藏

GMEM:面向外围设备的通用内存管理

GMEM: Generalized Memory Management for Peripheral Devices

Weixi Zhu, Alan L. Cox, Scott Rixner

AI总结:

本文提出GMEM,一种面向外围设备的通用内存管理框架,通过高级接口解耦MMU功能并由OS统一管理内存,显著提升可编程性,并在案例中大幅减少代码量、提升网络吞吐量并降低CPU开销。

摘要:

本文提出了面向外围设备的通用内存管理GMEM。GMEM为CPU和设备的集中式内存管理提供OS支持。GMEM提供了一个解耦MMU特定功能的高级接口。因此,设备驱动程序可以附加到进程的地址空间,并让OS负责其内存管理。这消除了设备驱动程序“重复造轮子”的需要,并允许它们受益于GMEM集成的通用内存优化。此外,GMEM在每个虚拟地址空间内协调所有附加的设备。这极大地提高了用户级可编程性,因为程序员可以在程序中使用单一地址空间,甚至在CPU和多个设备间操作时也是如此。对设备驱动程序的案例研究证明了这些益处。基于GMEM的IOMMU驱动程序消除了约700行代码,与最先进技术相比,在减少32% CPU使用率的情况下获得了54%更高的网络接收吞吐量。此外,模拟GPU的基于GMEM的驱动程序(不包括其MMU功能)仅需不到70行代码。

英文摘要:

This paper presents GMEM, generalized memory management, for peripheral devices. GMEM provides OS support for centralized memory management of both CPU and devices. GMEM provides a high-level interface that decouples MMU-specific functions. Device drivers can thus attach themselves to a process's address space and let the OS take charge of their memory management. This eliminates the need for device drivers to "reinvent the wheel" and allows them to benefit from general memory optimizations integrated by GMEM. Furthermore, GMEM internally coordinates all attached devices within each virtual address space. This drastically improves user-level programmability, since programmers can use a single address space within their program, even when operating across the CPU and multiple devices. A case study on device drivers demonstrates these benefits. A GMEM-based IOMMU driver eliminates around seven hundred lines of code and obtains 54% higher network receive throughput utilizing 32% less CPU compared to the state-of-the-art. In addition, the GMEM-based driver of a simulated GPU takes less than 70 lines of code, excluding its MMU functions.

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

↑