GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 1.21

FIFO page replacement and additional frames

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2001 paper

GATE 2001, Q1.21 1 mark · MCQ
Report issue

Virtual Memory & Paging

Question 1.21, GATE 2001: With FIFO page replacement, what can increasing the number of frames do for an arbitrary reference string: always decrease faults, always increase faults, sometimes increase faults, or never change faults?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: FIFO evicts the page loaded earliest, without maintaining the stack-inclusion property of LRU. Adding frames can change future FIFO victim order.

Step 2: For reference string 1,2,3,4,1,2,5,1,2,3,4,5 from empty memory, FIFO incurs 9 faults with 3 frames but 10 with 4. This is Belady’s anomaly. Other strings can benefit or show no change.

Therefore additional frames can sometimes increase faults, C; neither a universal decrease nor universal increase is valid.

Original paper, page 3