MOESI: The 5 Moods of Data

Every piece of data in a cache is in one of these 5 states. Understanding them is the "Secret Sauce" to mastering ACE.

The MOESI Breakdown

Analogy: Think of a cache line as a secret you know.
  1. Modified (M): Only I know the secret, AND I've changed it. The memory doesn't know the new version yet. I must write it back eventually.
  2. Owned (O): I know the secret, others also know it, but I am the "Headmaster". If someone else asks for it, I am responsible for giving it to them.
  3. Exclusive (E): Only I know the secret, and it's the exact same as what's written in the memory. I can change it whenever I want without asking anyone.
  4. Shared (S): I know the secret, others also know it. I cannot change it without asking the Interconnect first.
  5. Invalid (I): I don't know the secret, or the version I have is too old (Garbage).