Lune

MICRO2021Top-tier venue

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

Abstract

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

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.

24 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Thermometer: profile-guided btb replacement for data center applications cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
  • Thermometer: profile-guided btb replacement for data center applications cites Classifying Memory Access Patterns for Prefetching
  • Thermometer: profile-guided btb replacement for data center applications cites PDede: Partitioned, Deduplicated, Delta Branch Target Buffer
  • Thermometer: profile-guided btb replacement for data center applications cites CRISP: critical slice prefetching
  • Thermometer: profile-guided btb replacement for data center applications cites APT-GET: profile-guided timely software prefetching
  • APT-GET: profile-guided timely software prefetching cites Thermometer: profile-guided btb replacement for data center applications
  • Thermometer: profile-guided btb replacement for data center applications cites Divide and Conquer Frontend Bottleneck
  • Thermometer: profile-guided btb replacement for data center applications cites I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
  • PDede: Partitioned, Deduplicated, Delta Branch Target Buffer cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
  • PDede: Partitioned, Deduplicated, Delta Branch Target Buffer cites Classifying Memory Access Patterns for Prefetching
  • PDede: Partitioned, Deduplicated, Delta Branch Target Buffer cites Divide and Conquer Frontend Bottleneck
  • PDede: Partitioned, Deduplicated, Delta Branch Target Buffer 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 Thermometer: profile-guided btb replacement for data center applications
  • Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites PDede: Partitioned, Deduplicated, Delta Branch Target Buffer
  • Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications cites CRISP: critical slice prefetching
  • 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 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
  • CRISP: critical slice prefetching cites Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
  • CRISP: critical slice prefetching cites Classifying Memory Access Patterns for Prefetching
  • CRISP: critical slice prefetching 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 Classifying Memory Access Patterns for Prefetching
  • APT-GET: profile-guided timely software prefetching cites CRISP: critical slice prefetching
  • APT-GET: profile-guided timely software prefetching 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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers24

  1. CRISP: critical slice prefetchingHeiner Litz, Grant Ayers, Parthasarathy RanganathanASPLOS 2022 · 33 citations
  2. Whisper: Profile-Guided Branch Misprediction Elimination for Data Center ApplicationsTanvir Ahmed Khan, Muhammed Ugur, Krishnendra Nathella, Dam Sunwoo et al.MICRO 2022 · 25 citations
  3. APT-GET: profile-guided timely software prefetchingSaba Jamilan, Tanvir Ahmed Khan, Grant Ayers, Baris Kasikci et al.EuroSys 2022 · 25 citations
  4. Thermometer: profile-guided btb replacement for data center applicationsShixin Song, Tanvir Ahmed Khan, Sara Mahdizadeh-Shahri, Akshitha Sriraman et al.ISCA 2022 · 23 citations
  5. PDede: Partitioned, Deduplicated, Delta Branch Target BufferNiranjan K. Soundararajan, Peter Braun, Tanvir Ahmed Khan, Baris Kasikci et al.MICRO 2021 · 22 citations

Builds on5

  1. Classifying Memory Access Patterns for PrefetchingGrant Ayers, Heiner Litz, Christos Kozyrakis, Parthasarathy RanganathanASPLOS 2020 · 83 citations
  2. I-SPY: Context-Driven Conditional Instruction Prefetching with CoalescingTanvir Ahmed Khan, Akshitha Sriraman, Joseph Devietti, Gilles Pokam et al.MICRO 2020 · 37 citations
  3. Ripple: Profile-Guided Instruction Cache Replacement for Data Center ApplicationsTanvir Ahmed Khan, Dexin Zhang, Akshitha Sriraman, Joseph Devietti et al.ISCA 2021 · 33 citations
  4. Divide and Conquer Frontend BottleneckAli Ansari, Pejman Lotfi-Kamran, Hamid Sarbazi-AzadISCA 2020 · 28 citations
  5. PDede: Partitioned, Deduplicated, Delta Branch Target BufferNiranjan K. Soundararajan, Peter Braun, Tanvir Ahmed Khan, Baris Kasikci et al.MICRO 2021 · 22 citations

Related papers

  1. Skia: Exposing Shadow BranchesChrysanthos Pepi, Bhargav Reddy Godala, Krishnam Tibrewala, Gino A. Chacon et al.ASPLOS 2025 · 2 citations
  2. PDIP: Priority Directed Instruction PrefetchingBhargav Reddy Godala, Sankara Prasad Ramesh, Gilles A. Pokam, Jared Stark et al.ASPLOS 2024 · 17 citations
  3. UDP: Utility-Driven Fetch Directed Instruction PrefetchingSurim Oh, Mingsheng Xu, Tanvir Ahmed Khan, Baris Kasikci et al.ISCA 2024 · 12 citations
  4. Alternate Path μ-op Cache PrefetchingSawan Singh, Arthur Perais, Alexandra Jimborean, Alberto RosISCA 2024 · 4 citations
  5. AVM-BTB: Adaptive and Virtualized Multi-level Branch Target BufferYunzhe Liu, Xinyu Li, Tingting Zhang, Tianyi Liu et al.ISCA 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines