Memory Organization & Address Translation


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.