940 views
3 3 votes

1 Answer

Best answer
1 1 vote
$L_3$ Miss penalty $=$ Memory hit time $= 100\space cycles$
$L_3$ hit time$ = 50$ $cycles$

$L_3$ hit ratio $= 50$%

So, $L_2$ miss penalty $= \frac{50}{100}$ x $L_3$ $hit$ $time + \frac{50}{100}$ x $L_3$ $miss$ $penalty$

$ = \frac{50}{100}$ x $100 + \frac{50}{100}$ x $50 = 75$ $cycles$

 

$L_2$ hit time $= 8$ $cycles$

$L_2$ hit ratio $= 80$%

So, $L_1$ miss penalty $= \frac{80}{100}$ x $L_2$ $hit$ $time$ $+ \frac{20}{100}$ x $L_2$ $miss$ $penalty$

               $= \frac{80}{100}$ x $8 + \frac{10}{100}$ x $75  = 21.4$ $cycles$

 

$TLB$ hit time $= 1$ $cycle$

$TLB$ miss penalty $=$ Page table walk and TLB update time $= 200$ $cycles$
$TLB$ hit ratio $= 95$%
So, $TLB$ $access$ $time = TLB$ $hit$ $time$ x $\frac{95}{100} + (TLB$ $hit$ $time + TLB$ $miss$ $penalty)$ x $\frac{5}{100}$
 $= 1$ x $\frac{95}{100} + (1+200)$ x $\frac{5}{100} = 11$ $cycles$

 

$L_1$ hit time $= 1$ $cycle$

$L_1$ hit ratio $= 95$%

So, Average memory access time $= TLB$ $access$ $time + (\frac{95}{100}$ x $L_1$ $hit$ $time + \frac{5}{100}$ x $L_1$ $miss$ $penalty)$

$= 11 + (\frac{95}{100}$ x $1 + \frac{5}{100}$ x $21.4)$

$= 11 + 2.02 = 13.02$ $cycles$.
selected by
Position:
Show:

Related questions

75 75 votes
9 answers 9 answers
39.6k
39.6k views
Kathleen asked Sep 13, 2014
39,609 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...
0 0 votes
0 0 answers
609
609 views
Ajay Maurya 6 asked Jan 10, 2019
609 views
0 0 votes
1 1 answer
642
642 views
Pankaj Joshi asked Jan 13, 2017
642 views
my question is even in case of a miss the cache will still be accessed and then main memory, right? please explain this when to consider higher memory level access time a...
0 0 votes
2 2 answers
883
883 views
khushtak asked Jan 13, 2016
883 views
Consider a $256k$ $4$- way set associative cache with block size $64$ Bytes. Main memory is $2Gb.$ The number of bits used for tag,set and word will be respectively?$10...