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

ICP:利用指令相关性进行预取不规则内存访问

ICP: Exploiting Instruction Correlation for Prefetching Irregular Memory Accesses

The Hong Kong University of Science and Technology(香港科技大学)

Mengming Li, Chenlu Miao, Buqing Xu, Qijun Zhang, Xiangfeng Sun, Ceyu Xu, Yuan Xie, Wenkai Li, Shang Liu, Zhiyao Xie

AI总结:

本文提出ICP机制,通过指令层面的相关性处理不规则内存访问,相比Triangel和DMP在性能上提升显著,硬件存储需求低。

摘要:

不规则内存访问对有效高效的数据预取构成挑战。尽管最近时间预取器在处理不规则访问模式上表现出色,但其效果根本上依赖于时间地址重复和大量元数据存储。当内存地址表现出弱或无重复时,如间接内存访问,时间预取器获得有限的性能提升并带来显著的存储开销。本文提出指令相关性预取(ICP),一种新的硬件预取机制,利用指令层面的相关性而非内存地址相关性来处理不规则内存访问。ICP观察到尽管内存地址可能不重复,生成它们的指令往往有稳定的依赖关系。通过学习这些持久的指令相关性,ICP利用相关前驱的执行结果推测并预取未来的不规则访问。在不规则SPEC CPU和GAP基准上,ICP相比最先进的时间预取器Triangel提升14.0%,相比间接预取器DMP提升6.0%,而仅需2.1 KB的硬件存储,比时间预取器小三个数量级。

英文摘要:

Irregular memory accesses pose challenges for effective and efficient data prefetching. While temporal prefetchers have recently shown promise for irregular memory access patterns, their effectiveness fundamentally depends on temporal address recurrence and large metadata storage. When memory addresses exhibit weak or no recurrence, as in indirect memory accesses, temporal prefetchers achieve limited performance gains while incurring substantial storage overhead. This paper proposes Instruction-Correlation Prefetching (ICP), a new hardware prefetching mechanism that exploits instruction-level correlations rather than memory-address correlations to handle irregular memory accesses. ICP observes that although memory addresses may not repeat, the instructions generating them often recur with stable data-dependency relationships. By learning these persistent instruction correlations, ICP speculatively computes and prefetches future irregular accesses using the execution results of their correlated predecessors. Across irregular SPEC CPU and GAP benchmarks, ICP outperforms the state-of-the-art temporal prefetcher Triangel by 14.0% and the indirect prefetcher DMP by 6.0%, while requiring only 2.1 KB of hardware storage, over three orders of magnitude smaller than temporal prefetchers.

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

↑