Question #45883

In demand paging 200ns is required to satisfy a memory request if the page is in the memory. If the page is not in memory it takes 7ms if free frame is available, 15ms if page to be swapped. Calculate the Effective Access time if page fault rate is 5% and 60% of time the page has to be replaced.

Expert's answer

Answer on Question #45883, Programming, Other

Problem.

In demand paging 200ns is required to satisfy a memory request if the page is in the memory. If the page is not in memory it takes 7ms if free frame is available, 15ms if page to be swapped. Calculate the Effective Access time if page fault rate is 5% and 60% of time the page has to be replaced.

Solution.

1 millisecond = 1000000 nanoseconds.

EAT (Effective Access Time)

= (1 - Fault rate)(Memory access time) + Fault rate(Memory access time + (1 - Rate of time for page swapping)(Frame is available time) + (Rate of time for page swapping)(Page to be swapped time))

Hence EAT = 0.95 · 200 + 0.05(200 + (1 - 0.6) · 7 · 10⁶ + 0.6 · 15 · 10⁶) = 200 + 140000 + 450000 = 590200 ns.

Answer: 590200 ns.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS