Lune

ASPLOS2022顶会

Every walk's a hit: making page walks single-access cache hits

Chang Hyun Park, Ilias Vougioukas, Andreas Sandberg, David Black-Schaffer

摘要

As memory capacity has outstripped TLB coverage, large data applications suffer from frequent page table walks. We investigate two complementary techniques for addressing this cost: reducing the number of accesses required and reducing the latency of each access. The first approach is accomplished by opportunistically "flattening" the page table: merging two levels of traditional 4 KB page table nodes into a single 2 MB node, thereby reducing the table's depth and the number of indirections required to traverse it. The second is accomplished by biasing the cache replacement algorithm to keep page table entries during periods of high TLB miss rates, as these periods also see high data miss rates and are therefore more likely to benefit from having the smaller page table in the cache than to suffer from increased data cache misses.

We evaluate these approaches for both native and virtualized systems and across a range of realistic memory fragmentation scenarios, describe the limited changes needed in our kernel implementation and hardware design, identify and address challenges related to self-referencing page tables and kernel memory allocation, and compare results across server and mobile systems using both academic and industrial simulators for robustness.

We find that flattening does reduce the number of accesses required on a page walk (to 1.0), but its performance impact (+2.3%) is small due to Page Walker Caches (already 1.5 accesses). Prioritizing caching has a larger effect (+6.8%), and the combination improves performance by +9.2%. Flattening is more effective on virtualized systems (4.4 to 2.8 accesses, +7.1% performance), due to 2D page walks. By combining the two techniques we demonstrate a state-ofthe-art +14.0% performance gain and -8.7% dynamic cache energy and -4.7% dynamic DRAM energy for virtualized execution with very simple hardware and software changes.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 20 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • 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 引用了 Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory Machines
  • Barre Chord: Efficient Virtual Memory Translation for Multi-Chip-Module GPUs 引用了 Enhancing and Exploiting Contiguity for Fast Memory Virtualization
  • Barre Chord: Efficient Virtual Memory Translation for Multi-Chip-Module GPUs 引用了 IDYLL: Enhancing Page Translation in Multi-GPUs via Light Weight PTE Invalidations
  • Translation-optimized Memory Compression for Capacity 引用了 Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory Machines
  • Translation-optimized Memory Compression for Capacity 引用了 Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for Parallelism
  • Translation-optimized Memory Compression for Capacity 引用了 Perforated Page: Supporting Fragmented Memory Allocation for Large Pages
  • Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache Resources 引用了 Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory Machines
  • 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
  • Enhancing and Exploiting Contiguity for Fast Memory Virtualization 引用了 Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory Machines
  • 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 引用了 Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory Machines
  • 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
  • IDYLL: Enhancing Page Translation in Multi-GPUs via Light Weight PTE Invalidations 引用了 Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory Machines
  • IDYLL: Enhancing Page Translation in Multi-GPUs via Light Weight PTE Invalidations 引用了 Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for Parallelism
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper20

  1. Barre Chord: Efficient Virtual Memory Translation for Multi-Chip-Module GPUsYuan Feng, Seonjin Na, Hyesoon Kim, Hyeran JeonISCA 2024 · 20 次引用
  2. Victima: Drastically Increasing Address Translation Reach by Leveraging Underutilized Cache ResourcesKonstantinos Kanellopoulos, Hong Chul Nam, Nisa Bostanci, Rahul Bera 等MICRO 2023 · 16 次引用
  3. IDYLL: Enhancing Page Translation in Multi-GPUs via Light Weight PTE InvalidationsBingyao Li, Yanan Guo, Yueqi Wang, Aamer Jaleel 等MICRO 2023 · 16 次引用
  4. 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 次引用
  5. Translation-optimized Memory Compression for CapacityGagandeep Panwar, Muhammad Laghari, David Bears, Yuqing Liu 等MICRO 2022 · 12 次引用

它引用的 Paper8

  1. Mitosis: Transparently Self-Replicating Page-Tables for Large-Memory MachinesReto Achermann, Ashish Panwar, Abhishek Bhattacharjee, Timothy Roscoe 等ASPLOS 2020 · 62 次引用
  2. Elastic Cuckoo Page Tables: Rethinking Virtual Memory Translation for ParallelismDimitrios Skarlatos, Apostolos Kokolis, Tianyin Xu, Josep TorrellasASPLOS 2020 · 55 次引用
  3. Enhancing and Exploiting Contiguity for Fast Memory VirtualizationChloe Alverti, Stratos Psomadakis, Vasileios Karakostas, Jayneel Gandhi 等ISCA 2020 · 41 次引用
  4. A Comprehensive Analysis of Superpage Management Mechanisms and PoliciesWeixi Zhu, Alan L. Cox, Scott RixnerUSENIX ATC 2020 · 40 次引用
  5. Perforated Page: Supporting Fragmented Memory Allocation for Large PagesChang Hyun Park, Sanghoon Cha, Bokyeong Kim, Youngjin Kwon 等ISCA 2020 · 35 次引用

相关 Paper

  1. Exploiting Page Table Locality for Agile TLB PrefetchingGeorgios Vavouliotis, Lluc Alvarez, Vasileios Karakostas, Konstantinos Nikas 等ISCA 2021 · 34 次引用
  2. Tailored Page SizesFaruk Guvenilir, Yale N. PattISCA 2020 · 22 次引用
  3. PTEMagnet: fine-grained physical memory reservation for faster page walks in public cloudsArtemiy Margaritov, Dmitrii Ustiugov, Amna Shahab, Boris GrotASPLOS 2021 · 19 次引用
  4. Fast local page-tables for virtualized NUMA servers with vMitosisAshish Panwar, Reto Achermann, Arkaprava Basu, Abhishek Bhattacharjee 等ASPLOS 2021 · 29 次引用
  5. Parallel virtualized memory translation with nested elastic cuckoo page tablesJovan Stojkovic, Dimitrios Skarlatos, Apostolos Kokolis, Tianyin Xu 等ASPLOS 2022 · 15 次引用
黄昏的海面,两侧是细线勾勒的悬崖