retagged by
18,507 views
19 votes
19 votes

I want to clearly understand the difference between compulsory miss, conflict miss and capacity miss
what I understood is
compulsory miss: when a block of main memory is trying to occupy fresh empty line of cache, it is called compulsory miss
conflict miss: when still there are empty lines in the cache, block of main memory is conflicting with the already filled line of cache, ie., even when empty place is available, block is trying to occupy already filled line. its called conflict miss
capacity miss: miss occured when all lines of cache are filled.
conflict miss occurs only in direct mapped cache and set-associative cache. Because in associative mapping, no block of main memory tries to occupy already filled line.
is this correct?

retagged by

3 Answers

8 votes
8 votes

Compulsory miss is not when a block occupies a fresh line, it is when a fresh block that was never given access in Cache before appears.

Related questions

2 votes
2 votes
1 answer
1
Warlock lord asked Jan 12, 2018
1,639 views
Can someone tell me the text-book definition for conflict miss?
3 votes
3 votes
1 answer
2
0 votes
0 votes
0 answers
3
bts1jimin asked Jan 17, 2019
441 views
here it is given byte addressable. So these locations refer to words or byte location. What are set, block fields here : number of words or number of bytes for these loca...
1 votes
1 votes
1 answer
4
Sumit1311 asked Jan 21, 2016
596 views
Will conflict misses increase if k-way set associative cache is used and we increase the cache capacity?