edited by
4,270 views
8 votes
8 votes

Consider a Processor with two Caches which it can access directly in parallel $L_1$(80% hit rate) and $L_2$(90% hit rate) with access times as 100ns and 200ns respectively. In case of miss in any of those it fetches the data from hard disk $L_3$(100% hit rate) which has a latency of 500ns. What is the average access time($T_{avg}$) of the organization?

edited by

6 Answers

Best answer
3 votes
3 votes

it is Simultaneous access method to L1 , L2 ,and  L3 Hierchical  access.

Tavg = 0.8 $\times$ 100 + 0.9 $\times$ 200 + 0.2 $\times$ 0.1$\times$ 500 = 270 nsec

i.e. 1st go to L1 and L2 simultaneously , if hit read, if miss then Read from hard disk  to processor .

Note: here it is not given that data from hard disk comes to cache then processor fetch but given In case of miss in any of those it fetches the data from hard disk L3(100% hit rate) which has a latency of 500ns. i.e. Processor fetch data directly from hard disk, looks unpractical but we have to go with question wording.

selected by
1 votes
1 votes

its simultaneous access method : l1 , l2 and l3 isn`t simultaneous access

Tavg =

0.8*100 + 0.2* 200 + 0.2 * 0.1* 400 = 128ns

or , you can write like this also 

L1hit  * L1 + L1miss * ( L2 * L2hit + L2miss  (L3- (L2-L1) +L2) ) 

= 0.8*100 + 0.2 *   ( 200*0.9 + 0.1* ( 500-(100)+200 ) 

= 128 ns

0 votes
0 votes

simultaneous ACCESS METHOD will be used 

L1 and L2 are to be accessed parallel i think the time should be used 200nsec with this time we are able to access both the cache memory.. so,

Tavg= (H1+H2)*T2+(1-H1)(1-H2)(T3)

      =(0.8+0.9)*200+(0.2)*(0.1)*(500)

      =340+10

      =350nsec

Answer:

Related questions

2 votes
2 votes
1 answer
2
Manu Thakur asked Oct 29, 2017
920 views
My Solution:E.M.A.T = HitTimeL1 + MissRateL1x( HitTimeL2 + MissRateL2xMissPenaltyL2) = 1 + $\frac{16}{100}$(5 + $\frac{8}{16}$*50) = 1 + .16(30)...