chapter 22 - beyond physical memory policies Flashcards
How is RAM treated in the context of paging?
As a cache for virtual memory stored on disk
What is the formula for Average Memory Access Time (AMAT)?
AMAT = T(M) + P(miss) × T(D)
T(M): Memory access time
T(D): Disk access time
P(miss): Page miss rate
What is Belady’s MIN policy?
Evict the page that won’t be used for the longest time in the future
Why is Belady’s algorithm not used in real systems?
It requires future knowledge of memory accesses
What is FIFO (First-In, First-Out) replacement?
Evict the page that was loaded earliest, regardless of usage
What is a downside of FIFO?
It may evict heavily-used pages just because they’re old
What is Random Replacement?
Evict a random page
What is LRU (Least Recently Used)?
Evict the page that has not been used in the longest time