Conflict Miss v/s Compulsory Miss

Your definition of a “conflict miss” is a bit unhelpful.

A conflict miss occurs when a block is needed which existed in the cache before, but was evicted in favor of another block that had to be mapped to the same slot.

In your example, the accesses to 13 and 25 are unique, so they are necessarily first accesses. They cannot have been evicted before the first use, by definition. Hence, they’re compulsory misses.

They may cause subsequent conflict misses (and capacity misses), of course.

Leave a Comment