Correct Answer - Option 1 : 0.111 and 0.056
Data:
Access time of L1 = T1 = 1 clock cycle
Access time of L2 = T2 = 8 clock cycle
L2 miss penalty = T3 = 18 clock cycle
L1 miss rate = 2 × L2 miss rate
Average memory access time = AMAT = 2 clock cycle
Let, L2 miss rate = a
∴ L1 miss rate = 2a
Formula:
AMAT = (T1 + 2a × T2 + 2a × a × T3)
Calculation:
2 = 1 + 2a × 8 + 2a × a × 18
2 = 1 + 16a + 36a2
36a2 + 16a -1 = 0
36a2 + 18a – 2a + 1 = 0
18a (2a + 1) – 1(2a + 1) = 0
\(a = \frac{{ - 1}}{2},\frac{1}{{18}}\)
So, miss rate of L2 = 0.056 and Miss rate of L1 = 0.111