PPoPP 2016
Sat 12 - Wed 16 March 2016 Barcelona, Spain
Tue 15 Mar 2016 14:20 - 14:45 at Mallorca+Menorca - Locking Chair(s): Michael Scott

The MCS lock is one of the most prevalent queuing locks. It provides fair scheduling and high performance on massively parallel systems. However, the MCS lock mandates a bring-your-own-context policy: each lock user must provide an additional context (i.e., a queue node) to interact with the lock. This paper proposes MCSg, a variant of the MCS lock that relaxes this restriction.

Our key observation is that not all lock users are created equal. We analyzed how locks are used in massively-parallel modern systems, such as NUMA-aware operating systems and databases. We found that such systems often have a small number of “regular” code paths that enter the lock very frequently. Such code paths are the primary beneficiary of the high scalability of MCS locks.

However, there are also many “guest” code paths that infrequently enter the lock and do not need the same degree of fairness to access the lock (e.g., background tasks that only run periodically with lower priority). These guest users, which are typically spread out in various modules of the software, prefer context-free locks, such as ticket locks.

MCSg provides these guests a context-free interface while regular users still enjoy the benefits provided by MCS. It can also be used as a drop-in replacement of MCS for more advanced locks, such as cohort locking. We also propose MCSg++, an extended version of MCSg, which avoids guest starvation and non-FIFO behaviors that might happen with MCSg.

Our evaluation using microbenchmarks and the TPC-C database benchmark on a 16-socket, 240-core server shows that both MCSg and MCSg++ preserve the benefits of MCS for regular users while providing a context-free interface for guests.

Tue 15 Mar
Times are displayed in time zone: Greenwich Mean Time : Belfast change

14:20 - 15:35: LockingMain conference at Mallorca+Menorca
Chair(s): Michael ScottUniversity of Rochester
14:20 - 14:45
Be My Guest - MCS Lock Now Welcomes Guests Artifact Evaluation
Main conference
Tianzheng WangUniversity of Toronto, Milind ChabbiRice University, Hideaki KimuraHP Labs
Link to publication DOI
14:45 - 15:10
Contention-Conscious, Locality-Preserving Locks
Main conference
Milind ChabbiRice University, John Mellor-CrummeyRice University
Link to publication DOI
15:10 - 15:35
DomLock: A New Multi-Granularity Locking Technique for HierarchiesDistinguished Paper AwardArtifact Evaluation
Main conference
Saurabh Kalikar, Rupesh NasreIIT Madras, India
Link to publication DOI