wire / wire-format / cache-coherence-moesi
MOESI extends MESI with an Owned (O) state: Modified (M), Owned (O), Exclusive (E), Shared (S), Invalid (I). Owned state: line is dirty and shared (this cache is responsible for writing back; others have read-only copies). Reduces write-backs compared to MESI (which requires M->I transition on snoop write, forcing a write-back).
aka: MOESI cache coherence protocol
spec: MOESI (cache coherence)
MOESI extends MESI with an Owned (O) state: Modified (M), Owned (O), Exclusive (E), Shared (S), Invalid (I). Owned state: line is dirty and shared (this cache is responsible for writing back; others have read-only copies). Reduces write-backs compared to MESI (which requires M->I transition on snoop write, forcing a write-back).
| field | size | meaning |
|---|---|---|
| Modified (M) | state | Dirty and exclusive. Write back on eviction. |
| Owned (O) | state | Dirty and shared. This cache owns the line (responsible for write-back). Others have read-only (S) copies. |
| Exclusive (E) | state | Clean and exclusive. |
| Shared (S) | state | Clean and shared (read-only). |
| Invalid (I) | state | Not valid. |
| M->O transition | snoop read | When another cache reads a Modified line, it transitions to Owned (instead of Shared in MESI), keeping the dirty data in this cache. |
| O->I transition | snoop write | On a snoop write, Owned transitions to Invalid (write back first). |
example:
00 00 00 00
MOESI states (placeholder)
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/cache-coherence-moesi
or /wire-format/cache-coherence-moesi.json