CRAM:一种有效的基于硬件的存储器压缩方法
CRAM: Efficient Hardware-Based Memory Compression for Bandwidth Enhancement
摘要:
本文研究了基于硬件的内存压缩设计,以增加内存带宽。当行是可压缩的时,硬件可以在单个存储器位置中存储多个行,并且在单个访问中检索所有这些行,从而增加有效的内存带宽。然而,根据可压缩性将多条线重新定位和打包在一起会导致一条线具有多个可能的位置。因此,存储器压缩设计通常需要元数据来指定行的可压缩性。不幸的是,即使存在专用的元数据缓存,维护和访问这些元数据也会导致显著的带宽开销,并且可能使性能降低多达40%。理想情况下,我们希望实现内存压缩,同时消除元数据访问的带宽开销。本文提出了CRAM,一个带宽效率的内存压缩设计,是完全基于硬件的,不需要任何操作系统的支持或改变的内存模块或接口。CRAM使用了一种新的隐式元数据机制,通过扫描行中的特殊标记字可以确定行的可压缩性,从而消除了元数据访问的开销。CRAM配备了低成本的线路位置预测器(LLP),可以以98%的准确度确定线路的位置。此外,我们还开发了一种方案,可以动态启用或禁用压缩的基础上存储压缩线的带宽成本和获得压缩线的带宽优势,确保没有降级的工作负载,不受益于压缩。我们对27个不同工作负载的评估表明,CRAM提供了高达73%(平均6%)的加速比,而不会导致任何工作负载的减速,并且在内存控制器上消耗的存储开销小于300字节。
英文摘要:
This paper investigates hardware-based memory compression designs to increase the memory bandwidth. When lines are compressible, the hardware can store multiple lines in a single memory location, and retrieve all these lines in a single access, thereby increasing the effective memory bandwidth. However, relocating and packing multiple lines together depending on the compressibility causes a line to have multiple possible locations. Therefore, memory compression designs typically require metadata to specify the compressibility of the line. Unfortunately, even in the presence of dedicated metadata caches, maintaining and accessing this metadata incurs significant bandwidth overheads and can degrade performance by as much as 40%. Ideally, we want to implement memory compression while eliminating the bandwidth overheads of metadata accesses. This paper proposes CRAM, a bandwidth-efficient design for memory compression that is entirely hardware based and does not require any OS support or changes to the memory modules or interfaces. CRAM uses a novel implicit-metadata mechanism, whereby the compressibility of the line can be determined by scanning the line for a special marker word, eliminating the overheads of metadata access. CRAM is equipped with a low-cost Line Location Predictor (LLP) that can determine the location of the line with 98% accuracy. Furthermore, we also develop a scheme that can dynamically enable or disable compression based on the bandwidth cost of storing compressed lines and the bandwidth benefits of obtaining compressed lines, ensuring no degradation for workloads that do not benefit from compression. Our evaluations, over a diverse set of 27 workloads, show that CRAM provides a speedup of up to 73% (average 6%) without causing slowdown for any of the workloads, and consuming a storage overhead of less than 300 bytes at the memory controller.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。