Cache Write Policy
In practice, use Write Back.
Write Throughโ
- Update current and next level. Propagate changes to slower caches. L1 โ L2 โ L3.
- Pros: Always Coherent!
- Cons: Slow!
Write Backโ
- Only update the fastest cache. Propagate changes to slower caches when we need space (i.e., when eviction happens.)
- Pros: Fast!
- Cons: Concurrency issues when other cores try to read from L3 Shared Cache. It could be slow if a few isolated writes happen (because the whole block should be written back)