Shared Memory Consistency Models: A Tutorial
Sarita V. Adve, Kourosh Gharachorloo Y · 1995
Parallel systems that support the shared memory abstraction are becoming widely accepted in many areas of computing. Writing correct and efficient programs for such systems requires a formal specification of memory semantics, called a memory consistency model. The most intuitive model—sequential consistency—greatly restricts the use of many performance optimizations commonly used by uniprocessor hardware and compiler designers, thereby reducing the benefit of using a multiprocessor. To alleviate this problem, many current multiprocessors support more relaxed consistency models. Unfortunately, the models supported by various systems differ from each other in subtle yet important ways. Furthermore, precisely defining the semantics of each model often leads to complex specifications that are difficult to understand for typical users and builders of computer systems. The purpose of this tutorial paper is to describe issues related to memory consistency models in a way that would be understandable to most computer professionals. We focus on consistency models proposed for hardware-based shared-memory systems. Many of these models are originally specified with an emphasis on the system optimizations they allow. We retain the system-centric emphasis, but use uniform and simple terminology to describe the different models. We also briefly discuss an alternate programmer-centric view that describes the models in terms of program behavior rather than specific system optimizations.1
Cited by 82 works. doi:10.21236/ada638015
Authors
References
- Alpha architecture reference manual
- Efficient and correct execution of parallel programs that share memory
- The SPARC Architecture Manual
- Memory consistency and event ordering in scalable shared-memory multiprocessors
- The PowerPC Architecture: A Specification for a New Family of RISC Processors
- How to make a multiprocessor computer that correctly executes multiprocess programs
- Two Techniques to Enhance the Performance of Memory Consistency Models.
- A unified formalization of four shared-memory models
- Memory consistency models for shared-memory multiprocessors
- Memory access buffering in multiprocessors