Write-once (cache Coherence) - States

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:

    I asked myself, “Is it going to prevent me from getting out of here? Is there a risk of death attached to it? Is it permanently disabling? Is it permanently disfiguring? Lastly, is it excruciating?” If it doesn’t fit one of those five categories, then it isn’t important.
    Rhonda Cornum, United States Army Major. As quoted in Newsweek magazine, “Perspectives” page (July 13, 1992)

    I would rather be known as an advocate of equal suffrage than to speak every night on the best-paying platforms in the United States and ignore it.
    Anna Howard Shaw (1847–1919)

    I believe the citizens of Marion County and the United States want to have judges who have feelings and who are human beings.
    Paula Lopossa, U.S. judge. As quoted in the New York Times, p. B9 (May 21, 1993)