in Operating System edited by
8,051 views
22 votes
22 votes

Consider a virtual memory system with FIFO page replacement policy. For an arbitrary page access pattern, increasing the number of page frames in main memory will

  1. always decrease the number of page faults
  2. always increase the number of page faults
  3. sometimes increase the number of page faults
  4. never affect the number of page faults
in Operating System edited by
8.1k views

2 Comments

Consider the following reference string:

1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 

Case-1: If the system has 3 frames, the given reference string on using FIFO page replacement algorithm yields a total of 9 page faults. The diagram below illustrates the pattern of the page faults occurring in the example.

Case-2: If the system has 4 frames, the given reference string on using FIFO page replacement algorithm yields a total of 10 page faults. The diagram below illustrates the pattern of the page faults occurring in the example.

It can be seen from the above example that on increasing the number of frames while using the FIFO page replacement algorithm, the number of page faults increased from 9 to 10.

 

Source : https://www.geeksforgeeks.org/beladys-anomaly-in-page-replacement-algorithms/

2
2
Belady’s anomaly : More physical memory doesn’t always mean fewer faults.
0
0

2 Answers

23 votes
23 votes
Best answer

Answer is (C).

Belady anomaly is the name given to the phenomenon in which increasing the number of page frames results in an increase in the number of page faults for certain memory access patterns. This phenomenon is commonly experienced when using the First in First Out (FIFO) page replacement algorithm

edited by
16 votes
16 votes
ans is C.

Belady's anomaly.
Answer:

Related questions