Lune

PPoPP2020顶会

No barrier in the road: a comprehensive study and optimization of ARM barriers

Nian Liu, Binyu Zang, Haibo Chen

摘要

In this paper, we present the first comprehensive performance characterization and optimization of ARM barriers on both mobile and server platforms. We draw a set of observations through several abstracted models and validate them in scenarios where barriers are intensively used. We find that (1) order-preserving approaches without involving the bus significantly outperform other approaches, and (2) the tremendous overhead mostly comes from barriers strictly following remote memory references. Usually, such barriers are inserted when threads are exchanging data, and they are used to ensure the relative order between storing the data to a shared buffer and setting a flag to inform the receiver. Based on the observations, we propose a new mechanism, Pilot, to remove such barriers by leveraging the single-copy atomicity to piggyback the flag with the data. Applying Pilot only requires minor changes to applications and provides 10%-360% performance improvements in multiple benchmarks, which are close to the ideal performance without barriers.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMM 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Asymmetry-aware scalable locking 引用了 CLoF: A Compositional Lock Framework for Multi-level NUMA Systems
  • CLoF: A Compositional Lock Framework for Multi-level NUMA Systems 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu 等ASPLOS 2021 · 40 次引用
  2. AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMMMartin Beck, Koustubha Bhat, Lazar Stricevic, Geng Chen 等ASPLOS 2023 · 9 次引用
  3. Risotto: A Dynamic Binary Translator for Weak Memory Model ArchitecturesRedha Gouicem, Dennis Sprokholt, Jasper Ruehl, Rodrigo C. O. Rocha 等ASPLOS 2023 · 7 次引用
  4. Asymmetry-aware scalable lockingNian Liu, Jinyu Gu, Dahai Tang, Kenli Li 等PPoPP 2022 · 7 次引用
  5. CLoF: A Compositional Lock Framework for Multi-level NUMA SystemsRafael Lourenco de Lima Chehab, Antonio Paolillo, Diogo Behrens, Ming Fu 等SOSP 2021 · 6 次引用

相关 Paper

  1. LazyBarrier: Reconstructing Android IO Stack for Barrier-Enabled Flash StorageYuanyi Zhang, Heng Zhang, Wenbin Cao, Xing He 等ASPLOS 2024 · 5 次引用
  2. No Rush in Executing Atomic InstructionsAshkan Asgharzadeh, Josué Feliu, Manuel E. Acacio, Stefanos Kaxiras 等HPCA 2025
  3. Putting Weak Memory in Order via a Promising Intermediate RepresentationSung-Hwan Lee, Minki Cho, Roy David Margalit, Chung-Kil Hur 等PLDI 2023 · 5 次引用
  4. Free atomics: hardware atomic operations without fencesAshkan Asgharzadeh, Juan M. Cebrian, Arthur Perais, Stefanos Kaxiras 等ISCA 2022 · 13 次引用
  5. Execution Dependence Extension (EDE): ISA Support for Eliminating FencesThomas Shull, Ilias Vougioukas, Nikos Nikoleris, Wendy Elsasser 等ISCA 2021 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖