Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

6.2 Multilevel Memories > 6.2.8 Other Page-Removal Algorithms - Pg. 344

344 CHAPTER 6 Performance interested reader can find a detailed line of reasoning in the 1970 paper by the IBM researchers [Suggestions for Further Reading 6.1.2] who introduced stack algorithms and explained in depth how to use them in simulations. 6.2.8 Other Page-removal algorithms Any algorithm based on the LRU policy requires updating recency-of-usage informa- tion on every memory reference, whether or not a page moves between the primary and secondary devices. For example, in a virtual memory system every instruction and data reference of the running program causes such an update. But manipulating the representation of this usage information may itself require several memory references, which escalates the cost of the original reference. For this reason, most multilevel memory designers look for algorithms that have approximately the same effect but are less costly to implement. One elegant approximation to LRU is the clock page- removal algorithm. The clock algorithm is based on a modest hardware extension in which the virtual memory manager (implemented in the hardware of the processor) sets to true a bit, called the referenced bit, in the page table entry for a page whenever the processor