Three Main Types of Cache Misses

The primary categories of cache misses are compulsory (cold) misses, occurring on first access; capacity misses, when the cache is too small; and conflict misses, due to data mapping to the same cache location.

The top 3

  1. The Inevitable 'Cold Start': Compulsory Misses Explained: Compulsory misses, also known as cold misses, are fundamentally unavoidable as they occur on the very first access to a data block that has never been loaded into the cache before.
  2. Capacity vs. Conflict: The Cache Associativity Divide: Capacity misses arise when the program's active data set exceeds the cache's total size, while conflict misses occur due to limited cache associativity, forcing multiple data blocks to compete for the same cache slot even if other space is available.
  3. Top Mitigation Strategies for Each Cache Miss Type: Data prefetching can reduce compulsory misses, increasing cache size or using efficient replacement policies like LRU helps with capacity misses, and higher cache associativity mitigates conflict misses.

Sources

Open the full topic