Lune

PPoPP2020Top-tier venue

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

Nian Liu, Binyu Zang, Haibo Chen

Abstract

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.

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.

6 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

  • Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMM cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Asymmetry-aware scalable locking cites CLoF: A Compositional Lock Framework for Multi-level NUMA Systems
  • CLoF: A Compositional Lock Framework for Multi-level NUMA Systems cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

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

Related papers

  1. LazyBarrier: Reconstructing Android IO Stack for Barrier-Enabled Flash StorageYuanyi Zhang, Heng Zhang, Wenbin Cao, Xing He et al.ASPLOS 2024 · 5 citations
  2. No Rush in Executing Atomic InstructionsAshkan Asgharzadeh, Josué Feliu, Manuel E. Acacio, Stefanos Kaxiras et al.HPCA 2025
  3. Putting Weak Memory in Order via a Promising Intermediate RepresentationSung-Hwan Lee, Minki Cho, Roy David Margalit, Chung-Kil Hur et al.PLDI 2023 · 5 citations
  4. Free atomics: hardware atomic operations without fencesAshkan Asgharzadeh, Juan M. Cebrian, Arthur Perais, Stefanos Kaxiras et al.ISCA 2022 · 13 citations
  5. Execution Dependence Extension (EDE): ISA Support for Eliminating FencesThomas Shull, Ilias Vougioukas, Nikos Nikoleris, Wendy Elsasser et al.ISCA 2021 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines