Contention-conscious, locality-preserving locks
Authors:
Open Access
- 27 February 2016
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-14
Abstract
Over the last decade, the growing use of cache-coherent NUMA architectures has spurred the development of numerous locality-preserving mutual exclusion algorithms. NUMA-aware locks such as HCLH, HMCS, and cohort locks exploit locality of reference among nearby threads to deliver high lock throughput under high contention. However, the hierarchical nature of these locality-aware locks increases latency, which reduces the throughput of uncontended or lightly-contended critical sections. To date, no lock design for NUMA systems has delivered both low latency under low contention and high throughput under high contention. In this paper, we describe the design and evaluation of an adaptive mutual exclusion scheme (AHMCS lock), which employs several orthogonal strategies---a hierarchical MCS (HMCS) lock for high throughput under high contention, Lamport's fast path approach for low latency under low contention, an adaptation mechanism that employs hysteresis to balance latency and throughput under moderate contention, and hardware transactional memory for lowest latency in the absence of contention. The result is a top performing lock that has most properties of an ideal mutual exclusion algorithm. AHMCS exploits the strengths of multiple contention management techniques to deliver high performance over a broad range of contention levels. Our empirical evaluations demonstrate the effectiveness of AHMCS over prior art.Keywords
Funding Information
- DOE Office of Science (DE-SC0010473)
This publication has 32 references indexed in Scilit:
- Lightweight Contention Management for Efficient Compare-and-Swap OperationsLecture Notes in Computer Science, 2013
- Data-oriented transaction executionProceedings of the VLDB Endowment, 2010
- Improving OLTP scalability using speculative lock inheritanceProceedings of the VLDB Endowment, 2009
- A Hierarchical CLH Queue Lock2006
- Combining Funnels: A Dynamic Approach to Software CombiningJournal of Parallel and Distributed Computing, 2000
- A fast, scalable mutual exclusion algorithmDistributed Computing, 1995
- A fast, scalable mutual exclusion algorithmDistributed Computing, 1995
- Algorithms for scalable synchronization on shared-memory multiprocessorsACM Transactions on Computer Systems, 1991
- A fast mutual exclusion algorithmACM Transactions on Computer Systems, 1987
- Self-adjusting binary search treesJournal of the ACM, 1985