CASPAR
Authors:
Open Access
- 25 March 2016
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 789-804
Abstract
In multicores, performance-critical synchronization is increasingly performed in a lock-free manner using atomic instructions such as CAS or LL/SC. However, when many processors synchronize on the same variable, performance can still degrade significantly. Contending writes get serialized, creating a non-scalable condition. Past proposals that build hardware queues of synchronizing processors do not fundamentally solve this problem---at best, they help to efficiently serialize the contending writes. This paper proposes a novel architecture that breaks the serialization of hardware queues and enables the queued processors to perform lock-free synchronization in parallel. The architecture, called CASPAR, is able to (1) execute the CASes in the queued-up processors in parallel through eager forwarding of expected values, and (2) validate the CASes in parallel and dequeue groups of processors at a time. The result is highly-scalable synchronization. We evaluate CASPAR with simulations of a 64-core chip. Compared to existing proposals with hardware queues, CASPAR improves the throughput of kernels by 32% on average, and reduces the execution time of the sections considered in lock-free versions of applications by 47% on average. This makes these sections 2.5x faster than in the original applications.Keywords
Funding Information
- Israel Science Foundation (1227/10 and 1749/14)
- National Science Foundation (CCF-1012759, CNS-1116237, and CCF-1536795)
This publication has 54 references indexed in Scilit:
- Fast and Scalable, Lock-Free k-FIFO QueuesLecture Notes in Computer Science, 2013
- OpenMP task scheduling strategies for multicore NUMA systemsThe International Journal of High Performance Computing Applications, 2012
- Data structures in the multicore ageCommunications of the ACM, 2011
- Hazard pointers: safe memory reclamation for lock-free objectsIEEE Transactions on Parallel and Distributed Systems, 2004
- An Optimistic Approach to Lock-Free FIFO QueuesLecture Notes in Computer Science, 2004
- Nonblocking Algorithms and Preemption-Safe Locking on Multiprogrammed Shared Memory MultiprocessorsJournal of Parallel and Distributed Computing, 1998
- Synchronization and communication in the T3E multiprocessorACM SIGPLAN Notices, 1996
- Wait-free synchronizationACM Transactions on Programming Languages and Systems, 1991
- A bridging model for parallel computationCommunications of the ACM, 1990
- Performance measurements on HEP - a pipelined MIMD computerACM SIGARCH Computer Architecture News, 1983