arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12433cs.ARcs.PF
收藏

通过缓存和TLB管理增强指令预取

Enhancing Instruction Prefetching via Cache and TLB Management

Barcelona Supercomputing Center(巴塞罗那超级计算中心);Computing Systems Lab, Huawei Technologies AG, Switzerland(华为技术有限公司瑞士计算系统实验室)

Alexandre Valentin Jamet, Georgios Vavouliotis, Marti Torrents, Dimitrios Chasapis, Marc Casas

AI总结:

本文提出IP-CaT框架,通过优化TLB和缓存管理提升L1指令预取性能,实验表明其在多个工作负载中显著提升性能。

摘要:

现代服务器工作负载表现出巨大的指令足迹,对处理器前端造成巨大压力,使L1指令(L1I)预取成为维持性能的关键。然而,本文显示当前L1I预取器由于两个关键限制未能发挥全部潜力。首先,跨越页面边界的L1I预取需要地址翻译后才能发出,翻译延迟降低了预取及时性。其次,由L1I预取获取的代码行的重用行为高度异质:一些行被多次重用,而另一些则直接失效。本文介绍了指令预取导向的缓存和TLB管理(IP-CaT),这是首个联合优化TLB和缓存管理以提升L1I预取的微架构框架。IP-CaT包含两个组件:(i)翻译预取缓冲区(tPB),一个与二级TLB(sTLB)同处的小结构,存储由跨页面L1I预取获取的页面表条目,减少翻译开销;(ii)三模式指令预取替换策略(TIPRP),一种基于决策树的L2缓存替换策略,专门针对由L1I预取获取的行。我们评估了IP-CaT与三种最先进的L1I预取器:EPI、FNL+MMA和Barca。在105个现代服务器工作负载上,IP-CaT始终提升性能。例如,IP-CaT+EPI在EPI单独的情况下实现了8.7%的几何平均加速。我们进一步表明,IP-CaT优于最先进的指令TLB预取、高级TLB替换(CHiRP)以及最先进的代码感知、预取感知和通用缓存替换策略,包括Emissary、SHiP++和Mockingjay。

英文摘要:

Modern server workloads exhibit massive instruction footprints that heavily pressure the processor front-end, making L1 instruction (L1I) prefetching critical for sustaining performance. However, this paper shows that current L1I prefetchers fail to reach their full potential due to two key limitations. First, L1I prefetches crossing page boundaries require address translation before issuance, and translation latency reduces prefetch timeliness. Second, the reuse behavior of code lines fetched by L1I prefetches is highly heterogeneous: while some lines are reused many times, others are dead-on-arrival. This paper introduces Instruction Prefetch-Centric Cache and TLB Management (IP-CaT), the first microarchitectural framework jointly optimizing TLB and cache management for L1I prefetching. IP-CaT consists of two components: (i) the translation Prefetch Buffer (tPB), a small structure colocated with the second-level TLB (sTLB) that stores page table entries fetched by page-crossing L1I prefetches, reducing translation overheads; and (ii) the Trimodal Instruction Prefetch Replacement Policy (TIPRP), a decision-tree-based L2 cache replacement policy specialized for lines fetched by L1I prefetches. We evaluate IP-CaT with three state-of-the-art L1I prefetchers: EPI, FNL+MMA, and Barca. Across 105 contemporary server workloads, IP-CaT consistently improves performance. For example, IP-CaT+EPI achieves an 8.7% geomean speedup over EPI alone. We further show that IP-CaT outperforms state-of-the-art instruction TLB prefetching, advanced TLB replacement (CHiRP), and state-of-the-art code-aware, prefetch-aware, and general-purpose cache replacement policies, including Emissary, SHiP++, and Mockingjay.

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

↑