edited by
1,350 views
2 votes
2 votes

Suppose that cache  access time is 7 ns, main memory  access time is 50 ns and disk space  access time is 1200 ns. If the hit rate of cache is 60% and of main memory hierarchy is 70 percent, the average memory access time is _____________ (in ns).

 

Answer is 171 ns.

edited by

2 Answers

Best answer
4 votes
4 votes

Given:
cache  access time is 7 ns, m

ain memory  access time is 50 ns

disk space  access time is 1200 ns.

hit rate of cache is 60%

main memory hierarchy is 70 percent,

Asked :
the average memory access time is 
Sol:

Avg Time:

Hit in Cache * Access(cache)+ MissCache * Hit Main* ( Access Main+Access Cache)+MissCache* MissMain (Accesscache+AccessMain+AccessDisk)
=>0.6*7+0.4*0.7*(50+7)+0.4*0.3(7+50+1200)

=>4.2+0.28*57+0.12*1257
=>4.2+15.96+150.84

=>171

selected by
5 votes
5 votes

Taverage = Access time of cache + Miss rate of cache*  Access time of Main memory + miss rate of cache * miss rate of main memory* access time of Disk

= 7 +  0.4 * 50 + 0.4* 0.3* 1200

= 7 + 20 + 144

= 171 ns

:)

Related questions

2 votes
2 votes
1 answer
2
3lurryface asked Jan 9, 2019
1,112 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?
6 votes
6 votes
3 answers
4
Cruise Device asked Jan 26, 2016
3,569 views
Which page replacement policy sometimes leads to more page faults when size of memory is increased?A] OptimalB] LRUC] FIFOD] None of these.