When we increase the number of frames to the process then the number of page fault should decrease but instead the page fault increase sometimes (Belady's anamoly). How this can be avoided?
Asked
Active
Viewed 1,136 times
1 Answers
5
Belady's anomaly is prevalent with a FIFO eviction policy. Every eviction policy will have a pattern that will "break" it. However, there are a few eviction policies that can avoid Belady's.
- Random eviction
- LRU (Least Recently Used)

The Brofessor
- 1,008
- 6
- 15
-
can you please explain random eviction?? – Anurag Singh Aug 04 '15 at 05:39
-
Random eviction is straightforward. Whenever we need to evict, we select a random page to evict (via a random number generator). No internal structures or metadata needed like FIFO and LRU. – The Brofessor Aug 04 '15 at 05:59