GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 78

Translation lookaside buffer and cache access time

Computer Organization & Architecture · Memory Organization & Address Translation · Full GATE CSE 2003 paper

GATE 2003, Q78 2 marks · MCQ
Report issue

Memory Organization & Address Translation

Question 78, GATE 2003: A byte-addressable processor has 32-bit virtual and physical addresses and two-level page tables stored in main memory. Address bits are split 10 bits for first-level index, 10 for second-level index, and 12 for page offset. All page-table entries are 4 bytes. TLB hit rate is 96%, physical-cache hit rate 90%; TLB and cache access each take 1 ns, and main memory takes 10 ns. With no page faults, what is mean virtual-address access time, approximately to the nearest 0.5 ns?
A. 1.5 ns  B. 2 ns  C. 3 ns  D. 4 ns
The statement does not specify whether page-table reads use the cache/hit rate.
Question 78, GATE 2003: A byte-addressable processor has 32-bit virtual and physical addresses and two-level page tables stored in main memory. Address bits are split 10 bits for first-level index, 10 for second-level index, and 12 for page offset. All page-table entries are 4 bytes. TLB hit rate is 96%, physical-cache hit rate 90%; TLB and cache access each take 1 ns, and main memory takes 10 ns. With no page faults, what is mean virtual-address access time, approximately to the nearest 0.5 ns?
A. 1.5 ns  B. 2 ns  C. 3 ns  D. 4 ns
The statement does not specify whether page-table reads use the cache/hit rate.
Tap to enlarge
Your answer
Answer & solution

Answer: None (no official key was published)

1. A cache-backed physical access costs 1 ns on a hit and 1+10=11 ns on a miss. Its mean is H=0.9×1+0.1×11=2 ns.
2. Every virtual access pays the 1 ns TLB lookup and one final data access. A TLB miss occurs with probability 0.04 and additionally reads two page-table entries.
3. If those reads also use this cache and hit rate, the conditional costs are 3 ns on a TLB hit and 7 ns on a miss. E=0.96×3+0.04×7=3.16 ns, rounding to 3.0 ns (C).
4. If page-table reads bypass the cache, a miss instead costs 1+20+2=23 ns. E=0.96×3+0.04×23=3.8 ns, rounding to 4.0 ns (D).
5. Both interpretations place page tables in main memory; this phrase alone does not resolve caching. Consequently retain the baseline underdetermination instead of asserting an unconditional option.

Solution: If every physical memory reference, including page-table reads, uses the stated cache with 90% hit probability, its mean service time is H=1+0.10×10=2 ns, charging the cache probe before a miss fetch. A lookup always costs 1 ns for the TLB and one data reference; a TLB miss, probability 0.04, adds two page-table references. Thus E=1+(1+2×0.04)H=3.16 ns, which rounds to 3.0 ns, C. If the two page-table references instead bypass the cache and each costs 10 ns, E=1+0.04×20+H=3.8 ns, rounding to 4.0 ns, D. The statement that page tables reside in main memory does not itself specify whether their reads are cached or share the data-cache hit rate. C is the usual all-physical-accesses-cached interpretation, but an unconditional answer is withheld.

Original paper, page 11