Types of Cache Misses

Cache Miss occurs when data is not available in the Cache Memory. When the CPU detects a miss, it processes the miss by fetching requested data from main memory.

Types of Cache misses :
These are various types of cache misses as follows below.

  1. Compulsory Miss –
    It is also known as cold start misses or first references misses. These misses occur when the first access to a block happens. Block must be brought into the cache.


  2. Capacity Miss –
    These misses occur when the program working set is much larger than the cache capacity. Since Cache can not contain all blocks needed for program execution, so cache discards these blocks.




  3. Conflict Miss –
    It is also known as collision misses or interference misses. These misses occur when several blocks are mapped to the same set or block frame.These misses occur in the set associative or direct mapped block placement strategies.


  4. Coherence Miss –
    It is also known as Invalidation. These misses occur when other external processors, i.e., I/O updates memory.

Properties of these Cache misses :
These are various properties of Cache misses for same data set and various types of caches:

  • Compulsory misses occur same in all types of direct mapped, set associative and associative caches.
  • Coherence misses occur same in all types of direct mapped, set associative and associative caches.
  • Conflict misses occur high in direct mapped cache, medium in set associative cache, and zero in associative mapped cache.
  • Capacity misses occur low in direct mapped cache, medium in set associative cache, and high in associative mapped cache.

Generally, we use Random block replacement, LRU, or FIFO page replacement technique to bring a miss page in cache from main memory.

Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.

My Personal Notes arrow_drop_up


If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.