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

Revelator: 通过系统软件引导的基于哈希的推测地址转换实现快速数据获取

Revelator: Rapid Data Fetching via System-Software-Guided Hash-based Speculative Address Translation

ETH Zürich(苏黎世联邦理工学院);NTNU(挪威科技大学)
Konstantinos Kanellopoulos, Konstantinos Sgouras, Harsh Songara, Andreas Kosmas Kakolyris, Vlad-Petru Nitu, Spiros Galanopoulos, Rahul Bera, Konstantina Kolioge… 展开作者

Konstantinos Kanellopoulos, Konstantinos Sgouras, Harsh Songara, Andreas Kosmas Kakolyris, Vlad-Petru Nitu, Spiros Galanopoulos, Rahul Bera, Konstantina Koliogeorgi, Rakesh Kumar, Onur Mutlu

AI总结:

提出一种硬件-操作系统协作的哈希地址分配策略,使虚拟地址到物理地址的映射可预测,从而在TLB未命中时推测预取数据,平均性能提升15.3%。

摘要:

地址转换是现代计算系统中的一个主要性能瓶颈。在地址转换完成之前预测请求数据的物理地址可以隐藏这一延迟,但准确的虚拟地址到物理地址预测是困难的,因为传统操作系统使虚拟地址到物理地址的映射不可预测。先前的工作通过依赖大页面或虚拟地址到物理地址的连续性来提高可预测性,或者将推测元数据存储在昂贵的硬件结构中。我们引入了Revelator,一种硬件-操作系统协作技术,通过哈希实现准确的推测地址转换,且只需对系统进行少量修改。Revelator采用分层的基于哈希的内存分配策略,适用于程序数据和末级页表项,从而创建可预测的虚拟地址到物理地址和虚拟地址到页表项的映射。在L2 TLB未命中后,轻量级硬件推测引擎使用操作系统的哈希函数来预测这些映射,并在地址转换完成前预取相应的缓存块,从而隐藏地址转换延迟并加速页表遍历。Revelator不依赖大页面或虚拟地址到物理地址的连续性,只需对操作系统和硬件进行少量修改。在11个数据密集型工作负载中,在高内存碎片化情况下,Revelator相比最先进的推测地址转换技术平均提升15.3%的性能。在虚拟化环境中,它同时预测客户机和宿主机物理地址,相比嵌套页表平均加速13.6%。在16核系统中,Revelator在Google的30个服务器工作负载混合下,在中度(高度)内存碎片化时,相比透明大页面实现1.40倍(1.50倍)的加速。RTL综合显示,在高端服务器级CPU上仅增加0.02%的面积和0.03%的功耗开销。Revelator可在\href{this https URL}{this http URL}免费获取。

英文摘要:

Address translation is a major performance bottleneck in modern computing systems. Predicting the physical address (PA) of requested data before address translation completes can hide this latency, but accurate virtual address (VA)-to-PA prediction is difficult because conventional operating systems make VA-to-PA mappings unpredictable. Prior work improves predictability but relies on large pages or VA-to-PA contiguity, or stores speculation metadata in costly hardware structures. We introduce Revelator, a hardware-OS cooperative technique that uses hashing to enable accurate speculative address translation with small system modifications. Revelator employs a tiered hash-based memory allocation policy for both program data and last-level page table entries (PTEs), creating predictable VA-to-PA and VA-to-PTE mappings. After an L2 TLB miss, a lightweight hardware speculation engine uses the OS hash functions to predict these mappings and prefetch the corresponding cache blocks before translation completes, hiding address translation latency and accelerating page table walks (PTWs). Revelator does not rely on large pages or VA-to-PA contiguity and requires only small OS and hardware changes. Across 11 data-intensive workloads, Revelator improves performance by 15.3% on average over the state-of-the-art speculative address translation technique under high memory fragmentation. In virtualized environments, it predicts both guest and host physical addresses, providing a 13.6% average speedup over Nested Paging. In 16-core systems, Revelator achieves 1.40x (1.50x) speedup over Transparent Huge Pages across 30 server workload mixes from Google under medium (high) memory fragmentation. RTL synthesis shows only 0.02% area and 0.03% power overheads on a high-end server-grade CPU. Revelator is freely available at \href{https://github.com/CMU-SAFARI/Virtuoso}{github.com/CMU-SAFARI/Virtuoso}.

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

↑