Lune

MICRO2022顶会

Whisper: Profile-Guided Branch Misprediction Elimination for Data Center Applications

Tanvir Ahmed Khan, Muhammed Ugur, Krishnendra Nathella, Dam Sunwoo, Heiner Litz, Daniel A. Jiménez, Baris Kasikci

摘要

Modern data center applications experience frequent branch mispredictions– degrading performance, increasing cost, and reducing energy efficiency in data centers. Even the state-of the-art branch predictor, TAGE-SC-L, suffers from an average branch Mispredictions Per Kilo Instructions (branch-MPKI) of 3.0 (0.5-7.2) for these applications since their large code footprints exhaust TAGE-SC-L’s intended capacity. In this work, we propose Whisper, a novel profile-guided mechanism to avoid branch mispredictions. Whisper investigates the in-production profile of data center applications to identify precise program contexts that lead to branch mispredictions. Corresponding prediction hints are then inserted into code to strategically avoid those mispredictions during program execution. Whisper presents three novel profile-guided techniques: (1) hashed history correlation which efficiently encodes hard-to-predict correlations in branch history using lightweight Boolean formulas, (2) randomized formula testing which selects a locally-optimal Boolean formula from a randomly selected subset of possible formulas to predict a branch, and (3) the extension of Read-Once Monotone Boolean Formulas with Implication and Converse Non-Implication to improve the branch history coverage of these formulas with minimal overhead. We evaluate Whisper on 12 widely-used data center applications and demonstrate that Whisper enables traditional branch predictors to achieve a speedup close to that of an ideal branch predictor. Specifically, Whisper achieves an average speedup of 2.8% (0.4%-4.6%) by reducing 16.8% (1.7%-32.4%) of branch mispredictions over TAGE-SC-L and outperforms the state-of the-art profile-guided branch prediction mechanisms by 7.9% on average.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Effective Context-Sensitive Memory Dependence Prediction 引用了 BranchNet: A Convolutional Neural Network to Predict Hard-To-Predict Branches
  • Twig: Profile-Guided BTB Prefetching for Data Center Applications 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
  • Twig: Profile-Guided BTB Prefetching for Data Center Applications 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
  • UDP: Utility-Driven Fetch Directed Instruction Prefetching 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
  • UDP: Utility-Driven Fetch Directed Instruction Prefetching 引用了 Twig: Profile-Guided BTB Prefetching for Data Center Applications
  • UDP: Utility-Driven Fetch Directed Instruction Prefetching 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
  • Warming Up a Cold Front-End with Ignite 引用了 Twig: Profile-Guided BTB Prefetching for Data Center Applications
  • Warming Up a Cold Front-End with Ignite 引用了 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 引用了 Twig: Profile-Guided BTB Prefetching for Data Center Applications
  • CRISP: critical slice prefetching 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
  • The Last-Level Branch Predictor 引用了 BranchNet: A Convolutional Neural Network to Predict Hard-To-Predict Branches
  • The Last-Level Branch Predictor 引用了 Warming Up a Cold Front-End with Ignite
  • OCOLOS: Online COde Layout OptimizationS 引用了 Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
  • OCOLOS: Online COde Layout OptimizationS 引用了 Twig: Profile-Guided BTB Prefetching for Data Center Applications
  • OCOLOS: Online COde Layout OptimizationS 引用了 BranchNet: A Convolutional Neural Network to Predict Hard-To-Predict Branches
  • OCOLOS: Online COde Layout OptimizationS 引用了 I-SPY: Context-Driven Conditional Instruction Prefetching with Coalescing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. OCOLOS: Online COde Layout OptimizationSYuxuan Zhang, Tanvir Ahmed Khan, Gilles Pokam, Baris Kasikci 等MICRO 2022 · 14 次引用
  2. UDP: Utility-Driven Fetch Directed Instruction PrefetchingSurim Oh, Mingsheng Xu, Tanvir Ahmed Khan, Baris Kasikci 等ISCA 2024 · 12 次引用
  3. Warming Up a Cold Front-End with IgniteDavid Schall, Andreas Sandberg, Boris GrotMICRO 2023 · 11 次引用
  4. The Last-Level Branch PredictorDavid Schall, Andreas Sandberg, Boris GrotMICRO 2024 · 10 次引用
  5. Effective Context-Sensitive Memory Dependence PredictionSebastian S. Kim, Alberto RosHPCA 2024 · 9 次引用

它引用的 Paper15

  1. BranchNet: A Convolutional Neural Network to Predict Hard-To-Predict BranchesSiavash Zangeneh, Stephen Pruett, Sangkug Lym, Yale N. PattMICRO 2020 · 50 次引用
  2. I-SPY: Context-Driven Conditional Instruction Prefetching with CoalescingTanvir Ahmed Khan, Akshitha Sriraman, Joseph Devietti, Gilles Pokam 等MICRO 2020 · 37 次引用
  3. Ripple: Profile-Guided Instruction Cache Replacement for Data Center ApplicationsTanvir Ahmed Khan, Dexin Zhang, Akshitha Sriraman, Joseph Devietti 等ISCA 2021 · 33 次引用
  4. Twig: Profile-Guided BTB Prefetching for Data Center ApplicationsTanvir Ahmed Khan, Nathan Brown, Akshitha Sriraman, Niranjan K. Soundararajan 等MICRO 2021 · 33 次引用
  5. CRISP: critical slice prefetchingHeiner Litz, Grant Ayers, Parthasarathy RanganathanASPLOS 2022 · 33 次引用

相关 Paper

  1. Thermometer: profile-guided btb replacement for data center applicationsShixin Song, Tanvir Ahmed Khan, Sara Mahdizadeh-Shahri, Akshitha Sriraman 等ISCA 2022 · 23 次引用
  2. Wax: Optimizing Data Center Applications With Stale ProfileTawhid Bhuiyan, Sumya Hoque, Angelica Aparecida Moreira, Tanvir Ahmed KhanASPLOS 2026 · 1 次引用
  3. Alternate Path μ-op Cache PrefetchingSawan Singh, Arthur Perais, Alexandra Jimborean, Alberto RosISCA 2024 · 4 次引用
  4. APT-GET: profile-guided timely software prefetchingSaba Jamilan, Tanvir Ahmed Khan, Grant Ayers, Baris Kasikci 等EuroSys 2022 · 25 次引用
  5. A Lightweight Isolation Mechanism for Secure Branch PredictorsLutan Zhao, Peinan Li, Rui Hou, Michael C. Huang 等DAC 2021 · 29 次引用
黄昏的海面,两侧是细线勾勒的悬崖