768 views
3 votes
3 votes
what is page fault service time ? what are its factor and how it is  related/not related with the memory access time??
plss help with suitable example

2 Answers

Best answer
4 votes
4 votes

Page fault means we cant access the page for any reason whatsoever...it's a kind of an interrupt....page fault every time doesnt means that the page is not present in main memory...some time it may happen that u want to access a page which dont have any read permission etc..in these cases also we will face page fault...

now simply put to access a word from memory we need to find its physical address then fetch it from memory...
to convert VA->PA(virtual address to physical address) we go into tlb(say)..here also page fault can happen...though tlb updates with recently used pages only but as i said page fault doesnt means always that page is not present....if we get a page fault here then we have to get the page from memory(m nt taking cache into consideration here)......

other case may be suppose we got PA from tlb and entered the main memory to fetch the word...here also is a chance that page fault may occur and then u have to bring the page from secondary memory...and this time u spent to service the page from  secondary memory to main memory and then load it into main memory is page fault service time generally...
the more page faults u will have more will be the service time and more will be the effective memory access time...because time to fetch the word will be increasing with no of page faults..

edited by
3 votes
3 votes
CPU check page table for page and then take associated frame .If that frame is not present in main memory then page fault occur. When we are looking for something[frame]  in main memory and we did not not found that then at this time OS that Frame [we assume frame we referenced present in main memory] will be brought from secondary memory to main memory by using page replacement algorithm . then according to that page table is updated .

SO page fault = page taken from secondary memory to main memory[page replacement algorithm time include] + page table update time
edited by

Related questions

0 votes
0 votes
1 answer
1
Deepanshu asked Dec 23, 2018
367 views
i have a line in my notes IN Order to switch from User mode to Kernel mode during execution . we just have to change one Bit at hardware level.. I am not remember...
0 votes
0 votes
0 answers
3
air1ankit asked Dec 4, 2017
255 views
what is the work of " logical address " (which is generated by cpu) what is the perfect meaning of the logical address .and same doubt in physical address ..??please expl...
1 votes
1 votes
2 answers
4
Rajesh Raj asked Oct 23, 2016
336 views
when we do double "signal(S)" operation on a Binary semaphore'S' provided initial value of S=0, will the value of 'S' be 2 or it remains 1?