59 59 votes Let the page fault service time be $10$ milliseconds(ms) in a computer with average memory access time being $20$ nanoseconds (ns). If one page fault is generated every $10^6$ memory accesses, what is the effective access time for memory? $21$ ns $30$ ns $23$ ns $35$ ns Operating System gatecse-2011 operating-system virtual-memory normal ugcnetcse-june2013-paper2 + – go_editor 39.1k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Show 3 previous comments JAINchiNMay commented Jul 19, 2022 reply Follow flag @Arjun sir does the page service time include memory access time or not 0 0 replyShare N3314nch41 commented Jun 16, 2023 reply Follow flag Doesn’t avg. memory access time same as EMAT 0 0 replyShare legend_of_cse commented Sep 24 reply Follow flag References : Galvin Note : This Question is inspired from Galvin book examples Formula from Galvin bookExample of Galvin book 0 0 replyShare Please log in or register to add a comment.
Best answer 91 91 votes Open slides $12-13$ to check : http://web.cs.ucla.edu/~ani/classes/cs111.08w/Notes/Lecture%2016.pdf$$\begin{align*} \text{EMAT} &= \frac{1}{10^6} \times 10\ \text{ms} + \left(1-\frac{1}{10^6} \right ) \times 20\ \text{ns} \\ &= 29.99998\ \text{ns} \\ &\approx 30\ \text{ns} \end{align*}$$Answer = option B amarVashishth answered Oct 23, 2015 • edited Jun 21, 2021 by Lakshman Bhaiya 1 flag: ✌ Edit necessary (Ysh 1 “Forgot to add 20ns term to 10 ms in page miss, ans is exact 30”) amarVashishth comment Share Follow See all 19 Comments 19 19 Comments reply Show 16 previous comments Ash24 commented Aug 28, 2025 reply Follow flag the link is broken now 1 1 replyShare looser commented Dec 2, 2025 reply Follow flag @himanshud2611For a page fault miss there should ideally be 2 memory accessesone for accessing the page table from MM(main memory) and second for accessing the content from MM@Ritik gupta, I also have same doubt...if you have cleared your doubt..kindly clear mine toooThanks in Adv:) 1 1 replyShare Dr Doom commented 4 days ago i edited by Dr Doom 4 days ago reply Follow flag i think options given is wrong because : when no page fault : page table access + main memory access = 40ns. if page fault : page table access + page fault service time = 20ns + 10 ms = approx 10ms. then : R = (1/10^6) 40ns * (1-R) + 10ms (R) = approx 50ns. 0 0 replyShare Please log in or register to add a comment.
34 34 votes Effective memory access time = Memory access time + page fault rate *page fault service time so here $\text{EMAT} = 20 ns + \frac{ 1}{10^6} \times 10 \times 10^6 ns$ $= 20 + 10 =30 ns$ Ans is B. neha pawar answered Oct 28, 2014 1 flag: ✌ Edit necessary (Prathamesh_Bhujbal “formula is most likely wrong”) neha pawar comment Share Follow See all 3 Comments 3 3 Comments reply suvasish pal commented Sep 22, 2017 reply Follow flag @ neha pawar u r wrong Effective memory access time = Memory access time + page fault rate *page fault service time so here 0 0 replyShare Kuljeet Shan commented Apr 19, 2019 reply Follow flag @neha pawar any valid source of this formula: "Effective memory access time = Memory access time + page fault rate *page fault service time" ? 0 0 replyShare Kuljeet Shan commented Apr 19, 2019 reply Follow flag Actual formula is this: Effective Access Time (EAT) EAT = (1 – p) x memory access + p (page fault overhead + swap page out + swap page in + restart overhead ) Source: http://web.cs.ucla.edu/~ani/classes/cs111.08w/Notes/Lecture%2016.pdf (page 12 - 13 as already mentioned in above answer). 5 5 replyShare Please log in or register to add a comment.
6 6 votes Page Service = 10 ms P = 1 / 10^6 M = 20ns EMAT = (Page service) P + M EMAT = (10 ms) * (1 / 10^6) + 20 ns =10ns + 20ns so, EMAT = 30ns Ans) Option B. Prasanna answered Nov 12, 2015 Prasanna comment Share Follow See all 2 Comments 2 2 Comments reply Kuljeet Shan commented Apr 19, 2019 reply Follow flag "EMAT = (Page service) P + M" From where u wrote this formula ? It is working in this question only ? or it is some standard ? @Prasanna 0 0 replyShare Pathki Shivamsh commented Aug 16, 2020 reply Follow flag EMAT= P*(PS + M) + (1-P)*(M) Here P=Miss Rate , 1-P= Hit Rate ,PS=Page Fault Service Time, M=Main Memory Access Time We can derive as P*(PS+M)+(1-P)*(M) P*PS+P*M+M-P*M Hence EMAT =P*PS+M 4 4 replyShare Please log in or register to add a comment.
2 2 votes Here the explanation shruti gupta1 answered May 23, 2019 shruti gupta1 comment Share Follow See 1 comment 1 1 comment reply Jayprakash Ray commented Oct 11, 2020 reply Follow flag http://www4.comp.polyu.edu.hk/~csajaykr/myhome/teaching/eel602/majors.htm#:~:text=It%20takes%208%20milliseconds%20to,access%20time%20is%20100%20nanoseconds. Refer 1st Question in the link. They have used EMAT=(1-p)Memory Access + p (Memory Access+Page Service Time) p= Page fault Rate 0 0 replyShare Please log in or register to add a comment.
1 1 vote EMAT=1/10^6×(10 ms+20ns) +(1−1/10^6)×20 nsnow solving it when we convert 10ms in ns it wil be 10*10^6 ns which is huge incomparison to 20ns so neglect 20ns and also when are multiplying (1−1/10^6)×20 ns it is approx 20ns again Now EMAT = 10*10^6ns * 1/10^6 + 20ns So EMAT = 10ns + 20ns = 30ns approxSo option B is right answer 30ns Vivid_Vivek answered Sep 17 Vivid_Vivek comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Ans (30)Refer this, Siddharth_Perkar answered Aug 21 Siddharth_Perkar comment Share Follow 0 reply Please log in or register to add a comment.