CS FundamentalsHardTCS NQT · Infosys pattern

A TLB has a hit ratio of 90%. A TLB access takes 10 ns and a main-memory access takes 100 ns. On a TLB hit, the data is fetched directly after translation (10 + 100 ns); on a miss, the page table (in memory) is consulted first and then the data is fetched (10 + 100 + 100 ns). What is the effective memory access time?

  1. A. 110 ns
  2. B. 201 ns
  3. C. 99 ns
  4. D. 120 ns

Correct answer: D. 120 ns

Hit time = 10 + 100 = 110 ns, with probability 0.9. Miss time = 10 + 100 + 100 = 210 ns, with probability 0.1. EMAT = 0.9 × 110 + 0.1 × 210 = 99 + 21 = 120 ns.

More Operating Systems questions

Exams that ask this topic