Question

If the page fault rate is given by F, and the TLB hit rate is given by H. Both F & H are in the range [0,1]. Give a formula f

If the page fault rate is given by F, and the TLB hit rate is given by H. Both F & H are in the range [0,1]. Give a formula for the effective memory access time of a paging system if the normal memory access time is N, and the time it takes to serve the page fault (i.e. to read the page from disk and update the page able) is T, and the time it takes to read the TLB is negligible, i.e. zero.

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

We apply the formula for Average Memory Access Time (AMAT) for multiple levels of memory access.

The sequencing is as follows :

  • First TLB is tried. If we get the page <=> frame mapping, we are done.
  • If TLB is a miss, we try in main memory. If we get page <=> frame mapping, we are done.
  • If main memory is also a miss, it means the page-fault has occurred, and thus the mapping is obtained after servicing the page-fault.

Thus, the AMAT is given by

= (TLB hit time) + (TLB miss rate) [ (Main memory hit time) + (Main memory miss rate) {Page fault service time} ]

= (TLB hit time) + (TLB miss rate) [ (Main memory hit time) + (Page fault rate) {Page fault service time} ]

= (0) + (1 - H) [ (N) + (F) {T} ]

= (1 - H) [ (N) + (F) {T} ]

Thus, the answer to be filled in is

(1 - H) (N + FT)

Add a comment
Know the answer?
Add Answer to:
If the page fault rate is given by F, and the TLB hit rate is given...
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
  • A computer uses virtual memory implemented by paging. The TLB lookup takes 100 ns and the...

    A computer uses virtual memory implemented by paging. The TLB lookup takes 100 ns and the update takes 200 ns. The PT lookup takes 1 µs and the update takes 2 µs. Loading a word from main memory onto the CPU takes 10 µs and loading a page from the disk into main memory takes 10 ms. The TLB hit ratio is 0.4 and the main memory hit ratio is 0.3. Compute the average access time for a referenced word:...

  • 2. A computer uses virtual memory implemented by paging. The TLB lookup takes 150 ns and...

    2. A computer uses virtual memory implemented by paging. The TLB lookup takes 150 ns and the update takes 300 ns. The PT lookup takes 2 us and the update takes 4 us. Loading a word from main memory onto the CPU takes 25 us and loading a page from the disk into main memory takes 20 ms. The TLB hit ratio is 0.3 and the main memory hit ratio is 0.4. Compute the average access time for a referenced...

  • Q5. Consider a memory system where all pages fit in memory. The TLB takes 15 nanoseconds...

    Q5. Consider a memory system where all pages fit in memory. The TLB takes 15 nanoseconds to access and memory takes 120 nanoseconds to access. What is the effective access time for 1 level paging if the hit rate is 65%? What if it’s 95%? What is the effective access time if not all processes fit into memory and the swap time is 850,000 nanoseconds for a page fault?

  • Number Name 3. Assuming no page fault on a page table access, what is the processor...

    Number Name 3. Assuming no page fault on a page table access, what is the processor memory access time for the system depicted in the above figure, for a physical memory with 50ns read/write times? 4. Now, assume that the memory system has a translation look-aside buffer (TLB). The TLB requires 10 ns to determine a hit or mess. The physical memory system has an access time of 50ns. You may assume that page fault rate for the application is...

  • 21.​ A system has the following characteristics: Memory Access (read/write) : 50ns disk access : 20ms...

    21.​ A system has the following characteristics: Memory Access (read/write) : 50ns disk access : 20ms TLB access : 10ns TLB hit ratio : 90% page fault ratio : 5% You may assume that all page faults require a block to be written. For this system, calculate effective memory access time assuming that 2­level paging is used. Show your work.

  • Consider the following system: Byte addressable 16-bit addresses 256B pages Single level Page Table System The...

    Consider the following system: Byte addressable 16-bit addresses 256B pages Single level Page Table System The system utilizes a fully-associative TLB with 4 entries and an LRU replacement policy. Given the access pattern and timings below, complete the following table. Assume the TLB begins initially empty and the cache is physically addressed NOTE: Access times are not inclusive and components are accessed sequentially. Time to update the TLB is negligible, everything else that needs to be updated will require a...

  • 3. Consider a paging system with the page table in memory. A. If a memory reference...

    3. Consider a paging system with the page table in memory. A. If a memory reference takes 100 nanoseconds, how long does a paged memory reference take? B. If we add TLBs, and 75 percent of all page-table references are found in the TLBs, what is the effective memory reference time? (Assume that finding a page-table entry for the TLBs takes 20 nanoseconds.) C. It takes 750 milliseconds to service a page fault. The page fault rate is .001. What...

  • 3. Consider a paging system with the page table in memory. A. If a memory reference takes 100 nanoseconds, how long does...

    3. Consider a paging system with the page table in memory. A. If a memory reference takes 100 nanoseconds, how long does a paged memory reference take? B. If we add TLBs, and 75 percent of all page-table references are found in the TLBs, what is the effective memory reference time? (Assume that finding a page-table entry for the TLBs takes 20 nanoseconds.) C. It takes 750 milliseconds to service a page fault. The page fault rate is .001. What...

  • Regarding demand paging, assume an average page fault service time = 25 ms and a memory...

    Regarding demand paging, assume an average page fault service time = 25 ms and a memory access time of 100 ns (ms = milliseconds, 1/1000 sec; ns = nanoseconds, 1/1,000,000,000 sec). Calculate the effective access time in ns. Given a page fault rate of 1/1000, calculate the factor by which the computer would be slowed down over not incurring any page fault.

  • Answer the following questions a) If average page-fault service time is 9 milliseconds, a memory access...

    Answer the following questions a) If average page-fault service time is 9 milliseconds, a memory access time is 202 nanoseconds, and the page fault rate is 0.2% then what is the effective access time (in nanoseconds) for a demand paging scheme. b) Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs.

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