• retagged by
12,757 views
26 26 votes
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)

7 Answers

36 36 votes

.

10 10 votes

Answer - 4ns

6 6 votes

So the question is asking for average memory access time.

AMAT in this question can be found by using a simple logic. Access the memory one by one and calculate average memory access time.

In the given question:

AMAT = 0.9*1 + 0.1*(0.8*(1+10)) + 0.1*0.2*(1+10+100) = 4 ns

This means first find hit in L1, then find miss in L1 and hit in L2 and teh find miss in L1 and miss in L2 and hit in mainmemory.

This will give answer as 4 ns.

 

6 6 votes

 

So, 

AMAT = 1 +  0.1 ( 10 + 0.2 (100) )

           = 1 + 0.1 ( 10 + 20 )

           = 1 + 0.1 (30)

           = 1 + 3

           = 4 ns

• edited by
0 0 votes
Average memory access time recursion formula = L1 access time + L1 Miss rate * L1 miss penalty.

L1 Miss penalty = L2 access time + L2 Miss rate * L2 miss penalty

and given in the question that L2 miss penalty which is main memory access time as 100ns

So, AMAT = 1 + 0.1(10+0.2*100)

AMAT = 1+0.1(10+20)

AMAT => 1+ 3 =4...
Answer:
Position:
Show:

Related questions

33 33 votes
8 8 answers
19.4k
19.4k views
Arjun asked Feb 27, 2025
19,442 views
A computer has a memory hierarchy consisting of two-level cache $\text{(L1}$ and $\text{L2)}$ and a main memory. If the processor needs to access data from memory, it fir...
0 0 votes
0 0 answers
494
494 views
Satbir asked Dec 6, 2018
494 views
Consider a system with the average memory access time of a processor with one level (L1) cache is 2.8 clock cycles. If the required data is present in L1-cache it can be ...
76 76 votes
9 answers 9 answers
41.0k
41.0k views
Kathleen asked Sep 13, 2014
40,997 views
The access times of the main memory and the Cache memory, in a computer system, are $500$ n sec and $50$ nsec, respectively. It is estimated that $80\%$ of the main memor...
2 2 votes
1 1 answer
176
176 views
naveendewangan asked Aug 2
176 views
Assume 15% of L1 misses are resolved in the victim cache. If retrieving data from the victim cache takes 4 cycles and retrieving data from main memory take 50 cycles, by ...