What is Conflict miss?
A cache miss caused when several blocks compete for the same set and evict each other even though capacity remains. Higher associativity or shifting data placement reduces it.
Japanese name: 競合ミス
A cache miss caused when several blocks compete for the same set and evict each other even though capacity remains. Higher associativity or shifting data placement reduces it.
Japanese name: 競合ミス
In most caches, the set in which data may be placed is determined by some bits of its address. The number of lines one set can hold is the associativity. If more data that belongs in the same set is in use than the associativity allows, evictions occur even though other sets are empty. Misses thus occur even though capacity is to spare.
Consider a 32 KB cache in which each set holds only one line. If two arrays whose addresses are exactly a multiple of 32 KB apart are read alternately, they compete for the same place. Each read evicts the other, so every access misses. If each set held two lines, both would fit and the misses would disappear. In a 32 KB cache whose sets hold 8 lines, data a multiple of 4 KB apart falls in the same set. Using nine or more such pieces of data at the same time causes the same thing.
On the hardware side, the associativity is raised. More candidates must then be compared on each read, however, which costs time and power. Another approach adds a small auxiliary cache that keeps a few lines that have just been evicted. On the software side, padding is inserted between arrays to shift their addresses. Avoiding powers of two for array sizes and for the stride of spaced accesses also helps.
Answer: A. Data for a given address can be placed in any of several locations (ways) within a fixed set
In a set-associative cache, part of the address selects a set, and data may occupy any of that set's ways—eight candidate slots in an 8-way cache—reducing conflict misses compared with direct mapping. More ways need more comparators and power, so the way count is kept moderate—for example, 8–12 ways for L1 and around 16 for L3. A cache in which data can go anywhere is fully associative.
Answer: C. Compulsory, capacity and conflict misses
Cache misses are classified as compulsory (first access), capacity (evicted because the cache is too small) and conflict (competition for the same set). Remedies differ by cause: larger lines or prefetching for compulsory misses, a bigger cache for capacity misses, and higher associativity for conflict misses.
No, because there is no restriction on placement. Misses that occur even in that organization are classified as capacity misses.
It can be. Memory addresses change slightly on each run, so whether data happens to be laid out so as to compete for the same set changes too.
Conflict miss appears in 8 practice questions across 2 topics, including Memory Hierarchy, CPUs and architecture.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.