CS FundamentalsModerateGATE CS · Amazon/Microsoft SDE MCQ

TLB lookup takes 10 ns and is done first; memory access takes 100 ns; paging is two-level; the TLB hit ratio is 90%. Ignoring page faults, what is the effective memory access time?

  1. A. 120 ns
  2. B. 130 ns
  3. C. 140 ns
  4. D. 220 ns

Correct answer: B. 130 ns

Hit: 10 + 100 = 110 ns. Miss: 10 + 2 × 100 (two page-table levels) + 100 (the data) = 310 ns. 0.9 × 110 + 0.1 × 310 = 99 + 31 = 130 ns; counting only one table access on a miss gives 120.

More Operating Systems questions

Exams that ask this topic