CS FundamentalsVery hardGATE CS

TLB lookup 10 ns, memory access 100 ns, single-level page table, TLB hit ratio 90%. One in a million accesses causes a page fault; servicing it takes 6 ms if the victim is clean and 14 ms if dirty, and 30% of victims are dirty. Treating the page-fault cost as simply added for faulting accesses, what is the effective access time (nearest ns)?

  1. A. 126 ns
  2. B. 128 ns
  3. C. 120 ns
  4. D. 134 ns

Correct answer: B. 128 ns

Without faults: 0.9×110 + 0.1×210 = 120 ns. Average fault service = 0.7×6 + 0.3×14 = 8.4 ms. EAT ≈ 120 + 10⁻⁶ × 8.4×10⁶ ns = 120 + 8.4 ≈ 128 ns.

More Operating Systems questions

Exams that ask this topic