edited by
2,089 views
6 votes
6 votes
A demand paging system has page fault service time as 125 time units if page is not dirty and 400 times units of page fault service time if it is a dirty page. Memory access time is 10 time units. The probability of a page fault is 0.3. In case of page fault, the probability of page being dirty is P. It is observed that average access time is 50 time units. Then, the value of P is ______? [upto four decimal places]
edited by

2 Answers

Best answer
8 votes
8 votes

Page fault rate = 0.3

Hence page hit rate = 0.7

Memory access time = 10 time units

Page fault service time  = 125 time units

Let probability of page being dirty = p

Given effective access time  =  50 ns

Thus E.M.A.T  = 0.7 * [Memory access time] + 0.3*[p * (400 PFST) + (1-p) * PFST]

 ==> 0.7 * 10 + 0.3 *[400*125*p + 125 - 125p]   =   50

 ==> 7 + 0.3 * [50000p - 125p + 125]  =  50

 ==> 0.3 * [49875p + 125]  = 43

 ==> p   =   0.0004 [correct upto 4 decimal places]

NOTE : I have used the expression given in Galvin for effective time calculation..and rest 400 PFST according to the question in case the page is dirty..

selected by
0 votes
0 votes

Please check the answer and apprach to solve the question:

Related questions

4.3k
views
1 answers
2 votes
Beyonder asked Mar 14, 2017
4,319 views
Consider the following passage to answer questions from Q. Nos. 1 to 6 :Virtual Memory is a technique that allows the execution of processes that maynot be completely in ...
277
views
0 answers
0 votes
Harikesh Kumar asked Feb 3, 2018
277 views
There is any difference or same these two statement?1. Page fault service time is 10ms.2. The Time to service a page fault is on average 10ms.
89
views
0 answers
1 votes
Reetu Chaudhary asked May 6
89 views
For a certain page trace starting with no page in the memory, a demand-paged memory system operated under the LRU replacement policy results in 9 and 11 page faults when ...