Lock–Unlock

Author:

Guerraoui Rachid1,Guiroux Hugo2,Lachaize Renaud2,Quéma Vivien2,Trigonakis Vasileios3

Affiliation:

1. EPFL, Lausanne, Switzerland

2. Université Grenoble Alpes

3. Oracle Labs, Zurich, Switzerland

Abstract

A plethora of optimized mutex lock algorithms have been designed over the past 25 years to mitigate performance bottlenecks related to critical sections and locks. Unfortunately, there is currently no broad study of the behavior of these optimized lock algorithms on realistic applications that consider different performance metrics, such as energy efficiency and tail latency. In this article, we perform a thorough and practical analysis of synchronization, with the goal of providing software developers with enough information to design fast, scalable, and energy-efficient synchronization in their systems. First, we perform a performance study of 28 state-of-the-art mutex lock algorithms, on 40 applications, on four different multicore machines. We consider not only throughput (traditionally the main performance metric) but also energy efficiency and tail latency, which are becoming increasingly important. Second, we present an in-depth analysis in which we summarize our findings for all the studied applications. In particular, we describe nine different lock-related performance bottlenecks, and we propose six guidelines helping software developers with their choice of a lock algorithm according to the different lock properties and the application characteristics. From our detailed analysis, we make several observations regarding locking algorithms and application behaviors, several of which have not been previously discovered: (i) applications stress not only the lock–unlock interface but also the full locking API (e.g., trylocks, condition variables); (ii) the memory footprint of a lock can directly affect the application performance; (iii) for many applications, the interaction between locks and scheduling is an important application performance factor; (vi) lock tail latencies may or may not affect application tail latency; (v) no single lock is systematically the best; (vi) choosing the best lock is difficult; and (vii) energy efficiency and throughput go hand in hand in the context of lock algorithms. These findings highlight that locking involves more considerations than the simple lock/unlock interface and call for further research on designing low-memory footprint adaptive locks that fully and efficiently support the full lock interface, and consider all performance metrics.

Funder

Agence Nationale de la Recherche

European Research Council

AGIR

bpi

emsoc

fsn

Publisher

Association for Computing Machinery (ACM)

Subject

General Computer Science

Reference94 articles.

1. Amalgamated Lock-Elision

2. Adaptive backoff synchronization techniques

3. Fast, multicore-scalable, low-fragmentation memory allocation through large virtual memory and global data structures

4. Samy Al Bahra. 2015. Concurrency Kit. Retrieved November 8 2018 from http://concurrencykit.org/ Samy Al Bahra. 2015. Concurrency Kit. Retrieved November 8 2018 from http://concurrencykit.org/

5. SyncPerf

Cited by 17 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. CAL: Core-Aware Lock for the big.LITTLE Multicore Architecture;Applied Sciences;2024-07-24

2. TCSA: Efficient Localization of Busy-Wait Synchronization Bugs for Latency-Critical Applications;IEEE Transactions on Parallel and Distributed Systems;2024-02

3. Leaf: Modularity for Temporary Sharing in Separation Logic;Proceedings of the ACM on Programming Languages;2023-10-16

4. The Last-Level-Cache Interference in Guest Performance: a Case-Study with Zephyr OS;2023 26th Euromicro Conference on Digital System Design (DSD);2023-09-06

5. Protecting Locks Against Unbalanced Unlock();Proceedings of the 35th ACM Symposium on Parallelism in Algorithms and Architectures;2023-06-17

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3