GATE / CS ARCHIVE

GATE CSE 1996 / QUESTION 26(b)

Average access time for selected hierarchy

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

GATE 1996, Q26(b) Descriptive
Report issue

Memory Organization & Address Translation

Question 26(b), 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. Calculate the average time for the sizes selected to satisfy the strict 100 ns bound.
Question 26(b), 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. Calculate the average time for the sizes selected to satisfy the strict 100 ns bound.
Question 26(b), 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. Calculate the average time for the sizes selected to satisfy the strict 100 ns bound.
Tap to enlarge
Answer & solution

Answer: 99.2 ns in the complete-service-time model; sequential alternatives are 80 ns for 16KB/4MB or 95 ns for 8KB/64MB. (no official key was published)

For the complete-service-time interpretation, select the smallest listed capacities, L1=8KB and L2=4MB. An access hits L1 with probability .80 and takes 50 ns. It misses L1 and hits L2 with probability .20×.98=.196 and takes 200 ns. It misses both with probability .20×.02=.004 and takes 5000 ns. The mean is therefore .80×50+.196×200+.004×5000=40+39.2+20=99.2 ns per byte. This is 0.8 ns below the required bound. Notice that even the rare .4 percent accesses to level 3 contribute 20 ns to the mean.

This calculation uses exclusive end-to-end outcomes. If the table instead lists incremental sequential access times, earlier failed probes must also be charged: 50+.20×200+.004×5000=110 ns for these same capacities, so they would not be a valid choice. In that model, the (16KB,4MB) pair gives 50+.10×200+(.10×.02)×5000=80 ns. The alternative nondominated (8KB,64MB) pair gives 50+.20×200+(.20×.005)×5000=95 ns. The (8KB,16MB) pair gives exactly 100 ns, which is excluded by “less than”.

Thus report 99.2 ns together with its timing assumption, rather than presenting it as a verified official value.

Original paper, page 10