CS FundamentalsModerateGATE CS (PYQ pattern)

A system with a single-level page table has a TLB (lookup 10 ns, done before every access, hit ratio 90%) and a 100 ns memory; a TLB miss costs one extra memory access for the page-table entry. A page fault adds 8 ms if the victim is clean and 20 ms if it is dirty, and 30% of victims are dirty. What is the largest page-fault rate (faults per reference) that keeps the effective access time within 20% of the fault-free effective access time?

  1. A. about 2.07 x 10^-6
  2. B. about 3.00 x 10^-6
  3. C. about 1.20 x 10^-6
  4. D. about 1.72 x 10^-6

Correct answer: A. about 2.07 x 10^-6

Fault-free EAT = 10 + 100 + 0.1 x 100 = 120 ns, so faults may add 24 ns. Mean fault cost = 0.7 x 8 + 0.3 x 20 = 11.6 ms = 1.16 x 10^7 ns, so p <= 24 / 1.16 x 10^7 = 2.07 x 10^-6. Using only the clean cost gives 3.0 x 10^-6, only the dirty cost 1.2 x 10^-6, and taking 20% of the bare 100 ns memory time gives 1.72 x 10^-6.

More Operating Systems questions

Exams that ask this topic