8,133 views
0 votes
0 votes
A cache is having 60% hit ratio for read operation. Cache access time is 30 ns and main memory access time is 100 ns, 50% operations are read operation.
What will be the average access time for read operation?
(a) 50 ns      (b) 58 ns (c) 100 ns      (d) 70 ns

3 Answers

Best answer
2 votes
2 votes
Given Hit Ratio for Reading = 60/100 = 3/5

 

∴ Miss Ratio m1 for Reading = 1-(3/5) = 2/5 = 0.4

 

 Given access time of cache t1 = 30ns & main memory = 100ns

 

Average Memory Access Time for Reading = t1 + m1*t2 = 30 ns + (0.4 * 100 ns) = 70ns

 

Here, there nothing to do with 50% and access time for writing. Hence, all things are given in terms of reading only.
selected by
4 votes
4 votes
read operations*( cache hit*cache access+cache miss*(cache access + main memory access))

0.5 [ 0.6*30+0.4*(30+100)]=0.5*(18+52)=35ns
3 votes
3 votes
Answer: d
Explanation:
Avg access time (for read operation) = Hit ratio * cache access time + miss ratio *
( Cache access time + MM access time )
Given, Cache access time is 30 ns and main memory access time is 100 ns.
Hit ratio = 60% so Miss ratio = 40%
so Avg access time = (0.6 * 30 ) + 0.4 * ( 30 + 100 )
= 18 + 52
= 70
so average access time for read operation is 70 ns.
Answer:

Related questions

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