GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 26(a)

Choosing memory hierarchy sizes

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

GATE 1996, Q26(a) Descriptive
Report issue

Memory Organization & Address Translation

Question 26(a), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Choose minimum level-1 and level-2 sizes giving average access time strictly below 100 ns.
Question 26(a), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Choose minimum level-1 and level-2 sizes giving average access time strictly below 100 ns.
Tap to enlarge
Answer & solution

Answer: Complete-service-time model: 8KB L1 and 4MB L2 (99.2 ns). Sequential probing gives different feasible minima; see solution. (no official key was published)

If the tabulated times are complete service times for a hit at the corresponding level, and h2 is conditional on missing level 1, then T=h1·50+(1−h1)h2·200+(1−h1)(1−h2)·5000. Try the smallest options first: h1=.80 and h2=.98. Their mutually exclusive outcome probabilities are .80, .196, and .004, summing to one. Hence T=40+39.2+20=99.2 ns, strictly below 100. Since 8KB and 4MB are individually the smallest listed sizes, this pair is componentwise minimal in that model.

A different standard convention treats 50,200,5000 as incremental sequential probe times. Then every access pays 50, every L1 miss pays another 200, and a miss in both pays another 5000: Tseq=50+(1−h1)[200+(1−h2)5000]. The same 8KB/4MB pair gives 110 ns and fails. At 8KB, increasing L2 to 16MB gives exactly 100 ns, still failing the strict inequality; 64MB gives 95 ns. At 16KB, the smallest L2=4MB already gives 80 ns. Thus the nondominated feasible pairs in the sequential model are (8KB,64MB) and (16KB,4MB); neither is smaller in both coordinates. Minimizing total installed bytes selects (16KB,4MB), whereas minimizing L1 first selects (8KB,64MB).

Therefore the familiar 8KB/4MB answer requires the complete-service-time interpretation. Without specifying the timing convention, the literal question has no single model-independent answer. The lower-level hit ratio is also taken as conditional, not as an additional unconditional probability.

Original paper, page 10