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

一种高效的服务器BTB组织

A Storage-Effective BTB Organization for Servers

Truls Asheim, Boris Grot, Rakesh Kumar

摘要:

许多当代应用程序的特点是多兆字节的指令占用空间,这些占用空间超过了分支目标缓冲区(BTB)和指令缓存(L1-I)的容量,导致频繁的前端停顿,这不可避免地损害了性能。BTB容量对于性能至关重要,因为足够大的BTB使前端能够准确地解析即将到来的执行路径并适当地引导指令提取。此外,它还实现了高效的取指指令预取,可以消除大部分L1-I未命中。出于这些原因,商业处理器将大量存储容量分配给BTB。这项工作旨在通过优化BTB条目的组织来减少BTB存储需求。我们的关键见解是,存储分支目标偏移量,而不是完整或压缩的目标,可以大大降低BTB存储成本,因为绝大多数动态分支都具有短偏移量,只需要少量比特来编码。基于这一见解,我们调整了一组关联BTB的路的大小,以容纳不同数量的目标偏移位,使得每条路都存储特定范围内的偏移。这样做可以大大减少目标地址的存储空间。我们的最终设计称为BTB-X,它使用具有不同大小路径的8路集关联BTB,使其能够跟踪比传统BTB多2.24倍的分支,比存储优化的最先进BTB组织多1.3倍的分支,称为PDede,具有相同的存储预算。

英文摘要:

Many contemporary applications feature multi-megabyte instruction footprints that overwhelm the capacity of branch target buffers (BTB) and instruction caches (L1-I), causing frequent front-end stalls that inevitably hurt performance. BTB capacity is crucial for performance as a sufficiently large BTB enables the front-end to accurately resolve the upcoming execution path and steer instruction fetch appropriately. Moreover, it also enables highly effective fetch-directed instruction prefetching that can eliminate a large portion L1-I misses. For these reasons, commercial processors allocate vast amounts of storage capacity to BTBs. This work aims to reduce BTB storage requirements by optimizing the organization of BTB entries. Our key insight is that storing branch target offsets, instead of full or compressed targets, can drastically reduce BTB storage cost as the vast majority of dynamic branches have short offsets requiring just a handful of bits to encode. Based on this insight, we size the ways of a set associative BTB to hold different number of target offset bits such that each way stores offsets within a particular range. Doing so enables a dramatic reduction in storage for target addresses. Our final design, called BTB-X, uses an 8-way set associative BTB with differently sized ways that enables it to track about 2.24x more branches than a conventional BTB and 1.3x more branches than a storage-optimized state-of-the-art BTB organization, called PDede, with the same storage budget.

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

↑