自旋转移力矩RAM(STTRAM)由于其多个优点而成为片上高速缓存中SRAM的有前途的替代品。这些优点包括非易失性、低泄漏、高集成密度和CMOS兼容性。先前的研究已经表明,放宽STTRAM保留时间并使其适应运行时应用需求可以大幅降低整体缓存能量,而不会产生显著的延迟开销,这是由于在较短的保留时间内具有较低的STTRAM写入能量和延迟。在本文中,作为跨STTRAM缓存层次结构的高效预取的第一步,我们研究了预取减少保留STTRAM L1缓存。使用SPEC CPU 2017基准测试,我们分析了不同应用程序在不同STTRAM缓存保留时间下不同预取距离的能量和延迟影响。我们表明,expired_unused_prefetches-由减少的保留时间STTRAM缓存过期的未使用的预取的数量-可以准确地确定最佳的保留时间的能源消耗和访问延迟。这个新的度量还可以提供对内存带宽消耗和预取准确性的最佳预取距离的洞察。基于我们的分析和见解,我们提出了预取感知的保留时间调整(PART)和基于保留时间的预取控制(RPC)。与基本STTRAM缓存相比,PART和RPC分别将平均缓存能量和延迟降低了22.24%和24.59%。在基础架构上增加最先进的近端预取节流(NST)后,PART+RPC的平均缓存能耗和延迟分别降低了3.50%和3.59%,硬件开销降低了54.55%
英文摘要:
Spin-Transfer Torque RAM (STTRAM) is a promising alternative to SRAM in on-chip caches due to several advantages. These advantages include non-volatility, low leakage, high integration density, and CMOS compatibility. Prior studies have shown that relaxing and adapting the STTRAM retention time to runtime application needs can substantially reduce overall cache energy without significant latency overheads, due to the lower STTRAM write energy and latency in shorter retention times. In this paper, as a first step towards efficient prefetching across the STTRAM cache hierarchy, we study prefetching in reduced retention STTRAM L1 caches. Using SPEC CPU 2017 benchmarks, we analyze the energy and latency impact of different prefetch distances in different STTRAM cache retention times for different applications. We show that expired_unused_prefetches---the number of unused prefetches expired by the reduced retention time STTRAM cache---can accurately determine the best retention time for energy consumption and access latency. This new metric can also provide insights into the best prefetch distance for memory bandwidth consumption and prefetch accuracy. Based on our analysis and insights, we propose Prefetch-Aware Retention time Tuning (PART) and Retention time-based Prefetch Control (RPC). Compared to a base STTRAM cache, PART and RPC collectively reduced the average cache energy and latency by 22.24% and 24.59%, respectively. When the base architecture was augmented with the state-of-the-art near-side prefetch throttling (NST), PART+RPC reduced the average cache energy and latency by 3.50% and 3.59%, respectively, and reduced the hardware overhead by 54.55%
高速缓存预取器通过在处理器实际需要数据之前将数据从较慢的内存提取到较快的高速缓存,极大地消除了强制性的高速缓存未命中。复杂的预取器通过重复程序的历史空间和时间存储器访问模式来预测下一次使用高速缓存行。然而,它们是容易出错的,错误的预测导致缓存污染,并施加额外的压力,内存子系统。提出了一种基于感知器学习的数据缓存预取方案。其核心思想是两级预取机制。该算法首先利用已有的基于表的预取机制(如步幅预取或马尔可夫预取)进行预取决策,然后利用神经网络感知器检测和跟踪程序的访存模式,以剔除不必要的预取决策。感知器可以从时间和空间的局部和全局历史中学习,并且可以容易地由硬件实现。这种机制通过理想地减轻缓存污染并消除预取器发出的冗余内存请求来提高执行性能。基于SPEC CPU 2006基准测试进行了详细的评估和分析。仿真结果表明,该方案在保证指令周期(IPC)(浮动在-2.22%至2.55%之间)和缓存命中率(浮动在-1.67%至2.46%之间)的前提下,平均减少了60.64%~ 83.84%的预取内存请求。虽然感知器可能会拒绝有用的块,从而导致缓存未命中率的轻微上升,但较低的内存请求计数可以减少平均内存访问延迟,从而补偿损失,同时提高多程序工作负载的整体性能。
NVR: Vector Runahead on NPUs for Sparse Memory Access
National Center of Technology Innovation for EDA, School of Integrated Circuits, Southeast University(东南大学集成电路学院、国家EDA技术创新中心);Houmo AI(后摩智能);Nanjing University(南京大学);Huazhong University of Science and Technology(华中科技大学);Harbin Institute of Technology(哈尔滨工业大学);Dalian University of Technology(大连理工大学)
Adaptive Cache Pollution Control for Large Language Model Inference Workloads Using Temporal CNN-Based Prediction and Priority-Aware Replacement
University of Electronic Science and Technology of China(电子科技大学);Flinders University(弗林德斯大学);Siebel School of Computing and Data Science, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校西贝尔计算与数据科学学院)