Skip to content
GATEiit

GATE CSE 2022 Q64: Page fault rate with LRU and four frames

Question

Consider a demand paging system with four page frames (initially empty) and LRU page replacement policy. For the following page reference string

7,2,7,3,2,5,3,4,6,7,7,1,5,6,17, 2, 7, 3, 2, 5, 3, 4, 6, 7, 7, 1, 5, 6, 1

the page fault rate, defined as the ratio of number of page faults to the number of memory accesses (rounded off to one decimal place) is_________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 0.6 (official GATE 2022 final answer key)

Concept used: LRU evicts the page whose last use is furthest in the past.

First step: Simulate the 15 references with 4 frames, marking faults; the first four distinct pages (7, 2, 3, 5) all fault.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key