CS 3853 Computer Architecture Notes on Appendix B Section 3
Read Appendix B.3
B.3: Cache Optimization
Summary: 6 optimizations in 3 categories:
reducing the miss rate
larger block size
larger cache size
higher associativity
reducing the miss penalty
multilevel caches
giving priority to read misses over writes
reducing the hit time
avoiding address translation during indexing of the cache
Need to talk about virtual memory first.
Types of cache misses
compulsory: first access causes a miss, also called cold start misses or first reference misses.
capacity: cache cannot contain all of the blocks needed (blocks discarded that are later needed)
conflict: too many blocks map to the same set, also called collision misses.
These are misses that occur because the cache does not have full associativity.