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

CMD:一种缓存辅助的GPU内存去重架构

CMD: A Cache-assisted GPU Memory Deduplication Architecture

Wei Zhao, Dan Feng, Wei Tong, Xueliang Wei, Bing Wu

AI总结:

针对GPU片外访问的性能瓶颈,本文提出缓存辅助的GPU内存去重架构CMD,通过三类设计减少不同类型的片外访问,有效降低访问量与能耗,显著提升性能。

摘要:

GPU中的大量片外访问是主要的性能瓶颈,我们将这些访问分为三类:(1)写入,(2)数据读取,以及(3)只读。此外,我们发现许多写入操作存在数据重复,这种重复可分为块间重复(inter-dup)和块内重复(intra-dup)。其中块间重复指不同内存块内容完全相同,块内重复指一个缓存行内所有4字节元素都相同。本研究提出了一种名为CMD的缓存辅助GPU内存去重架构,通过利用GPU应用中的数据重复来减少片外访问。CMD包含三项核心设计,分别对应减少三类访问:(1)一种新型GPU内存去重架构,可消除块间重复与块内重复的缓存行。在块间重复检测方面,我们减少了传统读取验证哈希过程带来的额外读取请求,此外还设计了多种技术来管理重复块。(2)我们提出了一种缓存辅助读取方案,以减少对重复数据的读取。当L2缓存未命中需要读取重复块时,如果参考块已被加载到L2且处于干净状态,无需访问片外DRAM即可将其复制到L2未命中的块中。对于块内重复数据的读取,CMD利用片上元数据缓存获取数据。(3)当缓存行被替换时,行中的干净扇区会被失效,而脏扇区会被写回。但大多数只读替换行(victim)会被从DRAM重新引用两次以上。因此我们增加了一个全相联FIFO来存放只读(同时也是干净的)替换行,以减少重新引用的次数。实验表明,CMD可将片外访问量降低31.01%,能耗减少32.78%,性能提升37.79%。此外,CMD可将内存密集型工作负载的性能提升50.18%。

英文摘要:

Massive off-chip accesses in GPUs are the main performance bottleneck, and we divided these accesses into three types: (1) Write, (2) Data-Read, and (3) Read-Only. Besides, We find that many writes are duplicate, and the duplication can be inter-dup and intra-dup. While inter-dup means different memory blocks are identical, and intra-dup means all the 4B elements in a line are the same. In this work, we propose a cache-assisted GPU memory deduplication architecture named CMD to reduce the off-chip accesses via utilizing the data duplication in GPU applications. CMD includes three key design contributions which aim to reduce the three kinds of accesses: (1) A novel GPU memory deduplication architecture that removes the inter-dup and inter-dup lines. As for the inter-dup detection, we reduce the extra read requests caused by the traditional read-verify hash process. Besides, we design several techniques to manage duplicate blocks. (2) We propose a cache-assisted read scheme to reduce the reads to duplicate data. When an L2 cache miss wants to read the duplicate block, if the reference block has been fetched to L2 and it is clean, we can copy it to the L2 missed block without accessing off-chip DRAM. As for the reads to intra-dup data, CMD uses the on-chip metadata cache to get the data. (3) When a cache line is evicted, the clean sectors in the line are invalidated while the dirty sectors are written back. However, most read-only victims are re-referenced from DRAM more than twice. Therefore, we add a full-associate FIFO to accommodate the read-only (it is also clean) victims to reduce the re-reference counts. Experiments show that CMD can decrease the off-chip accesses by 31.01%, reduce the energy by 32.78% and improve performance by 37.79%. Besides, CMD can improve the performance of memory-intensive workloads by 50.18%.

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

↑