CS FundamentalsVery hardGATE CS

TLB access 2 ns (looked up first), memory access 50 ns, two-level page table, TLB hit ratio 98%. A fraction 10⁻⁵ of ALL accesses page-fault (these are always TLB misses), and a fault costs 5 ms plus the normal miss path. What is the effective access time, to the nearest ns?

  1. A. 54 ns
  2. B. 102 ns
  3. C. 104 ns
  4. D. 103 ns

Correct answer: C. 104 ns

No-fault cost: hit 52 ns, miss 2 + 2×50 + 50 = 152 ns, giving 0.98×52 + 0.02×152 = 54 ns. Faults add 10⁻⁵ × 5×10⁶ = 50 ns on average. EAT ≈ 104 ns.

More Operating Systems questions

Exams that ask this topic