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

Pickle:针对不规则内存访问的精确、灵活的跨核心末级缓存数据预取

Pickle: Precise, Flexible Cross-Core Last-level Cache Data Prefetching for Irregular Memory Accesses

University of California, Davis(加州大学戴维斯分校);AMD Research & Advanced Development(AMD研究与先进开发部)

Hoa Nguyen, Pongstorn Maidee, Jason Lowe-Power, Alireza Kaviani

AI总结:

针对图形分析等不规则内存访问问题,提出Pickle这种软件定义、硬件管理的末级缓存预取器,通过执行预取内核提前带数据入缓存,经实验评估,相比无预取基线及现有技术有显著加速效果且降低内存流量开销。

摘要:

图形分析和稀疏科学工作负载由数据依赖、长延迟内存访问的并行链主导,其模式硬件难以推断但软件易于表达。传统硬件预取器仅从地址流恢复信息,误报导致大量内存流量开销。软件辅助方法更灵活但消耗核心有限资源。我们提出Pickle,一种遵循解耦访问/执行理念的软件定义、硬件管理的末级缓存预取器。它作为独立访问引擎,与核心资源完全解耦,执行从原始应用切片的预取内核,提前将数据带入共享末级缓存。我们使用8个高性能核心集群的全系统、周期级模拟评估Pickle,运行所有GAP基准套件算法以及NAS并行基准套件中的不规则访问主导的科学应用。与无预取基线相比,Pickle在图形算法上实现1.49倍几何平均加速,DRAM流量开销仅2%,在NAS散射/收集内核上实现1.53倍加速,内存流量减少4.5%。与现有技术相比,Pickle在组合使用时也有更好表现。

英文摘要:

Graph analytics and sparse scientific workloads are dominated by parallel chains of data-dependent, long-latency memory accesses whose patterns are difficult for hardware to infer yet straightforward to express in software. Conventional hardware prefetchers attempt to recover this information from address streams alone, but false positives lead to substantial memory traffic overhead. Software-assisted approaches offer greater flexibility but still consume core limited resources. We propose Pickle, a software-defined, hardware-managed lastlevel cache (LLC) prefetcher that follows the decoupled access/execute philosophy. Pickle serves as an independent access engine, fully decoupled from core resources, that executes prefetch kernels sliced from the original application to bring data into the shared LLC ahead of demand. We evaluate Pickle using full-system, cycle-level simulation of a cluster of 8 high-performance cores, running all GAP benchmark suite algorithms across nine real-world graphs and irregular-access dominated scientific applications from the NAS parallel benchmark suite. Over a no-prefetching baseline, Pickle achieves 1.49x geomean speedup with only 2% DRAM traffic overhead on graph algorithms, and 1.53x with a 4.5% memory traffic reduction on NAS scatter/gather kernels. For reference, the state-of-the-art coreprivate indirect prefetcher achieves 1.40x but incurs 43% DRAM traffic overhead on graph workloads, and 1.36x at zero traffic overhead on scatter/gather kernels, illustrating the challenge of inferring irregular access patterns without application-level context. Pickle also composes transparently with private cache prefetchers: combining it with the state-of-the-art indirect or a simple stride prefetcher yields 1.65x-1.66x and 1.72x-1.84x geomean speedup on graph and NAS scatter/gather workloads, respectively.

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

↑