Mosaic Pages: Big TLB Reach with Small Pages
Krishnan Gosakan, Jaehyun Han, William Kuszmaul, Ibrahim N. Mubarek, Nirjhar Mukherjee, Karthik Sriram, Guido Tagliavini, Evan West, Michael A. Bender, Abhishek Bhattacharjee, Alex Conway, Martin Farach-Colton
摘要
The TLB is increasingly a bottleneck for big data applications. In most designs, the number of TLB entries are highly constrained by latency requirements, and growing much more slowly than the working sets of applications. Many solutions to this problem, such as huge pages, perforated pages, or TLB coalescing, rely on physical contiguity for performance gains, yet the cost of defragmenting memory can easily nullify these gains. This paper introduces mosaic pages, which increase TLB reach by compressing multiple, discrete translations into one TLB entry. Mosaic leverages virtual contiguity for locality, but does not use physical contiguity. Mosaic relies on recent advances in hashing theory to constrain memory mappings, in order to realize this physical address compression without reducing memory utilization or increasing swapping. This paper presents a full-system prototype of Mosaic, in gem5 and modified Linux. In simulation and with comparable hardware to a traditional design, mosaic reduces TLB misses in several workloads by 6-81%. Our results show that Mosaic’s constraints on memory mappings do not harm performance, we never see conflicts before memory is 98% full in our experiments — at which point, a traditional design would also likely swap. Once memory is over-committed, Mosaic swaps fewer pages than Linux in most cases. Finally, we present timing and area analysis for a verilog implementation of the hashing function required on the critical path for the TLB, and show that on a commercial 28nm CMOS process; the circuit runs at a maximum frequency of 4 GHz, indicating that a mosaic TLB is unlikely to affect clock frequency.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- MEMTIS: Efficient Memory Tiering with Dynamic Page Classification and Page Size Determination 引用了 A Comprehensive Analysis of Superpage Management Mechanisms and Policies
- MEMTIS: Efficient Memory Tiering with Dynamic Page Classification and Page Size Determination 引用了 Enhancing and Exploiting Contiguity for Fast Memory Virtualization
- Perforated Page: Supporting Fragmented Memory Allocation for Large Pages 引用了 Enhancing and Exploiting Contiguity for Fast Memory Virtualization
- Enhancing and Exploiting Contiguity for Fast Memory Virtualization 引用了 Perforated Page: Supporting Fragmented Memory Allocation for Large Pages
- Barre Chord: Efficient Virtual Memory Translation for Multi-Chip-Module GPUs 引用了 Enhancing and Exploiting Contiguity for Fast Memory Virtualization
- Parallel virtualized memory translation with nested elastic cuckoo page tables 引用了 Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for Parallelism
- Parallel virtualized memory translation with nested elastic cuckoo page tables 引用了 Perforated Page: Supporting Fragmented Memory Allocation for Large Pages
- Parallel virtualized memory translation with nested elastic cuckoo page tables 引用了 Enhancing and Exploiting Contiguity for Fast Memory Virtualization
- Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache Resources 引用了 Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for Parallelism
- Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache Resources 引用了 Perforated Page: Supporting Fragmented Memory Allocation for Large Pages
- Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache Resources 引用了 Parallel virtualized memory translation with nested elastic cuckoo page tables
- Enhancing and Exploiting Contiguity for Fast Memory Virtualization 引用了 Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for Parallelism
- Utopia: Fast and Efficient Address Translation via Hybrid Restrictive & Flexible Virtual-to-Physical Address Mappings 引用了 Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for Parallelism
- Utopia: Fast and Efficient Address Translation via Hybrid Restrictive & Flexible Virtual-to-Physical Address Mappings 引用了 Perforated Page: Supporting Fragmented Memory Allocation for Large Pages
- Utopia: Fast and Efficient Address Translation via Hybrid Restrictive & Flexible Virtual-to-Physical Address Mappings 引用了 Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache Resources
引用它的顶会 Paper14
- MEMTIS: Efficient Memory Tiering with Dynamic Page Classification and Page Size DeterminationTaehyung Lee, Sumit Kumar Monga, Changwoo Min, Young Ik EomSOSP 2023 · 67 次引用
- Barre Chord: Efficient Virtual Memory Translation for Multi-Chip-Module GPUsYuan Feng, Seonjin Na, Hyesoon Kim, Hyeran JeonISCA 2024 · 20 次引用
- Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache ResourcesKonstantinos Kanellopoulos, Hong Chul Nam, Nisa Bostanci, Rahul Bera 等MICRO 2023 · 16 次引用
- Utopia: Fast and Efficient Address Translation via Hybrid Restrictive & Flexible Virtual-to-Physical Address MappingsKonstantinos Kanellopoulos, Rahul Bera, Kosta Stojiljkovic, F. Nisa Bostanci 等MICRO 2023 · 15 次引用
- Gaze into the Pattern: Characterizing Spatial Patterns with Internal Temporal Correlations for Hardware PrefetchingZixiao Chen, Chentao Wu, Yunfei Gu, Ranhao Jia 等HPCA 2025 · 10 次引用
它引用的 Paper7
- Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for ParallelismDimitrios Skarlatos, Apostolos Kokolis, Tianyin Xu, Josep TorrellasASPLOS 2020 · 55 次引用
- Enhancing and Exploiting Contiguity for Fast Memory VirtualizationChloe Alverti, Stratos Psomadakis, Vasileios Karakostas, Jayneel Gandhi 等ISCA 2020 · 41 次引用
- A Comprehensive Analysis of Superpage Management Mechanisms and PoliciesWeixi Zhu, Alan L. Cox, Scott RixnerUSENIX ATC 2020 · 40 次引用
- Perforated Page: Supporting Fragmented Memory Allocation for Large PagesChang Hyun Park, Sanghoon Cha, Bokyeong Kim, Youngjin Kwon 等ISCA 2020 · 35 次引用
- Parallel virtualized memory translation with nested elastic cuckoo page tablesJovan Stojkovic, Dimitrios Skarlatos, Apostolos Kokolis, Tianyin Xu 等ASPLOS 2022 · 15 次引用
相关 Paper
- DyLeCT: Achieving Huge-page-like Translation Performance for Hardware-compressed MemoryGagandeep Panwar, Muhammad Laghari, Esha Choukse, Xun JianISCA 2024 · 4 次引用
- Memory-Efficient Hashed Page TablesJovan Stojkovic, Namrata Mantri, Dimitrios Skarlatos, Tianyin Xu 等HPCA 2023 · 11 次引用
- Tailored Page SizesFaruk Guvenilir, Yale N. PattISCA 2020 · 22 次引用
- Making Dynamic Page Coalescing Effective on Virtualized CloudsWeiwei Jia, Jiyuan Zhang, Jianchen Shan, Xiaoning DingEuroSys 2023 · 8 次引用
- Elastic Translations: Fast Virtual Memory with Multiple Translation SizesStratos Psomadakis, Chloe Alverti, Vasileios Karakostas, Christos Katsakioris 等MICRO 2024 · 4 次引用
