GATE Computer ScienceHardGATE CS (PYQ pattern)

Memory access takes 200 ns. A page fault takes 8 ms to service if the replaced page is clean and 20 ms if it is dirty (it must first be written out); 70% of replaced pages are dirty. What is the largest page-fault rate p (faults per access) that keeps the effective access time within 10% of 200 ns?

  1. A. 2.50e-06
  2. B. 1.22e-06
  3. C. 1.00e-06
  4. D. 1.72e-06

Correct answer: B. 1.22e-06

Average fault time = 0.3 × 8 + 0.7 × 20 = 16.4 ms. (1 − p) × 200 + p × 16.4×10⁶ ≤ 220 → p ≤ 20 / (16.4×10⁶ − 200) = 1.22e-06, about one fault per 820,000 accesses. Ignoring dirty pages gives 2.50e-06; swapping the 70/30 weights gives 1.72e-06.

More Computer Organization and Architecture questions

Exams that ask this topic