retagged by
904 views
0 votes
0 votes

A Computer uses two level Cache L1 and L2 and in 2000 memory references there are 320 misses in L1 and 150 misses in L2. If Miss penalty of L2 is 300 clock cycles, hit time of L1 is 1 clock cycle and hit time in L2 is 10 clock cycle .What is average memory access time ?

  1. 3.6 cycles
  2. 5.4 cycles
  3. 25.06 cycles
  4. 4.8 cycles 
retagged by

1 Answer

2 votes
2 votes
total memory references: 2000

1st check in L1..miss=320 hit=1680

now for 320 misses in L1 check L2..miss=150 hit=170

avg mem acc time=

[1680×1 + 170×(10+1) + 150×(300+10+1) ] ÷ 2000

=25.1

 

 

 

another way to approach is-->

for every 2000 mem acc L1 is accessed

so 1 clk CYCLE..................(a)

for every 320 misses in L1 , L2 is accessed

so 320×10/2000 clk CYCLEs............(b)

for 150 misses in L2 , penalty is 300 clk CYCLEs

so 150×300/2000 clk CYCLEs............(c)

adding a+b+c :

1+3200/200+45000/2000 = 25.1

 

 

ANSWER: C)

Related questions

3.1k
views
0 answers
2 votes
Na462 asked Jul 23, 2018
3,142 views
Consider a two level memory hierarchy L1 (cache) has an accessing time of 10 nsec and main memory has accessing time 100 nsec. Assume the hit ratio read ... if it uses write through technique ________. (Upto 1 decimal places)Ans. 67.6
2.5k
views
0 answers
0 votes
Parshu gate asked Nov 20, 2017
2,531 views
please explain how to understand this problem
1.1k
views
0 answers
3 votes
habedo007 asked Aug 17, 2017
1,063 views
What has to be the general and final formula for calculating the effective memory access time, taking in consideration the $\alpha$-level page table, TLB ... be so many formulae, each different from each other depending on the question.
28.9k
views
3 answers
16 votes
Pradip Nichite asked Jan 17, 2016
28,866 views
Can anyone explains when to use this formulas?Average memory access time (AMAT)AMAT = Hit Time + Miss Rate * Miss PenalityOR• Effective Access Time:1. Hit Rate * Hit ... mem access time) + (1-H)(TLB access + PT access + mem access)]