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)?
- A. 0
- B. 192
- C. 256
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A 32 KB cache with 64-byte blocks and 36-bit physical addresses is 4-way set-associative. If the associativity is doubled (8-way) while…
- A stack machine evaluates the sum of 16 distinct variables arranged as a perfectly balanced binary tree of additions (addition is…
- A program has three disjoint parts: 20% not improvable, 30% sped up 5× by a vector unit, and 50% sped up 2× by a faster memory. What is…
- In IEEE 754 single precision with round-to-nearest-even, let x = 2²³ = 8,388,608. What are the results of (x + 0.5) + 0.5 and x + (0.5 +…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) runs: I1: ADD R1, R1, R2; I2: ADD R3, R1, R4; I3: ADD R5, R3, R1; I4: LW R6, 0(R5); I5…
- A direct-mapped cache of 128 bytes with 32-byte blocks (4 lines) is used while a program reads the 4-byte words at byte addresses 0, 4, 8…