Modern server workloads exhibit massive instruction footprints that heavily pressure the processor front-end, making L1 instruction (L1I) prefetching critical for sustaining performance. However, this paper shows that current L1I prefetchers fail to reach their full potential due to two key limitations. First, L1I prefetches crossing page boundaries require address translation before issuance, and translation latency reduces prefetch timeliness. Second, the reuse behavior of code lines fetched by L1I prefetches is highly heterogeneous: while some lines are reused many times, others are dead-on-arrival.
This paper introduces Instruction Prefetch-Centric Cache and TLB Management (IP-CaT), the first microarchitectural framework jointly optimizing TLB and cache management for L1I prefetching. IP-CaT consists of two components: (i) the translation Prefetch Buffer (tPB), a small structure colocated with the second-level TLB (sTLB) that stores page table entries fetched by page-crossing L1I prefetches, reducing translation overheads; and (ii) the Trimodal Instruction Prefetch Replacement Policy (TIPRP), a decision-tree-based L2 cache replacement policy specialized for lines fetched by L1I prefetches.
We evaluate IP-CaT with three state-of-the-art L1I prefetchers: EPI, FNL+MMA, and Barca. Across 105 contemporary server workloads, IP-CaT consistently improves performance. For example, IP-CaT+EPI achieves an 8.7% geomean speedup over EPI alone. We further show that IP-CaT outperforms state-of-the-art instruction TLB prefetching, advanced TLB replacement (CHiRP), and state-of-the-art code-aware, prefetch-aware, and general-purpose cache replacement policies, including Emissary, SHiP++, and Mockingjay.
高速缓存预取器通过在处理器实际需要数据之前将数据从较慢的内存提取到较快的高速缓存,极大地消除了强制性的高速缓存未命中。复杂的预取器通过重复程序的历史空间和时间存储器访问模式来预测下一次使用高速缓存行。然而,它们是容易出错的,错误的预测导致缓存污染,并施加额外的压力,内存子系统。提出了一种基于感知器学习的数据缓存预取方案。其核心思想是两级预取机制。该算法首先利用已有的基于表的预取机制(如步幅预取或马尔可夫预取)进行预取决策,然后利用神经网络感知器检测和跟踪程序的访存模式,以剔除不必要的预取决策。感知器可以从时间和空间的局部和全局历史中学习,并且可以容易地由硬件实现。这种机制通过理想地减轻缓存污染并消除预取器发出的冗余内存请求来提高执行性能。基于SPEC CPU 2006基准测试进行了详细的评估和分析。仿真结果表明,该方案在保证指令周期(IPC)(浮动在-2.22%至2.55%之间)和缓存命中率(浮动在-1.67%至2.46%之间)的前提下,平均减少了60.64%~ 83.84%的预取内存请求。虽然感知器可能会拒绝有用的块,从而导致缓存未命中率的轻微上升,但较低的内存请求计数可以减少平均内存访问延迟,从而补偿损失,同时提高多程序工作负载的整体性能。
A Study of Runtime Adaptive Prefetching for STTRAM L1 Caches
自旋转移力矩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%
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(大连理工大学)