Question

Consider adding a fast second-level cache to a computer with only a single level cache. Suppose data can be accessed from the

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Let the time to access data from first cache be T1

Let the time to access data from the memory be T2

Then, time to access data from second cache will be T2/12

Average time to access data without second cache (time 1) = (hit probability at cache 1)* (hit time at cache 1) + (miss probability at cache 1)*(time to access memory)

= 0.70*T1 + 0.30*T2

Average time to access data with second cache (time 2)= (hit probability at cache 1)* (hit time at cache 1) + (miss probability at cache 1)*((hit probability at cache 2)*(hit time at cache 2) + (miss probability at cache 2)*(time to access memory))

=0.70*T1 + 0.30*(0.30*T2/12 + 0.70*T2)

speedup=\frac{time 1 }{time 2}

= \frac{0.70*T1 + 0.30*T2}{0.70*T1 + 0.30*(0.30*T2/12 + 0.70*T2)}

= \frac{7*T1 + 3*T2}{7*T1 + 2.175*T2}

= \frac{1 + 0.43*\frac{T2}{T1}}{1 + 0.31*\frac{T2}{T1}}

Where T2/T1 denotes how faster it is to access data from cache 1 as compared to memory.

Add a comment
Know the answer?
Add Answer to:
Consider adding a fast second-level cache to a computer with only a single level cache. Suppose...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT