What's the difference between conflict miss and capacity miss

后端 未结 3 1771
南旧
南旧 2020-12-07 11:49

Capacity miss occurs because blocks are being discarded from cache because cache cannot contain all blocks needed for program execution (program working set is much larger t

3条回答
  •  猫巷女王i
    2020-12-07 12:14

    Compulsory miss: when a block of main memory is trying to occupy fresh empty line of cache and the very first access to a memory Block that must be brought into cache 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.

提交回复
热议问题