USENIX ATC2024顶会
Scalable and Effective Page-table and TLB management on NUMA Systems
Bin Gao, Qingxuan Kang, Hao-Wei Tee, Kyle Timothy Ng Chu, Alireza Sanaee, Djordje Jevdjic
摘要
Memory management operations that modify page-tables, typically performed during memory allocation/deallocation, are infamous for their poor performance in highly threaded applications, largely due to process-wide TLB shootdowns that the OS must issue due to the lack of hardware support for TLB coherence. We study these operations in NUMA settings, where we observe up to 40x overhead for basic operations such as munmap or mprotect. The overhead further increases if pagetable replication is used, where complete coherent copies of the page-tables are maintained across all NUMA nodes. While eager system-wide replication is extremely effective at localizing page-table reads during address translation, we find that it creates additional penalties upon any page-table changes due to the need to maintain all replicas coherent.
In this paper, we propose a novel page-table management mechanism, called Hydra, to enable transparent, on-demand, and partial page-table replication across NUMA nodes in order to perform address translation locally, while avoiding the overheads and scalability issues of system-wide full page-table replication. We then show that Hydra's precise knowledge of page-table sharers can be leveraged to significantly reduce the number of TLB shootdowns issued upon any memory-management operation. As a result, Hydra not only avoids replication-related slowdowns, but also provides significant speedup over the baseline on memory allocation/deallocation and access control operations. We implement Hydra in Linux on x86_64, evaluate it on 4-and 8-socket systems, and show that Hydra achieves the full benefits of eager page-table replication on a wide range of applications, while also achieving a 12% and 36% runtime improvement on Webserver and Memcached respectively due to a significant reduction in TLB shootdowns.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Compaction-Free Memory Defragmentation for Virtualization via Infinite Guest Physical Address Space 引用了 Don't shoot down TLB shootdowns!
- Pond: CXL-Based Memory Pooling Systems for Cloud Platforms 引用了 TPP: Transparent Page Placement for CXL-Enabled Tiered-Memory
- ScaleSwap: A Scalable OS Swap System for All-Flash Swap Arrays 引用了 TPP: Transparent Page Placement for CXL-Enabled Tiered-Memory
- MAC: Metadata Acceleration for Sustainable Performance in Big-Data Systems with CXL DRAM 引用了 Pond: CXL-Based Memory Pooling Systems for Cloud Platforms
引用它的顶会 Paper4
- ParaSync: Exploiting Fine-Grained Parallelism for Efficient File SynchronizationZhihao Zhang, Lu Tang, Huiba Li, Yue Yu 等FAST 2026 · 1 次引用
- Compaction-Free Memory Defragmentation for Virtualization via Infinite Guest Physical Address SpacePeixin Zeng, Hao Huang, Yanqi Pan, Wen Xia 等OSDI 2026
- ScaleSwap: A Scalable OS Swap System for All-Flash Swap ArraysTaehwan Ahn, Chanhyeong Yu, Sangjin Lee, Yongseok SonFAST 2026
- MAC: Metadata Acceleration for Sustainable Performance in Big-Data Systems with CXL DRAMDusol Lee, Yan Sun, Houxiang Ji, Vinit Gupta 等OSDI 2026
它引用的 Paper9
- Pond: CXL-Based Memory Pooling Systems for Cloud PlatformsHuaicheng Li, Daniel S. Berger, Lisa Hsu, Daniel Ernst 等ASPLOS 2023 · 328 次引用
- TPP: Transparent Page Placement for CXL-Enabled Tiered-MemoryHasan Al Maruf, Hao Wang, Abhishek Dhanotia, Johannes Weiner 等ASPLOS 2023 · 255 次引用
- Understanding host network stack overheadsQizhe Cai, Shubham Chaudhary, Midhul Vuppalapati, Jaehyun Hwang 等SIGCOMM 2021 · 150 次引用
- Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory MachinesReto Achermann, Ashish Panwar, Abhishek Bhattacharjee, Timothy Roscoe 等ASPLOS 2020 · 62 次引用
- Don't shoot down TLB shootdowns!Nadav Amit, Amy Tai, Michael WeiEuroSys 2020 · 32 次引用
相关 Paper
- WASP: Workload-Aware Self-Replicating Page-Tables for NUMA ServersHongliang Qu, Zhibin YuASPLOS 2024 · 7 次引用
- PaCaR: Improved Buffered I/O Locality on NUMA Systems with Page Cache ReplicationJérôme Coquisart, Julien Sopena, Redha GouicemEuroSys 2026
- Fast local page-tables for virtualized NUMA servers with vMitosisAshish Panwar, Reto Achermann, Arkaprava Basu, Abhishek Bhattacharjee 等ASPLOS 2021 · 29 次引用
- Learning to Walk: Architecting Learned Virtual Memory TranslationKaiyang Zhao, Yuang Chen, Xenia Xu, Dan Schatzberg 等MICRO 2025 · 2 次引用
- Hydra : Resilient and Highly Available Remote MemoryYoungmoon Lee, Hasan Al Maruf, Mosharaf Chowdhury, Asaf Cidon 等FAST 2022
