Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume a 2-way set associative cache with 4 blocks. You may find it helpful to d

ID: 3532648 • Letter: A

Question




Assume a 2-way set associative cache with 4 blocks. You may find it helpful to draw a table like those found on page 482 to solve the problems in this exercise, as demonstrated below on the address sequence "0, 1, 2, 3, 4." The following table shows address sequences. 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?

Explanation / Answer

5.12.5:

Optimal page replacement algorithm is difficult to implement since it requires previous knowledge of the reference string or atleast a good prediction over it. Since there are a lots of processes working on a system without following any pattern on page usage so Optimal page replacement is tough to implement and used mainly for comparison purposes.


5.12.6:

This would bring down the miss rate to be equal to the optimal algorithm. This would simply mean that the optimal algorithm is possibly implemented giving the best possible hit rate.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote