Question

Consider a demand-paging system with a paging disk that has an average access and transfer time of 20 milliseconds. Addresses are translated through a page table in main memory, with an access time of...

Consider a demand-paging system with a paging disk that has an average access and transfer time of 20 milliseconds. Addresses are translated through a page table in main memory, with an access time of 1 microsecond per memory access. Thus, each memory reference through the page table takes two accesses. To improve this time, we have added an associative memory that reduces access time to one memory reference, if the page-table entry is in the associative memory.

Assume that 80 percent of the accesses are in the associative memory and that, of the remaining, 10 percent (or 2 percent of the total) cause page faults. What is the effective memory access time?

in this question i know we must use

effective access time =(1-p)*ma+p*page fault time.

effective access time = (0.8) (1 microsec)+ (0.1) (2 microsec) +(0.1) (5002 microsec)

                               = 501.2 microsec

                               = 0.5 millisec

however, could you explain where did each number come from?

for example,

0.8 come from 80 percent of the accesses

1 microsec come from.....

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

It seems that you have written wrong formula for effective memory access time. It should be:-

Effective Memory Access Time = 80% of Reference from associative memory + 18% form page table + 2% from page fault

a) Reference from associative memory required only one memory access = 1 microsecond

b) Reference from page table required two memory access, one for page table which is itself in memory and other for actual data which is also stored in memory. i.e. total time = 2 microsecond

c) If there is a page fault then page will be brought back from paging disk and will be loaded in memory and page table is updated. Hence it required one paging disk access and two memory access, one for page table and other for actual data.

i.e. total time = 20 millisecond + 2 microsecond = 20000 microsecond + 2 microsecond = 20002 microsecond

Hence,

Effective Memory Access Time = 80% of Reference from associative memory + 18% form page table + 2% from page fault

= 80% *(1 microsecond) + 18%*(2 microsecond) + 2%*(20002 microsecond)

=0.8 microsecond + 0.36 microsecond + 400.04 microsecond

=401.2 microsecond (Ans)

Add a comment
Know the answer?
Add Answer to:
Consider a demand-paging system with a paging disk that has an average access and transfer time of 20 milliseconds. Addresses are translated through a page table in main memory, with an access time of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Consider a demand-paging system in which the replacement of a page takes 20 milliseconds (access time...

    Consider a demand-paging system in which the replacement of a page takes 20 milliseconds (access time and data transfer). Addresses are translated through a page table in main memory, with an access time of 1 microsecond per memory access. Thus, each memory reference through the page table takes two accesses. To improve this time, a TLB is added to the system to reduces access time to one memory reference, if the page-table entry is in the associative memory. Assume that...

  • Question # 3 Consider a demand-paged system where the page table for each process resides in main...

    Question # 3 Consider a demand-paged system where the page table for each process resides in main memory. In addition, there is a fast associative memory (also known as TLB which stands for Translation Look-aside Buffer) to speed up the translation process. Each single memory access takes 1 microsecond while each TLB access takes 0.2 microseconds. Assume that 2% of the page requests lead to page faults, while 98% are hits. On the average, page fault time is 20 milliseconds...

  • 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...

  • 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.

  • 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...

  • Problem 3 (25 points): Consider a paging system with the page table stored in memory. Ifa...

    Problem 3 (25 points): Consider a paging system with the page table stored in memory. Ifa memory reference takes 200 nanoseconds, how long does a paged memory reference take? If we add associative registers, and 75 percent of all page-table references are found in the associative registers, what is the effective memory reference time? (Assume that finding a page-table entry in the associative registers takes zero time if the entry is there.) a. b.

  • 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.

  • 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.

  • Problem 4 (13 points) Assume we have a demand-paged memory. Assume that the time needed to access...

    Problem 4 (13 points) Assume we have a demand-paged memory. Assume that the time needed to access the page table is negligible. It requires 8 milliseconds to handle a page fault if an empty page is available or the replaced page is not dirty, and 20 milliseconds if the replaced page is dirty. Memory access time is 100 nanoseconds. Assume that the page to be replaced is dirty 70 percent of the time. What is the maximum acceptable page-fault rate...

  • A system has RAM access time of 10 ns, and average page fault service time of...

    A system has RAM access time of 10 ns, and average page fault service time of 50 ms. If page faults occur in 2% of all accesses, what is the Mean Effective Access Time? (In ns)

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
Active Questions
ADVERTISEMENT