Victima:通过利用未充分利用的缓存资源大幅增加地址翻译覆盖范围
Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache Resources
AI总结:
Victima是一种软件透明机制,通过重新利用L2缓存块存储TLB条目簇并引入PTW成本预测器和TLB感知替换策略,大幅增加地址翻译覆盖范围,在原生和虚拟化环境中显著提升性能且开销极小。
摘要:
由于庞大的数据集和不规则的访问模式导致频繁的高延迟页表遍历(PTWs),地址翻译成为数据密集型工作负载的性能瓶颈。可以通过使用(i)大型硬件TLB或(ii)大型软件管理的TLB来减少PTW。遗憾的是,这两种解决方案都有显著的缺点:增加了访问延迟、功耗和面积(对于硬件TLB),以及高昂的内存访问开销、需要大块连续内存和复杂的操作系统修改(对于软件管理的TLB)。我们提出了Victima,这是一种新的软件透明机制,通过利用缓存层次结构中未充分利用的资源,大幅增加处理器的地址翻译覆盖范围。Victima的核心思想是重新利用L2缓存块来存储TLB条目簇,从而提供一个额外的低延迟、高容量组件来备份末级TLB,进而减少PTW。Victima有两个主要组件。首先,PTW成本预测器(PTW-CP)根据它们导致的PTW的频率和成本来识别翻译成本高的地址。其次,TLB感知的缓存替换策略通过考虑(i)翻译压力(例如,末级TLB未命中率)和(ii)TLB条目的重用特征,优先将TLB条目保留在缓存层次结构中。我们的评估结果表明,在原生(虚拟化)执行环境中,与基于基线四层基数树的页表设计相比,Victima在11个不同的数据密集型工作负载上将平均端到端应用程序性能提高了7.4%(28.7%),与最先进的软件管理的TLB相比提高了6.2%(20.1%)。Victima(i)在原生和虚拟化环境中均有效,(ii)对应用程序和系统软件完全透明,并且(iii)在现代高端CPU上产生非常小的面积和功耗开销。
英文摘要:
Address translation is a performance bottleneck in data-intensive workloads due to large datasets and irregular access patterns that lead to frequent high-latency page table walks (PTWs). PTWs can be reduced by using (i) large hardware TLBs or (ii) large software-managed TLBs. Unfortunately, both solutions have significant drawbacks: increased access latency, power and area (for hardware TLBs), and costly memory accesses, the need for large contiguous memory blocks, and complex OS modifications (for software-managed TLBs). We present Victima, a new software-transparent mechanism that drastically increases the translation reach of the processor by leveraging the underutilized resources of the cache hierarchy. The key idea of Victima is to repurpose L2 cache blocks to store clusters of TLB entries, thereby providing an additional low-latency and high-capacity component that backs up the last-level TLB and thus reduces PTWs. Victima has two main components. First, a PTW cost predictor (PTW-CP) identifies costly-to-translate addresses based on the frequency and cost of the PTWs they lead to. Second, a TLB-aware cache replacement policy prioritizes keeping TLB entries in the cache hierarchy by considering (i) the translation pressure (e.g., last-level TLB miss rate) and (ii) the reuse characteristics of the TLB entries. Our evaluation results show that in native (virtualized) execution environments Victima improves average end-to-end application performance by 7.4% (28.7%) over the baseline four-level radix-tree-based page table design and by 6.2% (20.1%) over a state-of-the-art software-managed TLB, across 11 diverse data-intensive workloads. Victima (i) is effective in both native and virtualized environments, (ii) is completely transparent to application and system software, and (iii) incurs very small area and power overheads on a modern high-end CPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。