in CO and Architecture edited by
432 views
0 votes
0 votes

ASAIK for Tavg(read) =  T(read) = HR(read) * Tc + (1-HR) * (Tc+Tm)

but while calculating they have neglected Tc in (Tc+Tm)...

Please verify ??

in CO and Architecture edited by
by
432 views

4 Comments

please can u say where im wrong 

0
0
Your read calculation is correct.

But for write operation in write-through protocol, you should remember that every time you have to access the main memory for each write operation.
0
0
why cache access time is not considered in write operation ?

what i think is

cache data is updated and on update the memory access is done

but to perform operation on data cache is also to be accesed

why we are not doing that
0
0

1 Answer

1 vote
1 vote

given

Cache access time = 45ns

Main memory access time =750ns

hit ratio for read = 0.9

hit ratio for write = 1 { which means they are using simultaneous access}

avg time for read = hit in cache * access time of cache + miss in cache * MM access time

                               =0.9*45+0.1*750 =115.5ns

avg time for write =  1*750ns {directly accessing last level for write} = 750ns

avg time for read and write = 0.75*115.5 +0.25*750 =274.125

Related questions