Supermarkets are constantly faced with a problem similar
to page reference in virtual memory systems.
They have a fixed amount of shelf space to display
an ever-increasing number of products. If an important
new product comes along, say, 100% efficient dog
food, some existing product must be dropped from
the inventory to make room for it.
The obvious replacement algorithms are
LRU and FIFO.
Which of these would you prefer?
Why are cache blocks always much smaller than virtual
memory pages, often a hundred times smaller?
Last modified April 5, 01 by mike@cs.hmc.edu