arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.04011cs.AR
收藏

CXLMemUring:一种用于异步和灵活并行CXL内存池访问的硬件软件协同设计范式

CXLMemUring: A Hardware Software Co-design Paradigm for Asynchronous and Flexible Parallel CXL Memory Pool Access

UC Santa Cruz(加州大学圣克鲁兹分校);University of Connecticut(康涅狄格大学);Pacific Northwest National Lab(太平洋西北国家实验室)

Yiwei Yang, Yusheng Zheng, Kexin Chu, Jianchang Su, Jesun Firoz, Andi Quinn

AI总结:

针对CXL内存延迟问题,提出硬件软件协同设计方法,通过编译器识别异步区域并在CXL Type 2 FPGA加速器上执行,实现1.59倍平均加速。

摘要:

CXL附加内存让服务器在保持标准加载/存储编程模型的同时增加内存容量。主要缺点是延迟。CXL内存访问对于普通CPU机制来说太慢,无法可靠隐藏,尤其是当每次访问依赖于前一次结果时。同时,它们对于传统软件技术(如上下文切换或基于中断的异步)来说又太快,无法一次管理一个负载。在真实的Granite Rapids CXL平台上,我们发现将GAPBS图工作负载放置在CXL内存中会使执行速度平均比本地DRAM慢2.44倍。最先进的软件预取器仍然有2.21倍的减速。本文提出了我们的系统,一种硬件/软件协同设计方法,通过使用更大的异步工作单元来隐藏CXL延迟。该系统创建区域:原始程序的一部分,包含一个或多个CXL驻留内存操作以及运行它们所需的附近地址生成和内存编排逻辑。主机CPU在基于商用CXL Type 2 FPGA的近内存加速器上异步启动这些区域,然后继续有用的工作,同时设备提前运行并准备未来的内存访问。编译器从未经修改的源程序中识别候选区域,在线JIT根据工作负载行为优化区域边界和执行参数。我们将该系统实现为原型编译器、运行时和基于Vortex的CXL侧加速器。在GAPBS、MCF、Spatter和NAS并行基准测试工作负载上,与原生CXL内存执行相比,端到端性能提升1.45倍至1.75倍,几何平均加速比为1.59倍。

英文摘要:

CXL-attached memory lets servers add more memory while keeping the standard load/store programming model. The main drawback is latency. CXL memory accesses are too slow for normal CPU mechanisms to hide reliably, especially when each access depends on the result of a previous one. At the same time, they are too fast for traditional software techniques, such as context switches or interrupt-based asynchrony, to manage one load at a time. On a real Granite Rapids CXL platform, we find that placing GAPBS graph workloads in CXL memory slows execution by 2.44x on average compared with local DRAM. A state-of-the-art software prefetcher still leaves a 2.21x slowdown. This paper presents our system, a hardware/software co-designed approach for hiding CXL latency using larger units of asynchronous work. The system creates regions: parts of the original program that include one or more CXL-resident memory operations together with the nearby address-generation and memory-orchestration logic needed to run them. The host CPU launches these regions asynchronously on a near-memory accelerator built on a commodity CXL Type 2 FPGA, then continues useful work while the device runs ahead and prepares future memory accesses. A compiler identifies candidate regions from unmodified source programs, and an online JIT refines region boundaries and execution parameters based on workload behavior. We implement the system as a prototype compiler, runtime, and Vortex-based CXL-side accelerator. Across GAPBS, MCF, Spatter, and NAS Parallel Benchmark workloads, it improves end-to-end performance by 1.45x to 1.75x, with a 1.59x geometric mean speedup, compared with native CXL-memory execution.

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

↑