retagged by
1,588 views
2 votes
2 votes
Let cache of 0.7 hit having average access time 9 times faster than that of memory.  if average access time increases 40% from 80ns. What would be new hit ratio.

A. 0.72     b. 0.36     c. 0.53     d. 0.80

 

My answer is 0.74

 

Am i correct?
retagged by

2 Answers

Best answer
4 votes
4 votes
Assuming hierarchical access:

$80 =  x + 0.3 \times 9x \implies x = \frac{800}{37}$

$1.4 \times 80 = \frac{800}{37} + (1-h) \frac{7200}{37} \implies  h = 0.53$
selected by
1 votes
1 votes
your formula be be different .

emat = cache time + miss rate ( memory access)

because every time there is a miss i have to go to main memory and even when there is a miss cache time has to be included.

let cache time to be x then main memory time will be 9x.

80= x+0.3(9x)

x=21.6  9x= 194.5

now new time will be 80 + 0.40*80= 80+32 = 112

112 = 21.6+ x( 194.5)

x=0.464.

which is actually miss rate. so hit rate = 1-miss rate . = 1-0.464 = 0.53

option c.

Related questions

1 votes
1 votes
3 answers
2
jagadeesha kanihal asked Sep 30, 2015
785 views
Case1) cache block size is 4 Words and memory block size is 8 WordsCase2) cache block size is 8 Words and memory block size is 4 Words
2 votes
2 votes
1 answer
4