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

NDPage:通过定制页表实现近数据处理架构的高效地址转换

NDPage: Efficient Address Translation for Near-Data Processing Architectures via Tailored Page Table

Qingcai Jiang, Buxin Tu, Hong An

AI总结:

针对NDP系统中4级页表地址转换开销高的问题,本文提出NDPage,通过PTE绕过L1缓存与合并末两级页表,在单核至8核系统中显著提升性能。

摘要:

近数据处理(NDP)已成为应对数据密集型应用内存墙问题的一种颇具前景的架构范式。NDP架构的实际实现需要系统支持以提升可编程性,而具备虚拟内存(VM)至关重要。现代计算系统采用4级页表设计来支持VM中的地址转换。然而,在NDP系统中简单沿用现有4级页表会造成显著的地址转换开销,原因在于:(1)NDP应用会产生大量地址转换;(2)NDP系统中有限的L1缓存无法覆盖对页表项(PTE)的访问。我们广泛分析了NDP场景下的4级页表设计,并观察到:(1)对页表项的内存访问高度不规则,因此无法从L1缓存中受益;(2)页表的最后两级几乎被完全占满。基于这些观察,我们提出NDPage,这是一种为NDP系统定制的高效页表设计。NDPage的关键机制包括:(1)面向PTE的L1缓存绕过机制,不仅加速PTE的内存访问,还防止PTE对缓存系统造成污染;(2)扁平化页表设计,合并页表的最后两级,使页表能够享有4KB页面的灵活性,同时减少PTE访问次数。我们使用多种数据密集型工作负载评估NDPage。评估表明,在单核NDP系统中,NDPage相比最先进的地址转换机制将端到端性能提升14.3%;在4核和8核NDP系统中,NDPage分别将性能提升9.8%和30.5%。

英文摘要:

Near-Data Processing (NDP) has been a promising architectural paradigm to address the memory wall problem for data-intensive applications. Practical implementation of NDP architectures calls for system support for better programmability, where having virtual memory (VM) is critical. Modern computing systems incorporate a 4-level page table design to support address translation in VM. However, simply adopting an existing 4-level page table in NDP systems causes significant address translation overhead because (1) NDP applications generate a lot of address translations, and (2) the limited L1 cache in NDP systems cannot cover the accesses to page table entries (PTEs). We extensively analyze the 4-level page table design in the NDP scenario and observe that (1) the memory access to page table entries is highly irregular, thus cannot benefit from the L1 cache, and (2) the last two levels of page tables are nearly fully occupied. Based on our observations, we propose NDPage, an efficient page table design tailored for NDP systems. The key mechanisms of NDPage are (1) an L1 cache bypass mechanism for PTEs that not only accelerates the memory accesses of PTEs but also prevents the pollution of PTEs in the cache system, and (2) a flattened page table design that merges the last two levels of page tables, allowing the page table to enjoy the flexibility of a 4KB page while reducing the number of PTE accesses. We evaluate NDPage using a variety of data-intensive workloads. Our evaluation shows that in a single-core NDP system, NDPage improves the end-to-end performance over the state-of-the-art address translation mechanism of 14.3\%; in 4-core and 8-core NDP systems, NDPage enhances the performance of 9.8\% and 30.5\%, respectively.

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

↑