Cache Coherence and Single-Writer Ownership
Trace a shared line from several readers to one writer and distinguish cache ownership from ordering between different locations.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Writable ownership must exclude conflicting copies
Suppose two cores hold readable copies of one line. To modify it in a typical invalidation protocol, one obtains writable authority and the other’s conflicting copy is invalidated. A later read by the other core requests a current value under the protocol. Many readers can coexist when no core has exclusive write authority. A dirty owner may need to supply bytes that have not yet reached a shared backing level.
Coherence constrains one location or coherence unit
This mechanism helps ensure processors agree on the order of writes to a location. It does not settle what ordering a program can observe across independent locations. Consult the synchronization and memory model for that. Coherence typically operates on entire lines, which creates false sharing when unrelated variables lie together. Advanced cache coherence develops protocols and their state invariants.[1]