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

Profile-Guided时间预取

Profile-Guided Temporal Prefetching

Mengming Li, Qijun Zhang, Yichuan Gao, Wenji Fang, Yao Lu, Yongqing Ren, Zhiyao Xie

AI总结:

针对时间预取中片上元数据存储利用低效的问题,提出软硬件协同框架Prophet,利用计数器剖析和动态提示优化存储管理,性能比最先进的Triangel提升14.23%。

摘要:

时间预取在处理不规则内存访问模式方面显示出前景,这些模式在数据依赖和基于指针的数据结构中很常见。近期研究引入了片上元数据存储,以减少从片外DRAM访问元数据所引起的内存流量。然而,现有的预取方案难以高效利用有限的片上存储。另一种解决方案,软件间接访问预取,在优化时间预取方面仍然效果不佳。在本工作中,我们提出了Prophet——一种软硬件协同设计的框架,利用配置文件引导的方法来优化元数据存储管理。Prophet使用计数器而非轨迹来对程序进行性能剖析,向程序中注入提示以指导元数据存储管理,并动态调整这些提示,使优化后的二进制能够适应不同的程序输入。Prophet被设计为与现有的硬件时间预取器共存,为频繁执行的工作负载提供高效、高性能的解决方案,同时为不频繁执行的工作负载保留原始运行时方案。Prophet比最先进的时间预取器Triangel性能提升14.23%,有效解决了先前配置文件引导解决方案无法应对的复杂时间模式(仅获得0.1%的性能提升)。Prophet在所有评估的工作负载输入上均表现出卓越性能,且引入了可忽略的剖析、分析和指令开销。

英文摘要:

Temporal prefetching shows promise for handling irregular memory access patterns, which are common in data-dependent and pointer-based data structures. Recent studies introduced on-chip metadata storage to reduce the memory traffic caused by accessing metadata from off-chip DRAM. However, existing prefetching schemes struggle to efficiently utilize the limited on-chip storage. An alternative solution, software indirect access prefetching, remains ineffective for optimizing temporal prefetching. In this work, we propose Prophet--a hardware-software co-designed framework that leverages profile-guided methods to optimize metadata storage management. Prophet profiles programs using counters instead of traces, injects hints into programs to guide metadata storage management, and dynamically tunes these hints to enable the optimized binary to adapt to different program inputs. Prophet is designed to coexist with existing hardware temporal prefetchers, delivering efficient, high-performance solutions for frequently executed workloads while preserving the original runtime scheme for less frequently executed workloads. Prophet outperforms the state-of-the-art temporal prefetcher, Triangel, by 14.23%, effectively addressing complex temporal patterns where prior profile-guided solutions fall short (only achieving 0.1% performance gain). Prophet delivers superior performance across all evaluated workload inputs, introducing negligible profiling, analysis, and instruction overhead.

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

↑