Data prefetching is a critical technique for bridging the processor-memory performance gap by predicting future memory accesses and retrieving data into on-chip caches before demand. While traditional prefetchers based on next-line, stride, and correlation heuristics perform well for regular access patterns, they are fundamentally inadequate for the irregular, data-dependent patterns prevalent in modern workloads such as graph analytics, sparse matrix computations, and pointer-intensive applications. This survey presents a systematic review of papers using a PRISMA-guided selection methodology. We propose a structured taxonomy that organizes prefetching techniques across three dimensions: locality type, including spatial and temporal locality; implementation layer, including hardware, software, and hybrid approaches; and, for the increasingly important class of ML-based prefetchers, learning paradigm, including supervised, reinforcement, and unsupervised learning, paired with training mode, including online and offline training. Through a multi-dimensional comparative analysis of ML-based prefetchers evaluated across storage overhead, accuracy, inference latency, hardware feasibility, and generalization ability, we identify three key findings: an accuracy-overhead Pareto frontier defined by model class, a natural architectural mapping between model complexity and cache hierarchy level, and a fundamental tension between runtime adaptability and model capacity that motivates hierarchical ensemble architectures.
高速缓存预取器通过在处理器实际需要数据之前将数据从较慢的内存提取到较快的高速缓存,极大地消除了强制性的高速缓存未命中。复杂的预取器通过重复程序的历史空间和时间存储器访问模式来预测下一次使用高速缓存行。然而,它们是容易出错的,错误的预测导致缓存污染,并施加额外的压力,内存子系统。提出了一种基于感知器学习的数据缓存预取方案。其核心思想是两级预取机制。该算法首先利用已有的基于表的预取机制(如步幅预取或马尔可夫预取)进行预取决策,然后利用神经网络感知器检测和跟踪程序的访存模式,以剔除不必要的预取决策。感知器可以从时间和空间的局部和全局历史中学习,并且可以容易地由硬件实现。这种机制通过理想地减轻缓存污染并消除预取器发出的冗余内存请求来提高执行性能。基于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(大连理工大学)
Pooling Engram Conditional Memory in Large Language Models using CXL
Peking University(北京大学);Alibaba Cloud(阿里云);Shandong Yingxin Computer Technology Co., Ltd(山东英信计算机技术有限公司);Renmin University of China(中国人民大学);The University of Hong Kong(香港大学)