States
In this protocol, each block in the local cache is in one of these four states:
- Invalid: This block has an incoherent copy of the memory.
- Valid: This block has a coherent copy of the memory. The data may be possibly shared, but its content is not modified.
- Reserved: The block is the only copy of the memory, but it is still coherent. No write-back is needed if the block is replaced.
- Dirty: The block is the only copy of the memory and it is incoherent. This copy was written one or more times. This is the only state that generates a write-back when the block is replaced in the cache.
These states have exactly the same meanings as the four states of the MESI protocol (they are simply listed in reverse order), but this is a simplified form of it that avoids the Read for Ownership operation. Instead, all invalidation is done by writes to main memory.
For any given pair of caches, the permitted states of a given cache line are as follows (abbreviated in the order above):
| I | V | R | D | |
|---|---|---|---|---|
| I | Y | Y | Y | Y |
| V | Y | Y | N | N |
| R | Y | N | N | N |
| D | Y | N | N | N |
Read more about this topic: Write-once (cache Coherence)
Famous quotes containing the word states:
“We cannot feel strongly toward the totally unlike because it is unimaginable, unrealizable; nor yet toward the wholly like because it is staleidentity must always be dull company. The power of other natures over us lies in a stimulating difference which causes excitement and opens communication, in ideas similar to our own but not identical, in states of mind attainable but not actual.”
—Charles Horton Cooley (18641929)
“Colonel Bat Guano: Okay, Im going to get your money for you. But if you dont get the President of the United States on that phone, you know whats going to happen to you?
Group Captain Lionel Mandrake: What?
Colonel Bat Guano: Youre going to have to answer to the Coca-Cola company.”
—Stanley Kubrick (b. 1928)
“The end of law is not to abolish or restrain, but to preserve and enlarge freedom. For in all the states of created beings capable of laws, where there is no law, there is no freedom.”
—John Locke (16321704)