CLoF: A Compositional Lock Framework for Multi-level NUMA Systems
Rafael Lourenco de Lima Chehab, Antonio Paolillo, Diogo Behrens, Ming Fu, Hermann Härtig, Haibo Chen
摘要
Efficient locking mechanisms are extremely important to support large-scale concurrency and exploit the performance promises of many-core servers. Implementing an efficient, generic, and correct lock is very challenging due to the differences between various NUMA architectures. The performance impact of architectural/NUMA hierarchy differences between x86 and Armv8 are not yet fully explored, leading to unexpected performance when simply porting NUMAaware locks from x86 to Armv8. Moreover, due to the Armv8 Weak Memory Model (WMM), correctly implementing complicated NUMA-aware locks is very difficult.
We propose a Compositional Lock Framework (CLoF) for multi-level NUMA systems. CLoF composes NUMAoblivious locks in a hierarchy matching the target platform, leading to hundreds of correct by construction NUMA-aware locks. CLoF can automatically select the best lock among them. To show the correctness of CLoF on WMMs, we provide an inductive argument with base and induction steps verified with model checkers. In our evaluation, CLoF locks outperform state-of-the-art NUMA-aware locks in most scenarios, e.g., in a highly contended LevelDB benchmark, our best CLoF locks yield twice the throughput achieved with CNA lock and ShflLock on large x86 and Armv8 servers.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Asymmetry-aware scalable locking 引用了 No barrier in the road: a comprehensive study and optimization of ARM barriers
- Using Dynamically Layered Definite Releases for Verifying the RefFS File System 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
- Using Dynamically Layered Definite Releases for Verifying the RefFS File System 引用了 BWoS: Formally Verified Block-based Work Stealing for Parallel Processing
- VSync: push-button verification and optimization for synchronization primitives on weak memory models 引用了 No barrier in the road: a comprehensive study and optimization of ARM barriers
- BWoS: Formally Verified Block-based Work Stealing for Parallel Processing 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
引用它的顶会 Paper10
- Asymmetry-aware scalable lockingNian Liu, Jinyu Gu, Dahai Tang, Kenli Li 等PPoPP 2022 · 7 次引用
- CPS: A Cooperative Para-virtualized Scheduling Framework for Manycore MachinesYuxuan Liu, Tianqiang Xu, Zeyu Mi, Zhichao Hua 等ASPLOS 2023 · 5 次引用
- BWoS: Formally Verified Block-based Work Stealing for Parallel ProcessingJiawei Wang, Bohdan Trach, Ming Fu, Diogo Behrens 等OSDI 2023 · 5 次引用
- Using Dynamically Layered Definite Releases for Verifying the RefFS File SystemMo Zou, Dong Du, Mingkai Dong, Haibo ChenOSDI 2024 · 4 次引用
- RON: One-Way Circular Shortest Routing to Achieve Efficient and Bounded-waiting SpinlocksShiwu Lo, Han-Ting Lin, Yao-Hung Hsieh, Chao-Ting Lin 等OSDI 2023 · 2 次引用
它引用的 Paper2
- 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 次引用
- No barrier in the road: a comprehensive study and optimization of ARM barriersNian Liu, Binyu Zang, Haibo ChenPPoPP 2020 · 10 次引用
相关 Paper
- Locks as a Resource: Fairly Scheduling Lock Occupation with CFLJonggyu Park, Young Ik EomPPoPP 2024
- Efficient, Scalable, and Fair Locking on Disaggregated Memory with Decentralized CoordinationHanze Zhang, Ke Cheng, Rong Chen, Xingda Wei 等VLDB 2026
- AutoLock: Why Cache Attacks on ARM Are Harder Than You ThinkMarc Green, Leandro Rodrigues Lima, Andreas Zankl, Gorka Irazoqui 等USENIX Security 2017 · 51 次引用
- ShiftLock: Mitigate One-sided RDMA Lock Contention via HandoverJian Gao, Qing Wang, Jiwu ShuFAST 2025 · 10 次引用
- Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory ModelsNicholas Coughlin, Kirsten Winter, Graeme SmithFM 2021 · 16 次引用
