
A primer on memory consistency and cache coherence
Daniel J. Sorin · 2011
Programming and computer science › Electronics and computer architecture
#5,353 most recommended
Hacker News
8
mentions by 7 people · top 35% of 15,732 books
Open Library
—
No ratings yet
1 want to read
Wikipedia
—
No article yet
About the book
The book covers shared-memory multiprocessors, in which multiple cores read and write one address space through their caches. It focuses on two hardware-level contracts: the memory consistency model, which defines the order in which loads and stores may appear to take effect, and cache coherence, which keeps multiple cached copies of a location up to date. It is a conceptual primer that uses concrete examples from real systems. The book's central point is that consistency and coherence are distinct but related. Coherence concerns the behavior of a single memory location, while consistency specifies ordering across locations and is the contract that programmers and compilers depend on. It presents coherence protocols as solutions to a shared set of problems, and it treats relaxed consistency models as design choices that trade simpler reasoning for performance. Correctness is framed in terms of precisely stated invariants and orderings, which are the basis for reasoning about both designs and their verification.
Written by Claude from what it knows of this book.
What Hacker News says 86% recommend · 0% critical
In the commenters’ own words
Start here: "The Microarchitecture of Superscalar Processors," J.E. Smith and G.S. Sohi, Proc. IEEE, vol. 83 (1995) https://doi.org/10.1109/5.476078…
If cache coherence is relevant to you, I strongly recommend the book “A Primer on Memory Consistency and Cache Coherence”. It’s much easier to understand the…
What Open Library readers say
No Open Library reader has rated it yet.
- 1 want to read
- 0 reading
- 1 have read
What critics say, via Wikipedia
No Wikipedia article about this book yet, so no critics to quote.
Reddit communities — coming later
Details
- First published
- 2011
- ISBN
- 9781608455645
- Editions known
- 12 at Open Library
- Open Library
- OL16934366W
Cache memoryDistributed shared memoryMemory management (Computer science)Memory management (computer science)
Read next: its neighbours on the mosaic
The art of multiprocessor programmingMaurice Herlihy · 2008 · recommended by 27 people · 2 people recommended both
Hardware and Software Support for VirtualizationEdouard Bugnion · 2017 · recommended by 5 people · loosely similar by subject
UNIX systems for modern architecturesCurt Schimmel · 1994 · recommended by 4 people · similar by subject and what people say about it
The Pentium ChroniclesRobert P. Colwell · 2005 · recommended by 14 people · loosely similar by subject
Modern X86 Assembly Language ProgrammingDaniel Kusswurm · 2018 · recommended by 2 people · loosely similar by subject
C Concurrency in ActionAnthony Williams · 2012 · recommended by 14 people · similar by subject and what people say about it
Memory systemsBruce Jacob · 2008 · recommended by 2 people · similar by subject and what people say about it
Rust Atomics and LocksMara Bos · 2022 · recommended by 18 people · similar by subject and what people say about it
Introduction to Reliable and Secure Distributed ProgrammingChristian Cachin · 2011 · recommended by 2 people · loosely similar by subject
SSA-Based Compiler DesignFabrice Rastello · 2021 · recommended by 3 people · loosely similar by subject
Computer organization and architectureWilliam Stallings · 1987 · recommended by 3 people · similar by subject and what people say about it
Computer architectureJohn L. Hennessy · 1989 · recommended by 59 people · similar by subject and what people say about it
Engineering a compilerKeith D. Cooper · 2004 · recommended by 39 people · similar by subject and what people say about it
Shared-Memory SynchronizationMichael L. Scott · 2013 · recommended by 2 people · similar by subject and what people say about it
Computer organization and designDavid A. Patterson · 2004 · recommended by 50 people · similar by subject and what people say about it
Structured Computer OrganizationAndrew S. Tanenbaum · 1975 · recommended by 21 people · similar by subject and what people say about it
Modern processor designJohn Paul Shen · 2005 · recommended by 6 people · similar by subject and what people say about it
Advanced compiler design and implementationSteven S. Muchnick · 1997 · recommended by 13 people · similar by subject and what people say about it
Modern compiler implementation in CAndrew W. Appel · 2004 · recommended by 8 people · similar by subject and what people say about it
C++ PrimerStanley B. Lippman · 1989 · recommended by 53 people · similar by subject and what people say about it
Core memoryMark Richards · 2007 · recommended by 5 people · similar by subject and what people say about it
The architecture of concurrent programsPer Brinch Hansen · 1977 · recommended by 2 people · similar by subject and what people say about it
Advanced Computer ArchitectureKai Hwang · 1992 · recommended by 1 person · similar by subject and what people say about it
Memory as a programming concept in C and C++F. Franěk · 2004 · recommended by 4 people · similar by subject and what people say about it