Question

2. A computer uses virtual memory implemented by paging. The TLB lookup takes 150 ns and the update takes 300 ns. The PT look

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

Solution:

Given that :-

TLB lookup = 150 ns

TLB update = 300 ns

PT lookup = 2 \mu s

PT update = 4 \mu s

Reading/ loading a word from main memory = 25 \mu s

Loading a page from disk to memory = 20 ms

TLB hit ratio = 0.3

Main memory hit ratio = 0.4

  • To find the address : -

Average access Time = TLB hit ratio* TLB Look up +TLB miss ratio[ TLB update + PT Look up ]

= 0.3 + 150 +0.71300 + 2000

= 45+ 1610 = 1655 ns

  • To load referenced word on CPU :-

Average access time = Time to find physical address + Main memory hit ratio * read time from memory + Memory miss ratio * disk read time.

= 1655 ns +0.4(25 pus) + 0.6(20 ms)

= 1655 ns +0.4(25 pus) + 0.6(20000 pus)

= 1655 ns + 10 us + 12000 us

= 1655 ns + 12010 us

= 12.011 us

  • Perform necessary update on page table = This happens when we have referred something from page table.

Average access time = Time to get physical address + PT update time.

= 1655 ns + 4000 ns = 5655 ns

Add a comment
Answer #2

Why are you using Main memory hit ratio is 0.4 ? 
I am wondering if it should be 0.7 *0.4  

answered by: student
Add a comment
Know the answer?
Add Answer to:
2. A computer uses virtual memory implemented by paging. The TLB lookup takes 150 ns and...
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
ADVERTISEMENT