CS FundamentalsHardGATE CS (PYQ pattern)

A machine uses 4-level paging, a TLB (10 ns lookup, done before every access) and 100 ns memory. On a TLB miss the walk first consults a page-walk cache (lookup time negligible) that holds the upper three levels: with probability 0.8 it hits and only the leaf entry is read from memory; otherwise all four levels are read from memory. Then the data is read. What is the minimum TLB hit ratio for an effective access time of at most 150 ns?

  1. A. 90%
  2. B. 60%
  3. C. 50%
  4. D. 75%

Correct answer: D. 75%

EAT = 10 + 100 + (1 - h) x W, with mean walk W = 0.8 x 100 + 0.2 x 400 = 160 ns. 110 + 160(1 - h) <= 150 gives 1 - h <= 0.25, h >= 75%. Ignoring the walk cache (W = 400) gives 90%; assuming it always hits (W = 100) gives 60%; counting only the 0.2 x 400 part (W = 80) gives 50%.

More Operating Systems questions

Exams that ask this topic