retagged by
10,515 views
22 votes
22 votes

Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is $M$ units if the corresponding memory page is available in memory, and $D$ units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is $X$ units.

Which one of the following is the correct expression for the page fault rate experienced by the process.

  1. $(D-M) / X-M)$
  2. $(X-M) / D-M)$
  3. $(D-X) / D-M)$
  4. $(X-M) / D-X)$
retagged by

3 Answers

Best answer
58 votes
58 votes

Let $P$ be the page fault rate.

Average memory access time $= ( 1 -$ page fault rate$) \times$ memory access time when no page fault  $+$  Page fault rate  $\times$ Memory access time when page fault.

$X = (1-P) M + P \ D$

$X = M + P( D - M)$

$P = (X - M) / ( D - M)$

(B) is the answer.

edited by
1 votes
1 votes

The average memory access time is m when no page fault and d when page fault

X = (1-p)m + p(d)

 

upon solving

 

$\frac{x-m}{d-m}$ is the answer

0 votes
0 votes
if not page fault rate = p

so page fault rate =1-p

then  X= P* M + (1-P)*D
  P=X-D/M-D
1-P = 1 – (X-D/M-D ) =M-X/M-D = X-M/D-M = page fault rate
Answer:

Related questions

34 votes
34 votes
5 answers
4