Writing in a cache
On a write hit, should we write:
- In the cache only (write-back) policy
- In the cache and main memory (or higher level cache) (write-through) policy
On a cache miss, should we
- Allocate a block as in a read (write-allocate)
- Write only in memory (write-around)