GATE / CS ARCHIVE

GATE CSE 1993 / QUESTION 11

Average access time in three-level memory

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

GATE 1993, Q11 5 marks · Descriptive
Report issue

Memory Organization & Address Translation

Question 11, GATE 1993: A hierarchy has (access time ti seconds, access probability pi, page-transfer time Ti seconds): M1=(10^-6,0.99000,0.001), M2=(10^-5,0.00998,0.1), M3=(10^-4,0.00002,no lower level). A miss at Mi transfers a page from M(i+1) to Mi, taking Ti. Calculate mean time to read one word.
Tap to enlarge
Answer & solution

Answer: 13.0918 microseconds with supplying-level access plus transfers; 13.102 microseconds if serial failed probes are separately charged. (no official key was published)

The probabilities sum to 1, so treat them as unconditional, mutually exclusive probabilities of the level supplying the requested word, rather than three conditional hit ratios. In particular the probability that a transfer into M1 is needed is p2+p3=0.01, while the probability of a transfer from M3 into M2 is p3=0.00002. A word originally at M3 requires both transfers, not just T2.

Under the convention that each case incurs the access time of the supplying level plus the required page-transfer times, the three costs are t1, t2+T1, and t3+T2+T1. Hence
E[T] = p1*t1+p2*(t2+T1)+p3*(t3+T2+T1)
     = (0.99000*10^-6+0.00998*10^-5+0.00002*10^-4)
       +(0.00998+0.00002)*0.001+0.00002*0.1
     = 0.0000010918+0.000010+0.000002
     = 0.0000130918 seconds = 13.0918 microseconds.

This is the direct probability-weighted reading of the supplied table. The transfer contributions alone are 12 microseconds; omitting them would be a serious error despite the high first-level hit probability.

The text does not explicitly say whether failed higher-level probes consume additional ti, or whether those costs are already covered in the tabulated/transfer costs. If each request first probes M1 and each M1 miss additionally probes M2, count t1 for every request, t2 for probability 0.01, and t3 for probability 0.00002. Then E[T]=t1+0.01*t2+0.00002*t3+0.01*T1+0.00002*T2=13.102 microseconds. This alternative is a different timing model, not a rounding of 13.0918. No official key is available to resolve that convention; do not silently claim the paper specifies it.

Original paper, page 10