edited by
582 views
4 votes
4 votes

The designers of a cache system wants to reduce the number of cache misses that occur in a certain group of programs.

Which of the following statements is/are correct regarding what designers can do?

  1. If compulsory misses are most common, then the designers should consider increasing the cache line size to take better advantage of locality.
  2. If capacity misses are most common, then the designers should consider increasing the total cache size so it can contain more lines.
  3. If conflict misses are most common, then the designers should consider increasing the cache’s associativity, in order to provide more flexibility when a collision occurs.
  1.     I, II, and III
  2.     I and II only
  3.     II and III only
  4.     III only
edited by

3 Answers

Best answer
4 votes
4 votes
I) True  - By increasing the block size (and fixed cache size) number of blocks will reduce , so less compulsory misses.

II) True - Capacity Misses occurs when Working Set Size > Cache Size , So increase the cache size and Capacity misses decreases.

III) True  - By increasing associativity conflict misses ( as in one block being replaced by another block) will decrease as there will be more empty blocks to choose from that set due to increased associativity.
selected by
3 votes
3 votes
Increasing the cache line size brings in more from memory when a miss occurs. If accessing a certain byte suggests that near by bytes are likely to be accessed soon (locality), then increasing the cache line essentially prefetches those other bytes. This, in turn, prevent  later cache miss on those other bytes.

If misses occur because the cache is too small, then the designers should increase the size .

Conflict misses occur when multiple memory locations are repeatedly accessed but map to the same cache location.

Consequently, when they are accessed, they keep kicking one another out of the cache. Increasing the associativity implies that each chunk of the cache is effectively doubled so that more than one memory item can rest in the same cache chunk.
0 votes
0 votes

The more the line size, the less are the compulsory misses, because more words could fit into a line.

The more the cache size, the less are the capacity misses. This is obvious.

Associativity tells you the amount of location a word/block could associate to. In other words, the higher the associativity, the more the possible locations for a block to be mapped to, hence conflict misses are reduced.

 

All are True. Option A

Answer:

Related questions