Speculative Read Write Locks

被引:2
|
作者
Issa, Shady [1 ]
Romano, Paolo [1 ]
Lopes, Tiago [1 ]
机构
[1] Univ Lisbon, Inst Super Tecn, INESC ID, Lisbon, Portugal
来源
MIDDLEWARE'18: PROCEEDINGS OF THE 2018 ACM/IFIP/USENIX MIDDLEWARE CONFERENCE | 2018年
关键词
SYNCHRONIZATION;
D O I
10.1145/3274808.3274825
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Hardware Transactional Memory (HTM) has recently entered the realm of mainstream computing thanks to its integration in processors commercialized by major industrial manufacturers. HTM provides highly-efficient, hardware-assisted synchronization mechanisms for concurrent programs. Unfortunately, though, existing HTM implementations also suffer from severe limitations that are inherently related to their best-effort, hardware-based design. This work introduces SpRWL (Speculative Read Write Lock), a HTM-based implementation of read-write locks that provides a key benefit: allowing readers to execute outside the scope of hardware transactions, thus, effectively sparing them from any HTM-related limitation. SpRWL is the first HTM-based read-write lock implementation to support the concurrent execution of uninstrumented readers, while assuming a standard transaction demarcation API that is universally supported by any HTM implementation. Via an extensive experimental study, we show that SpRWL can achieve striking performance gains (up to 16x) with respect to state of the art read-write lock implementations based not only on pessimistic/lock-based schemes, but also on HTM-based techniques that exploit specific hardware mechanisms currently supported solely by a restricted number of architectures.
引用
收藏
页码:214 / 226
页数:13
相关论文
共 50 条
  • [31] Write plus Sync: Software Cache Write Covert Channels Exploiting Memory-Disk Synchronization
    Chen, Congcong
    Cui, Jinhua
    Qu, Gang
    Zhang, Jiliang
    IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY, 2024, 19 : 8066 - 8078
  • [32] Fairer and More Scalable Reader-Writer Locks by Optimizing Queue Management
    Hoshino, Takashi
    Taura, Kenjiro
    PROCEEDINGS OF THE 2025 THE 30TH ACM SIGPLAN ANNUAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF PARALLEL PROGRAMMING, PPOPP 2025, 2025, : 115 - 127
  • [33] Don't forget about synchronization! Guidelines for using locks on graphics processing units
    Nelson, Jacob
    Miller, dePaul
    Palmieri, Roberto
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2022, 34 (02)
  • [34] Lock reservation: Java']Java locks can mostly do without atomic operations
    Kawachiya, K
    Koseki, A
    Onodera, T
    ACM SIGPLAN NOTICES, 2002, 37 (11) : 130 - 141
  • [35] A Universal Method for Task Allocation on FP-FPS Multiprocessor Systems with Spin Locks
    Zhao, Shuai
    Chen, Nan
    Fang, Yinjie
    Li, Zhao
    Chang, Wanli
    2023 60TH ACM/IEEE DESIGN AUTOMATION CONFERENCE, DAC, 2023,
  • [36] High-Efficient Queue-Based Spin Locks for Network-on-Chip Processors
    Wei, Zhenqi
    Liu, Peilin
    Sun, Rongdi
    Ying, Rendong
    2014 IEEE ASIA PACIFIC CONFERENCE ON CIRCUITS AND SYSTEMS (APCCAS), 2014, : 260 - 263
  • [37] A Unified Blocking Analysis for Parallel Tasks With Spin Locks Under Global Fixed Priority Scheduling
    Jiang, Xu
    Chen, Zewei
    Yang, Maolin
    Guan, Nan
    Tang, Yue
    Wang, Yi
    IEEE TRANSACTIONS ON COMPUTERS, 2023, 72 (01) : 15 - 28
  • [38] Efficient, Distributed, and Non-Speculative Multi-Address Atomic Operations
    Jose Gomez-Hernandez, Eduardo
    Cebrian, Juan M.
    Titos-Gil, Ruben
    Kaxiras, Stefanos
    Ros, Alberto
    PROCEEDINGS OF 54TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, MICRO 2021, 2021, : 337 - 349
  • [39] Accelerating by Idling: How Speculative Delays Improve Performance of Message-Oriented Systems
    Prokopec, Aleksandar
    EURO-PAR 2017: PARALLEL PROCESSING, 2017, 10417 : 177 - 191
  • [40] Efficient Non-Blocking Event Management for Speculative Parallel Discrete Event Simulation
    Piccione, Andrea
    Pellegrini, Alessandro
    PROCEEDINGS OF THE 38TH ACM SIGSIM INTERNATIONAL CONFERENCE ON PRINCIPLES OF ADVANCED DISCRETE SIMULATION, ACM SIGSIM-PADS 2024, 2024, : 52 - 56