Micro BTB:一种高性能轻量级服务器末级分支目标缓冲区
Micro BTB: A High Performance and Lightweight Last-Level Branch Target Buffer for Servers
摘要:
高性能分支目标缓冲区(BTB)和L1I缓存是高性能前端的关键。现代分支预测器非常准确,但随着现代服务器工作负载中代码占用量的增加,BTB和L1I遗漏仍然很频繁。最近的行业趋势表明,使用大BTB(每个内核100 KB),提供更接近理想BTB的性能,以及提供高效的取指L1I指令预取的解耦前端。另一方面,学术界提出的技术,如BTB预取和使用引退顺序流进行学习,无法为更深更宽的现代处理器内核提供显著的性能。通过提高末级BTB的存储密度,从根本上解决了这一问题。我们观察到,并非所有分支指令都需要完整的分支目标地址。相反,我们可以将分支目标存储为相对于分支指令的分支偏移量。使用分支偏移使BTB能够在每个条目中存储多个分支。我们将BTB存储减少了一半,但我们观察到它增加了BTB中的偏斜度。我们提出了一个倾斜的索引和压缩的最后一级BTB设计称为微BTB(MBTB),存储多个分支每个BTB条目。我们在100个行业提供的服务器工作负载上评估MBTB。与8K入门级基准BTB设计相比,4K入门级MBTB可提供17.61%的性能提升,每个核心可节省47.5KB的存储空间。
英文摘要:
High-performance branch target buffers (BTBs) and the L1I cache are key to high-performance front-end. Modern branch predictors are highly accurate, but with an increase in code footprint in modern-day server workloads, BTB and L1I misses are still frequent. Recent industry trend shows usage of large BTBs (100s of KB per core) that provide performance closer to the ideal BTB along with a decoupled front-end that provides efficient fetch-directed L1I instruction prefetching. On the other hand, techniques proposed by academia, like BTB prefetching and using retire order stream for learning, fail to provide significant performance with modern-day processor cores that are deeper and wider. We solve the problem fundamentally by increasing the storage density of the last-level BTB. We observe that not all branch instructions require a full branch target address. Instead, we can store the branch target as a branch offset, relative to the branch instruction. Using branch offset enables the BTB to store multiple branches per entry. We reduce the BTB storage in half, but we observe that it increases skewness in the BTB. We propose a skewed indexed and compressed last-level BTB design called MicroBTB (MBTB) that stores multiple branches per BTB entry. We evaluate MBTB on 100 industry-provided server workloads. A 4K-entry MBTB provides 17.61% performance improvement compared to an 8K-entry baseline BTB design with a storage savings of 47.5KB per core.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。