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

洞察模式:利用内部时间相关性表征空间模式以实现硬件预取

Gaze into the Pattern: Characterizing Spatial Patterns with Internal Temporal Correlations for Hardware Prefetching

Zixiao Chen, Chentao Wu, Yunfei Gu, Ranhao Jia, Jie Li, Minyi Guo

AI总结:

本文提出硬件空间预取器 Gaze,利用空间足迹内部的时间相关性表征访问模式,并以两阶段机制缓解高访问密度下的过度预取,显著优于 PMP 与 vBerti。

摘要:

硬件预取是用于隐藏长数据访问延迟的最广泛使用的技术之一。为了应对硬件预取所面临的挑战,架构师们提出在空间区域粒度上检测并利用空间局部性。当一个新区域被激活时,他们会尝试基于触发指令或数据地址等系统级环境特征,寻找此前访问过的相似区域,以进行足迹预测。然而,我们发现这种基于上下文的预测无法捕捉访问模式的本质特征,从而导致灵活性、实用性受限以及次优的预取性能。在本文中,受内存访问的时间特性启发,我们注意到空间足迹内部展现出的时间相关性是空间模式的一项关键特征。为此,我们提出了 Gaze,这是一种简单而高效的硬件空间预取器,它巧妙地利用足迹内部的时间相关性来高效表征空间模式。同时,我们观察到在利用由空间流生成的空间足迹时存在一个独特且尚未解决的挑战,即这些足迹表现出极高的访问密度。因此,我们进一步通过一种专用的两阶段方法增强 Gaze,以缓解传统方案中普遍遇到的过度预取问题。我们全面且多样化的实验集表明,Gaze 能够在更广泛的场景范围内有效提升性能。具体而言,与最新的低成本解决方案 PMP 和 vBerti 相比,Gaze 在单核下分别带来 5.7% 和 5.4% 的性能提升,在八核下分别带来 11.4% 和 8.8% 的性能提升。

英文摘要:

Hardware prefetching is one of the most widely-used techniques for hiding long data access latency. To address the challenges faced by hardware prefetching, architects have proposed to detect and exploit the spatial locality at the granularity of spatial region. When a new region is activated, they try to find similar previously accessed regions for footprint prediction based on system-level environmental features such as the trigger instruction or data address. However, we find that such context-based prediction cannot capture the essential characteristics of access patterns, leading to limited flexibility, practicality and suboptimal prefetching performance. In this paper, inspired by the temporal property of memory accessing, we note that the temporal correlation exhibited within the spatial footprint is a key feature of spatial patterns. To this end, we propose Gaze, a simple and efficient hardware spatial prefetcher that skillfully utilizes footprint-internal temporal correlations to efficiently characterize spatial patterns. Meanwhile, we observe a unique unresolved challenge in utilizing spatial footprints generated by spatial streaming, which exhibit extremely high access density. Therefore, we further enhance Gaze with a dedicated two-stage approach that mitigates the over-prefetching problem commonly encountered in conventional schemes. Our comprehensive and diverse set of experiments show that Gaze can effectively enhance the performance across a wider range of scenarios. Specifically, Gaze improves performance by 5.7\% and 5.4\% at single-core, 11.4\% and 8.8\% at eight-core, compared to most recent low-cost solutions PMP and vBerti.

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

↑