CS FundamentalsModerateGATE CS (PYQ pattern)

A data TLB has 64 entries and the OS backs a 1.5 GB array with 2 MB pages. A program accesses array elements uniformly at random and nothing else competes for the TLB; ignore warm-up. Which TLB hit ratio is expected, in steady state?

  1. A. about 8.3%
  2. B. about 4.3%
  3. C. about 42.7%
  4. D. about 100%

Correct answer: A. about 8.3%

1.5 GB / 2 MB = 768 pages. A random access hits only if its page is among the 64 cached ones: 64 / 768 = 8.3%. With 4 KB pages the reach would be 256 KB, much smaller.

More Operating Systems questions

Exams that ask this topic