Twig: Profile-Guided BTB Prefetching for Data Center Applications
Tanvir Ahmed Khan, Nathan Brown, Akshitha Sriraman, Niranjan K. Soundararajan, Rakesh Kumar, Joseph Devietti, Sreenivas Subramoney, Gilles A. Pokam, Heiner Litz, Baris Kasikci
摘要
Modern data center applications have deep software stacks, with instruction footprints that are orders of magnitude larger than typical instruction cache (I-cache) sizes. To efficiently prefetch instructions into the I-cache despite large application footprints, modern server-class processors implement a decoupled frontend with Fetch Directed Instruction Prefetching (FDIP). In this work, we first characterize the limitations of a decoupled frontend processor with FDIP and find that FDIP suffers from significant Branch Target Buffer (BTB) misses. We also find that existing techniques (e.g., stream prefetchers and predecoders) are unable to mitigate these misses, as they rely on an incomplete understanding of a program's branching behavior.
To address the shortcomings of existing BTB prefetching techniques, we propose Twig, a novel profile-guided BTB prefetching mechanism. Twig analyzes a production binary's execution profile to identify critical BTB misses and inject BTB prefetch instructions into code. Additionally, Twig coalesces multiple non-contiguous BTB prefetches to improve the BTB's locality. Twig exposes these techniques via new BTB prefetch instructions. Since Twig prefetches BTB entries without modifying the underlying BTB organization, it is easy to adopt in modern processors. We study Twig's behavior across nine widely-used data center applications, and demonstrate that it achieves an average 20.86% (up to 145%) performance speedup
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Thermometer: profile-guided btb replacement for data center applications 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Thermometer: profile-guided btb replacement for data center applications 引用了 Classifying Memory Access Patterns for Prefetching
- Thermometer: profile-guided btb replacement for data center applications 引用了 PDede: Partitioned, Deduplicated, Delta Branch Target Buffer
- Thermometer: profile-guided btb replacement for data center applications 引用了 CRISP: critical slice prefetching
- Thermometer: profile-guided btb replacement for data center applications 引用了 APT-GET: profile-guided timely software prefetching
- APT-GET: profile-guided timely software prefetching 引用了 Thermometer: profile-guided btb replacement for data center applications
- Thermometer: profile-guided btb replacement for data center applications 引用了 Divide and Conquer Frontend Bottleneck
- Thermometer: profile-guided btb replacement for data center applications 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- PDede: Partitioned, Deduplicated, Delta Branch Target Buffer 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- PDede: Partitioned, Deduplicated, Delta Branch Target Buffer 引用了 Classifying Memory Access Patterns for Prefetching
- PDede: Partitioned, Deduplicated, Delta Branch Target Buffer 引用了 Divide and Conquer Frontend Bottleneck
- PDede: Partitioned, Deduplicated, Delta Branch Target Buffer 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 Thermometer: profile-guided btb replacement for data center applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 PDede: Partitioned, Deduplicated, Delta Branch Target Buffer
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 CRISP: critical slice prefetching
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 APT-GET: profile-guided timely software prefetching
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- CRISP: critical slice prefetching 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- CRISP: critical slice prefetching 引用了 Classifying Memory Access Patterns for Prefetching
- CRISP: critical slice prefetching 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- APT-GET: profile-guided timely software prefetching 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- APT-GET: profile-guided timely software prefetching 引用了 Classifying Memory Access Patterns for Prefetching
- APT-GET: profile-guided timely software prefetching 引用了 CRISP: critical slice prefetching
- APT-GET: profile-guided timely software prefetching 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing 引用了 Classifying Memory Access Patterns for Prefetching
引用它的顶会 Paper24
- CRISP: critical slice prefetchingHeiner Litz, Grant Ayers, Parthasarathy RanganathanASPLOS 2022 · 33 次引用
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center ApplicationsTanvir Ahmed Khan, Muhammed Ugur, Krishnendra Nathella, Dam Sunwoo 等MICRO 2022 · 25 次引用
- APT-GET: profile-guided timely software prefetchingSaba Jamilan, Tanvir Ahmed Khan, Grant Ayers, Baris Kasikci 等EuroSys 2022 · 25 次引用
- Thermometer: profile-guided btb replacement for data center applicationsShixin Song, Tanvir Ahmed Khan, Sara Mahdizadeh-Shahri, Akshitha Sriraman 等ISCA 2022 · 23 次引用
- PDede: Partitioned, Deduplicated, Delta Branch Target BufferNiranjan K. Soundararajan, Peter Braun, Tanvir Ahmed Khan, Baris Kasikci 等MICRO 2021 · 22 次引用
它引用的 Paper5
- Classifying Memory Access Patterns for PrefetchingGrant Ayers, Heiner Litz, Christos Kozyrakis, Parthasarathy RanganathanASPLOS 2020 · 83 次引用
- I-SPY: Context-Driven Conditional Instruction Prefetching with CoalescingTanvir Ahmed Khan, Akshitha Sriraman, Joseph Devietti, Gilles Pokam 等MICRO 2020 · 37 次引用
- Ripple: Profile-Guided Instruction Cache Replacement for Data Center ApplicationsTanvir Ahmed Khan, Dexin Zhang, Akshitha Sriraman, Joseph Devietti 等ISCA 2021 · 33 次引用
- Divide and Conquer Frontend BottleneckAli Ansari, Pejman Lotfi-Kamran, Hamid Sarbazi-AzadISCA 2020 · 28 次引用
- PDede: Partitioned, Deduplicated, Delta Branch Target BufferNiranjan K. Soundararajan, Peter Braun, Tanvir Ahmed Khan, Baris Kasikci 等MICRO 2021 · 22 次引用
相关 Paper
- Skia: Exposing Shadow BranchesChrysanthos Pepi, Bhargav Reddy Godala, Krishnam Tibrewala, Gino A. Chacon 等ASPLOS 2025 · 2 次引用
- PDIP: Priority Directed Instruction PrefetchingBhargav Reddy Godala, Sankara Prasad Ramesh, Gilles A. Pokam, Jared Stark 等ASPLOS 2024 · 17 次引用
- UDP: Utility-Driven Fetch Directed Instruction PrefetchingSurim Oh, Mingsheng Xu, Tanvir Ahmed Khan, Baris Kasikci 等ISCA 2024 · 12 次引用
- Alternate Path μ-op Cache PrefetchingSawan Singh, Arthur Perais, Alexandra Jimborean, Alberto RosISCA 2024 · 4 次引用
- AVM-BTB: Adaptive and Virtualized Multi-level Branch Target BufferYunzhe Liu, Xinyu Li, Tingting Zhang, Tianyi Liu 等ISCA 2024 · 6 次引用
