Gustavo Schwantz
Gustavo Schwantz

Reputation: 1

When I know that I have a capacity miss in direct-mapped or N-associative cache?

I'm trying to make a cache simulator and it's necessary count the number of Compulsory Misses, Capacity Misses and Conflict Misses, but I don't know how count the number of Capacity Misses at the direct-mapped and N-associative caches. I have been search on Stack (and in others sources) about it, but the others answers didn't help me.

I KNOW the definition of each C misses, I just don't know that specific case with the capacity miss.

Anybody to help me?

Upvotes: 0

Views: 1323

Answers (1)

hayesti
hayesti

Reputation: 3073

For a set associative cache, I would say that a miss can be classified as capacity if the same access would miss in a fully associative cache of the same capacity (ignoring cold misses). Some may disagree with me, understandably, since it's tricky to define it exactly like this.

I've heard other definitions state that a miss is a conflict and not capacity if the requested data was evicted while there were still unused sets.

Upvotes: 1

Related Questions