Efficient sequential consistency via conflict ordering
Authors:
Open Access
- 3 March 2012
- journal article
- conference paper
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 47 (4) , 273-286
Abstract
Although the sequential consistency (SC) model is the most intuitive, processor designers often choose to support relaxed memory consistency models for higher performance. This is because SC implementations that match the performance of relaxed memory models require post-retirement speculation and its associated hardware costs. In this paper we propose an efficient approach for enforcing SC without requiring post-retirement speculation. While prior SC implementations guarantee SC by explicitly completing memory operations within a processor in program order, we guarantee SC by completing conflicting memory operations, within and across processors, in an order that is consistent with the program order. More specifically, we identify those conflicting memory operations whose ordering is critical for the maintenance of SC and explicitly order them. This allows us to safely (non-speculatively) complete memory operations past pending writes, thus reducing memory ordering stalls. Our experiments with SPLASH-2 programs show that SC can be achieved efficiently, with performance comparable to RMO (relaxed memory order).Keywords
This publication has 28 references indexed in Scilit:
- Memory modelsCommunications of the ACM, 2010
- x86-TSOCommunications of the ACM, 2010
- Race directed random testing of concurrent programs2008
- Implicit Transactional Memory in Kilo-Instruction MultiprocessorsLecture Notes in Computer Science, 2007
- Hiding relaxed memory consistency with a compilerIEEE Transactions on Computers, 2001
- Is SC + ILP = RC?ACM SIGARCH Computer Architecture News, 1999
- Multiprocessors should support simple memory consistency modelsComputer, 1998
- The Mips R10000 superscalar microprocessorIEEE Micro, 1996
- Shared memory consistency models: a tutorialComputer, 1996
- Efficient and correct execution of parallel programs that share memoryACM Transactions on Programming Languages and Systems, 1988