再论取指令预取
Fetch-Directed Instruction Prefetching Revisited
摘要:
先前的工作已经观察到,取定向预取(FDIP)是非常有效的覆盖指令缓存未命中。FDIP有效性的关键在于拥有足够大的BTB来容纳应用程序的分支工作集。在这项工作中,我们介绍了几个优化,显着扩展的范围内可用的存储预算的BTB。我们的优化几乎针对每个BTB条目中的所有存储开销来源;即标记、目标地址和大小字段。我们观察到,虽然大多数动态分支实例具有短偏移量,但大量分支具有较长的偏移量或需要使用完整的目标地址。基于这种见解,我们将BTB分解为多个较小的BTB,每个BTB存储不同长度的偏移。这使得目标地址的存储量大幅减少。我们进一步将标签压缩到16位,并避免使用先前FDIP变体中提倡的面向基本块的BTB。后一种优化消除了在每个BTB条目中存储基本块大小的需要。我们的最终设计称为FDIP-X,使用4个BTB的集成,并且在相同的存储预算下,始终优于具有统一基本块导向BTB的传统FDIP。
英文摘要:
Prior work has observed that fetch-directed prefetching (FDIP) is highly effective at covering instruction cache misses. The key to FDIP's effectiveness is having a sufficiently large BTB to accommodate the application's branch working set. In this work, we introduce several optimizations that significantly extend the reach of the BTB within the available storage budget. Our optimizations target nearly every source of storage overhead in each BTB entry; namely, the tag, target address, and size fields. We observe that while most dynamic branch instances have short offsets, a large number of branches has longer offsets or requires the use of full target addresses. Based on this insight, we break-up the BTB into multiple smaller BTBs, each storing offsets of different length. This enables a dramatic reduction in storage for target addresses. We further compress tags to 16 bits and avoid the use of the basic-block-oriented BTB advocated in prior FDIP variants. The latter optimization eliminates the need to store the basic block size in each BTB entry. Our final design, called FDIP-X, uses an ensemble of 4 BTBs and always outperforms conventional FDIP with a unified basic-block-oriented BTB for equal storage budgets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。