Question: ( 5 . 2 0 . 2 0 ) In this exercise, we will examine how replacement policies affect miss rate. Assume a two -
In this exercise, we will examine how replacement policies affect miss rate. Assume a twoway set associative cache with four oneword blocks. Consider the following word address sequence:
Consider the following address sequence:
Assuming an LRU replacement policy, which accesses are hits?
Assuming an MRU most recently used replacement policy, which accesses are hits?
Simulate a random replacement policy by flipping a coin. For example, "heads" means to evict the first block in a set and "tails" means to evict the second block in a set. How many hits does this address sequence exhibit?
Describe an optimal replacement policy for this sequence. Which accesses are hits using this policy?
Describe why it is difficult to implement a cache replacement policy that is optimal for all address sequences.
Assume you could make a decision upon each memory reference whether or not you want the requested address to be cached. What impact could this have on miss rate?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
