GATE / CS ARCHIVE

GATE CSE 1992 / QUESTION 3(v)

More frames can mean more faults

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

GATE 1992, Q3(v) Descriptive
Report issue

Virtual Memory & Paging

Question 3(v), GATE 1992: Which page-replacement policy can have more faults when memory size increases?
Question 3(v), GATE 1992: Which page-replacement policy can have more faults when memory size increases?
Tap to enlarge
Answer & solution

Answer: FIFO: Belady’s anomaly (no official key was published)

FIFO evicts the page loaded earliest, not necessarily the least useful page. With different frame counts, the order of subsequent evictions can change so that the larger memory performs worse. For example the reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 has nine FIFO faults with three frames but ten with four. LRU and optimal replacement have the stack-inclusion property and avoid this anomaly. The question asks for a policy that sometimes exhibits it, not a claim that adding frames always hurts FIFO.

Original paper, page 5