GATE / CS ARCHIVE

GATE CSE 2017 SET 2 / QUESTION 29

GATE CSE 2017 Set 2 Q29

Computer Organization & Architecture · Cache Memory · Full GATE CSE 2017 Set 2 paper

GATE 2017 Set 2, Q29 2 marks · MCQ
Report issue

Cache Memory

Question 29, GATE 2017: L1 and L2 cache access times are 1 and 8 cycles. The additional L2-to-memory miss penalty is 18 cycles. The L1 miss rate is twice the L2 miss rate. Given AMAT=2 cycles, find the rates (L1,L2). A:(0.111,0.056). B:(0.056,0.111). C:(0.0892,0.1784). D:(0.1784,0.0892).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. Let m be the local L2 miss rate, conditional on reaching L2. The L1 miss rate is 2m. Every access pays 1 cycle, an L1 miss adds 8, and an L2 miss on that path adds 18.

2. Therefore 2=1+2m(8+18m). Expanding gives 36m²+16m-1=0. The quadratic formula gives m=(-16±√400)/72, so its nonnegative root is 4/72=1/18; the other root is invalid as a probability.

3. Thus L2 misses about 0.05556 and L1 misses 1/9≈0.11111. In the requested L1,L2 order, the rounded pair is A. Treating the L2 rate as a global rate, or charging lower-level time on every hit, would give a different model.

Original paper, page 11 · Answer key