0 votes
167 views

My approach: Given EMAT = 4

4 = (1-p)(m) + p(page fault service + m)  ……………. p = page fault rate

Page fault service = (0.6) * 10 + (0.4)* (3) ==> 7.2

4 = (1-p)(1) + p(7.2 + 1)

They have taken 4 = (1-p)(1) + p(7.2)

In page fault also we should consider Memory access time right ..??

| 167 views
0
in my opinion, page fault service time includes all. if instead page fault service time were not given, then including memory access time after page fault is reasonable.
0
page fault service time does not include all,if both are comparable and then we have to consider memory access time along with page service time .they(ME) never include .we can ignore memory access time only when page fault service is very huge (like in millisecond) and  memory access time is very less (like in ns).
0
if nothing is given we should consider Page fault service time as

TIme to get page from Sec mem + Load it in mem + Access page after loading in MM
+1

@Prateek Raghuvanshi

see this question from gate 2018.

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?
(A) (D – M) / (X – M) (B) (X – M) / (D – M)
(C) (D – X) / (D – M) (D) (X – M) / (D – X)

here if we try to solve by adding extra M unit of time during page fault, then none of the options matches, and also nothing has been given about the actual value of the service times, so that we would compare for large or small.

these type of questions are confusing... but after solving a bunch of questions, what i concluded is IF THEY HAVE DIRECTLY GIVEN THE PAGE FAULT SERVICE TIME, THEN NO NEED TO INCLUDE MEMORY ACCESS TIME AGAIN, AS THEY HAVE ALREADY TAKEN CARE OF THAT. INSTEAD IF THEY GAVE US THE EXPLICIT DATA LIKE, LOADING FROM HARD DISK TO MAIN MEMORY TAKES THIS MUCH AMOUNT OF TIME, OR ACCESSING PAGE TABLE TAKES THIS TIME, AND SO ON, BUT NOT GIVEN THE PAGE FAULT SERVICE TIME DIRECTLY, THEN WE HAVE TO INCLUDE THE MEORY ACCESS TIME TOO.

0
got it @aambazinga thanks.

## 1 Answer

0 votes
No for the modified bit you have to take two memory access.
by (229 points)

0 votes
2 answers
2
0 votes
0 answers
5
+3 votes
1 answer
6