CS FundamentalsVery hardGATE CS (PYQ pattern)

Memory access takes 200 ns. A page fault takes 8 ms if the victim page is clean and 20 ms if it must first be written back; 60% of victim pages are dirty. What is the largest page-fault rate (faults per reference) for which the effective access time is at most 400 ns?

  1. A. about 1.3 x 10^-5
  2. B. about 2.5 x 10^-5
  3. C. about 1.0 x 10^-5
  4. D. about 1.3 x 10^-6

Correct answer: A. about 1.3 x 10^-5

Average service time = 0.6 x 20 + 0.4 x 8 = 15.2 ms. EAT = 200 + p(15.2 x 10^6 - 200) <= 400 gives p <= 200 / 15.2 x 10^6 = 1.3 x 10^-5. 2.5 x 10^-5 would come from the 8 ms clean-page time only.

More Operating Systems questions

Exams that ask this topic