GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A processor has a 64-entry fully associative TLB, 4 KB pages, and a data cache of 512 KB. A program sweeps through an array of 1 MB repeatedly, touching each 4 KB page once per sweep in order. After warm-up, how many TLB misses occur per sweep (LRU TLB)?

  1. A. 0
  2. B. 192
  3. C. 256
  4. D. 64

Correct answer: C. 256

The array has 256 pages, more than 64 TLB entries; with LRU and a cyclic sweep each reference evicts exactly the page needed next, so every one of the 256 page references misses. The cache size is irrelevant to the TLB.

More Computer Organization and Architecture questions

Exams that ask this topic