10,138 views
3 votes
3 votes

The access time of cache memory is 100 ns and that of main memory 
1000 ns. it is estimated that 80% of the memory requests are for read 
and the remaining 20% for write. the hit ratio for read access only is 
0.9. A write -through procedure is used. 

a- what is the average access time of the system considring only 
memory read cycles? 
b-what is the average access time of the system for both read asn 
write requests? 
c-what is the hit ratio taking into consideration the write cycles? 

 

2 Answers

1 votes
1 votes

hit ration h=0.8 the miss ratio =0.1

since it is write through

so avg access time = h*cache access time + (1-h)*(cache access time+main memory access time)

for only read cycles :

0.8*((0.9*100)+0.1*(100+1000)) = 0.8 * 200 =160

for only write :

0.2*((0.9*100)+0.1*(100+1000)) = 0.2 * 200 =40

for both read and write :

avg access time = 160 + 40

                           =200

0 votes
0 votes
let suppose there are 100 instruction then

80 instruction will be read only instruction and

20 instruction are write instruction

hit ratio considering write cycles=0.9 x 80 + 1 x 20 (since there will be always hit on write )

                                                  = 92%
Answer:

Related questions

–1 votes
–1 votes
1 answer
3
1 votes
1 votes
1 answer
4
isriram asked Jun 9, 2022
1,138 views
Consider a system which supports only 1-address type instructions. The size of memory the system has is $2^m$ KB. The system supports ' i ' distinct instructions. The len...