GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 18

GATE CSE 2015 Set 2 Q18

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

GATE 2015 Set 2, Q18 1 mark · NAT
Report issue

Cache Memory

Question 18, GATE 2015: A read takes 50 ns on a cache miss or 5 ns on a hit. Hit rate 80%. Find mean read time in nanoseconds.
Tap to enlarge
Answer & solution

Official answer: 14

The stated miss time is the entire request time, not an extra penalty. Average=0.8·5+0.2·50=14 ns.

The random read time takes only two stated values:5 with probability.8 and 50 with probability.2. Its expected value is the probability-weighted sum, .8×5+.2×50=4+10=14 ns. Do not add 5 to the miss case: the prompt already says the entire request takes 50 ns on a miss. If it had called 50 an additional miss penalty, the formula would differ.

Original paper, page 32 · Answer key