CS FundamentalsVery hardGATE CS · Advanced

A paged system has a 10 ns TLB lookup and 100 ns per memory access, with a 95% TLB hit ratio. A TLB miss costs a two-level page-table walk: two table accesses and then the data access (the TLB lookup time is spent first). A page fault, when it happens, costs 10 ms in total (treat the access time itself as included). What is the largest page-fault rate per memory reference for which the effective access time stays at or below 150 ns?

  1. A. 3.0 × 10⁻⁶
  2. B. 4.0 × 10⁻⁶
  3. C. 3.0 × 10⁻⁵
  4. D. 5.0 × 10⁻⁶

Correct answer: A. 3.0 × 10⁻⁶

Without faults EAT = 0.95 x 110 + 0.05 x 310 = 120 ns. Solving (1-p) x 120 + p x 10^7 <= 150 gives p = 3.00e-06, i.e. about 3.0 × 10⁻⁶. Using 100 ns or 110 ns as the fault-free time gives larger, wrong limits.

More Operating Systems questions

Exams that ask this topic