CREATE OWN LIBRARY

Comparison of the page replacement algorithm

 

Summary of page replacement algorithms 

 

Algorithm                            Comments 
OptimalGive optimal solution, but not implementable, use as a benchmark. 
Least Recently Used (LRU)Efficient, but it is difficult to implement exactly.
Most Recently Used (MRU)Not efficient for all types of processes.
FIFO (First-In, First-Out)Might replace important page (most recently and frequently used page). 
Second chanceGood modification of FIFO and better performance. 
Clock Replacement algorithmSecond Chance with Circular list; efficient data structure and realistic. 
Not Recently Used (NRU)Very basic approximation of LRU.
Least Frequently Used (LFU)A fairly crude approximation of LRU, expensive to implement.
Working SetSomewhat expensive to implement.
WSClockMost efficient algorithm.
AgingEfficient algorithm that approximates LRU well.

 

All in all, the two best algorithms are aging and WSClock. They are based on LRU and the working set, respectively. Both give good paging performance and can be implemented efficiently. 

 

A few other good algorithms exist, but these two are probably the most important in practice.