1,503 views
0 votes
0 votes
I have read that EMAT when the page fault occurs is =p(PS+MA)+(1-p)(MA)

p is the probability of page fault

i-p is the probability that page is present in Main Memory

PS is the Page fault service time

MA is the memory access time

but according to me first it should check that page is Present in main memory by Page table entry which is present in MM which is going to take one Memory access

So,EMAT should be equals=p(MA+PS+MA)+(1-p)(MA+MA).

why it is not so??

1 Answer

0 votes
0 votes
Actually it is depends on implementation that we are using.(see Galvin book 9E PAGE NO 374  for better explanation )

 However ;

EMAT = p * (page table access + page fault service ) + (1-p) (page table access + access frame or byte in memory)

Here we are not using memory access two times in page fault occuring. Bcoz in this scenario page  table says the page that you are refered not in memory so why you put memory access two times okk.

Related questions

0 votes
0 votes
0 answers
2
Shamim Ahmed asked Dec 9, 2018
871 views
In Page Fault and Demand Paging concept what is the difference between Effective Memory access time and average memory access time?The formulae are known but i am confuse...