Question
Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is 1 nanosecond (ns) and the "hit rate" for L1 cache is 90% while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the "hit rate" is 80% and the "miss penalty" for transferring data from L2 cache to L1 cache is 10 ns. The "miss penalty" for the data to be transferred from main memory to L2 cache is 100 ns.
Then the average memory access time in this system in nanoseconds is ___________ . (rounded off to one decimal place)
Official answer and solution
- Official answer
- 4
- From
- Official GATE 2025 answer key
Solution
Apply the hierarchical Average Memory Access Time (AMAT) formula .
Given:
- L1 access time , L1 hit rate L1 miss rate .
- L2 hit rate L2 miss rate .
- Miss penalty from L2 to L1 .
- Miss penalty from main memory to L2 .
Therefore, the average memory access time is:
4.0
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 55 of 65
- 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.