Scalable queue-based spin locks with timeout

被引:24
|
作者
Scott, ML [1 ]
Scherer, WN [1 ]
机构
[1] Univ Rochester, Dept Comp Sci, Rochester, NY 14627 USA
关键词
D O I
10.1145/568014.379566
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Queue-based spin locks allow programs with busy-wait synchronization to scale to very large multiprocessors, without fear of starvation or performance-destroying contention. So-called try locks, traditionally based on non-scalable test-and-set locks, allow a process to abandon its attempt to acquire a lock after a given amount of time. The process can then pursue an alternative code path, or yield the processor to some other process. We demonstrate that it is possible to obtain both scalability and bounded waiting, using variants of the queue-based locks of Craig, Landin, and Hagersten, and of Mellor-Crummey and Scott. A process that decides to stop waiting for one of these new locks can "link itself out of line" atomically. Single-processor experiments reveal performance penalties of 50-100% for the CLH and MCS try locks in comparison to their standard versions, this marginal cost decreases with larger numbers of processors. We have also compared our queue-based locks to a. traditional test-and-test;-and-set lock with exponential backoff and timeout. At modest (non-zero) levels of contention, the queued locks sacrifice cache locality for fairness, resulting in a worst-case 3X performance penalty. At high levels of contention, however, they display a 1.5-2X performance advantage, with significantly more regular timings and significantly higher rates of acquisition prior to timeout.
引用
收藏
页码:44 / 52
页数:9
相关论文
共 50 条
  • [11] Queue-Based and Adaptive Lock Algorithms for Scalable Resource Allocation on Shared-Memory Multiprocessors
    Deli Zhang
    Brendan Lynch
    Damian Dechev
    International Journal of Parallel Programming, 2015, 43 : 721 - 751
  • [12] Queue-based Broadcast Gossip Algorithm for Consensus
    Kar, Soummya
    Negi, Rohit
    Mahzoon, Majid
    Sahu, Anit Kumar
    2016 54TH ANNUAL ALLERTON CONFERENCE ON COMMUNICATION, CONTROL, AND COMPUTING (ALLERTON), 2016, : 1259 - 1266
  • [13] Queue-based group key agreement protocol
    Office of International Affairs, Texas Tech University, 601 Indiana, Lubbock, TX, United States
    Int. J. Netw. Secur., 2009, 2 (135-142):
  • [14] Robustness of real and virtual queue-based active queue management schemes
    Lakshmikantha, A
    Beck, CL
    Srikant, R
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2005, 13 (01) : 81 - 93
  • [15] Achievable Rates for Queue-Based Timing Stegocodes
    Ezzeddine, Ibtissam
    Moulin, Pierre
    2009 IEEE INFORMATION THEORY WORKSHOP (ITW 2009), 2009, : 379 - 383
  • [16] Queue-based power control in UMTS systems
    Chisci, Luigi
    Mucchi, Lorenzo
    Pecorella, Tommaso
    2005 44TH IEEE CONFERENCE ON DECISION AND CONTROL & EUROPEAN CONTROL CONFERENCE, VOLS 1-8, 2005, : 7440 - 7445
  • [17] A comparison of load-based and queue-based active queue management algorithms
    Kwon, M
    Fahmy, S
    QUALITY OF SERVICE OVER NEXT-GENERATION INTERNET, 2002, 4866 : 35 - 46
  • [18] QUEUE-BASED ROBUST TRAFFIC SIGNAL CONTROL
    Xiao, Lin
    Lo, Hong K.
    TRANSPORTATION AND GEOGRAPHY, VOL 2, 2009, : 705 - 705
  • [19] Queue-Based Rate Control for Low Feedback RLNC
    Fu, Amy
    Sadeghi, Parastoo
    2014 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC), 2014, : 2841 - 2847
  • [20] Microscope: Queue-based Performance Diagnosis for Network Functions
    Gong, Junzhi
    Li, Yuliang
    Anwer, Bilal
    Shaikh, Aman
    Yu, Minlan
    SIGCOMM '20: PROCEEDINGS OF THE 2020 ANNUAL CONFERENCE OF THE ACM SPECIAL INTEREST GROUP ON DATA COMMUNICATION ON THE APPLICATIONS, TECHNOLOGIES, ARCHITECTURES, AND PROTOCOLS FOR COMPUTER COMMUNICATION, 2020, : 390 - 403