Thermometer: profile-guided btb replacement for data center applications
Shixin Song, Tanvir Ahmed Khan, Sara Mahdizadeh-Shahri, Akshitha Sriraman, Niranjan K. Soundararajan, Sreenivas Subramoney, Daniel A. Jiménez, Heiner Litz, Baris Kasikci
Abstract
Modern processors employ a decoupled frontend with Fetch Directed Instruction Prefetching (FDIP) to avoid frontend stalls in data center applications. However, the large branch footprint of data center applications precipitates frequent Branch Target Buffer (BTB) misses that prohibit FDIP from eliminating more than 40% of all frontend stalls. We find that the state-of-the-art BTB optimization techniques (e.g., BTB prefetching and replacement mechanisms) cannot eliminate these misses due to their inadequate understanding of branch reuse behavior in data center applications.
In this paper, we first perform a comprehensive characterization of the branch behavior of data center applications, and determine that identifying optimal BTB replacement decisions requires considering both transient and holistic (i.e., across the entire execution) branch behavior. We then present Thermometer, a novel BTB replacement technique that realizes the holistic branch behavior via a profile-guided analysis. Based on the collected profile, Thermometer generates useful BTB replacement hints that the underlying hardware can leverage. We evaluate Thermometer using 13 widelyused data center applications and demonstrate that it provides an average speedup of 8.7% (0.4%-64.9%) while outperforming the state-of-the-art BTB replacement techniques by 5.6× (on average, the best performing prior work achieves 1.5% speedup). We also demonstrate that Thermometer achieves a performance speedup that is, on average, 83.6% of the speedup achieved by the optimal BTB replacement policy.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Twig: Profile-Guided BTB Prefetching for Data Center Applications cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Twig: Profile-Guided BTB Prefetching for Data Center Applications cites Classifying Memory Access Patterns for Prefetching
- Twig: Profile-Guided BTB Prefetching for Data Center Applications cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- Mira: A Program-Behavior-Guided Far Memory System cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Mira: A Program-Behavior-Guided Far Memory System cites Twig: Profile-Guided BTB Prefetching for Data Center Applications
- Mira: A Program-Behavior-Guided Far Memory System cites APT-GET: profile-guided timely software prefetching
- Mira: A Program-Behavior-Guided Far Memory System cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites Twig: Profile-Guided BTB Prefetching for Data Center Applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites APT-GET: profile-guided timely software prefetching
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites OCOLOS: Online COde Layout OptimizationS
- OCOLOS: Online COde Layout OptimizationS cites Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- APT-GET: profile-guided timely software prefetching cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- APT-GET: profile-guided timely software prefetching cites Twig: Profile-Guided BTB Prefetching for Data Center Applications
- APT-GET: profile-guided timely software prefetching cites Classifying Memory Access Patterns for Prefetching
- APT-GET: profile-guided timely software prefetching cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- OCOLOS: Online COde Layout OptimizationS cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- OCOLOS: Online COde Layout OptimizationS cites Twig: Profile-Guided BTB Prefetching for Data Center Applications
- OCOLOS: Online COde Layout OptimizationS cites APT-GET: profile-guided timely software prefetching
- OCOLOS: Online COde Layout OptimizationS cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
- I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing cites Classifying Memory Access Patterns for Prefetching
- μManycore: A Cloud-Native CPU for Tail at Scale cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
- μManycore: A Cloud-Native CPU for Tail at Scale cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
Cited by top-tier papers17
- Whisper: Profile-Guided Branch Misprediction Elimination for Data Center ApplicationsTanvir Ahmed Khan, Muhammed Ugur, Krishnendra Nathella, Dam Sunwoo et al.MICRO 2022 · 25 citations
- APT-GET: profile-guided timely software prefetchingSaba Jamilan, Tanvir Ahmed Khan, Grant Ayers, Baris Kasikci et al.EuroSys 2022 · 25 citations
- Mira: A Program-Behavior-Guided Far Memory SystemZhiyuan Guo, Zijian He, Yiying ZhangSOSP 2023 · 22 citations
- μManycore: A Cloud-Native CPU for Tail at ScaleJovan Stojkovic, Chunao Liu, Muhammad Shahbaz, Josep TorrellasISCA 2023 · 16 citations
- OCOLOS: Online COde Layout OptimizationSYuxuan Zhang, Tanvir Ahmed Khan, Gilles Pokam, Baris Kasikci et al.MICRO 2022 · 14 citations
Builds on16
- An Imitation Learning Approach for Cache ReplacementEvan Zheran Liu, Milad Hashemi, Kevin Swersky, Parthasarathy Ranganathan et al.ICML 2020 · 108 citations
- Classifying Memory Access Patterns for PrefetchingGrant Ayers, Heiner Litz, Christos Kozyrakis, Parthasarathy RanganathanASPLOS 2020 · 83 citations
- I-SPY: Context-Driven Conditional Instruction Prefetching with CoalescingTanvir Ahmed Khan, Akshitha Sriraman, Joseph Devietti, Gilles Pokam et al.MICRO 2020 · 37 citations
- Ripple: Profile-Guided Instruction Cache Replacement for Data Center ApplicationsTanvir Ahmed Khan, Dexin Zhang, Akshitha Sriraman, Joseph Devietti et al.ISCA 2021 · 33 citations
- Twig: Profile-Guided BTB Prefetching for Data Center ApplicationsTanvir Ahmed Khan, Nathan Brown, Akshitha Sriraman, Niranjan K. Soundararajan et al.MICRO 2021 · 33 citations
Related papers
- Skia: Exposing Shadow BranchesChrysanthos Pepi, Bhargav Reddy Godala, Krishnam Tibrewala, Gino A. Chacon et al.ASPLOS 2025 · 2 citations
- PDede: Partitioned, Deduplicated, Delta Branch Target BufferNiranjan K. Soundararajan, Peter Braun, Tanvir Ahmed Khan, Baris Kasikci et al.MICRO 2021 · 22 citations
- UDP: Utility-Driven Fetch Directed Instruction PrefetchingSurim Oh, Mingsheng Xu, Tanvir Ahmed Khan, Baris Kasikci et al.ISCA 2024 · 12 citations
- Divide and Conquer Frontend BottleneckAli Ansari, Pejman Lotfi-Kamran, Hamid Sarbazi-AzadISCA 2020 · 28 citations
- PDIP: Priority Directed Instruction PrefetchingBhargav Reddy Godala, Sankara Prasad Ramesh, Gilles A. Pokam, Jared Stark et al.ASPLOS 2024 · 17 citations
