With some algorithms (notably FIFO), giving a process more frames can increase the number of page faults.
Example: reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 under FIFO gives 9 faults with 3 frames but 10 faults with 4 frames.
Stack algorithms such as LRU and Optimal never show the anomaly, because the set of pages held with n frames is always a subset of those held with n + 1 frames.
Loading…