Question
In a two-level cache system, the access times of and caches are 1 and 8 clock cycles, respectively. The miss penalty from the cache to main memory is 18 clock cycles. The miss rate of cache is twice that of . The average memory access time (AMAT) of this cache system is 2 cycles. The miss rates of and respectively are:
Official answer and solution
- Official answer
- A
- From
- Official GATE 2017 answer key
Solution
Set up the Average Memory Access Time (AMAT) formula for a two-level cache hierarchy and solve the resulting quadratic equation for the miss rates.
Let and denote the local miss rates of the and caches, respectively.
Given:
- hit access time clock cycle
- hit access time clock cycles
- Miss penalty from to main memory clock cycles
- clock cycles
The AMAT for a two-level cache system is:
Substitute the given values:
Factor the quadratic equation:
Since miss rate must be positive, .
Then .
Therefore, the miss rates of and are 0.111 and 0.056 respectively, which matches option A.
A
Using global miss rate instead of local miss rate for , or inverting the relation between and .
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 2
- Question
- 29 of 65, printed as CS Q.29
- 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.