Question
Consider a two-level cache hierarchy with L1 and L2 caches. An application incurs 1.4 memory accesses per instruction on average. For this application, the miss rate of L1 cache is 0.1; the L2 cache experiences, on average, 7 misses per 1000 instructions. The miss rate of L2 expressed correct to two decimal places is ______.
Official answer and solution
- Official answer
- 0.05
- From
- Official GATE 2017 answer key
Solution
Relate the global L2 misses per instruction to the total memory accesses entering L2 to find the local L2 cache miss rate.
Let be the number of instructions. The application incurs 1.4 memory accesses per instruction on average, so total memory accesses to L1 cache is:
The miss rate of L1 cache is . The number of misses from L1, which are forwarded as accesses to L2 cache, is:
For instructions:
We are given that L2 experiences 7 misses per 1000 instructions:
The local miss rate of L2 is the ratio of L2 misses to L2 accesses:
0.05
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 25 of 65, printed as CS Q.25
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.