67 67 votes If an instruction takes $i$ microseconds and a page fault takes an additional $j$ microseconds, the effective instruction time if on the average a page fault occurs every $k$ instruction is: $i + \dfrac{j}{k}$ $i +(j\times k)$ $\dfrac{i+j}{k}$ $({i+j})\times {k}$ Operating System gate1998 operating-system virtual-memory easy ugcnetcse-june2012-paper3 + – Kathleen 26.4k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments ꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂ commented Jan 14, 2024 reply Follow flag Effective $m_{acc}$ time= $(1-p) *m_{acc} + (p)*P_{faults}$ Here $P_{faults}$ means time needed to service Page fault. 0 0 replyShare aashitagrawal commented Nov 23, 2025 reply Follow flag simple aptitude que, no knowledge of OS required here 1 1 replyShare Tushar Rana commented Jan 16 reply Follow flag let say this happens: (i + i + i + i + ... + i + i) k times + j(1 page fault after every k instructions) = ki + j for a single instruction average time divide the whole by k, as average = sum of all observation/total observations. 0 0 replyShare Please log in or register to add a comment.
Best answer 87 87 votes Page fault rate $=\dfrac{1}{k}$ Page hit rate $=1-\dfrac{1}{k}$ Service time $=i$ Page fault service time $= i+j$ Effective memory access time, $\quad =\dfrac{1}{k}\times (i+j)+\left(1-\dfrac{1}{k}\right)\times i$ $\quad=\dfrac{(i+j)}{k}+i-\dfrac{i}{k}$ $\quad=\dfrac{i}{k}+\dfrac{j}{k}+i-\dfrac{i}{k}$ $\quad=i+\dfrac{j}{k}$ So, option (A) is correct. sshekhar94 answered Mar 7, 2016 • edited Jul 11, 2018 by kenzou sshekhar94 comment Share Follow See all 8 Comments 8 8 Comments reply Show 5 previous comments neel19 commented Jul 28, 2021 reply Follow flag n = no of instructions EIT = ( n(i) + (n/k)j )/ n = n[i + j/k] n = i + j/k 1 1 replyShare shashinagaral commented Jan 4, 2022 reply Follow flag Given that, on average page fault occurs every k instructions after every k instruction → 1 page fault occurs then, after 1 instruction → 1/k page fault occurs i.e probability that for a given instruction page fault would occur is 1/k this is the page fault rate (in terms of instructions ‘k’) 4 4 replyShare Amoljadhav commented Dec 4, 2024 reply Follow flag finally after 2 yrs of preparation understood this easy question 😂 3 3 replyShare Please log in or register to add a comment.
23 23 votes Lets take a example no of instruction =6 i=4(Normal instrction execution time) j=2(Additional time incase of page fault) k=3(Page fault occurs on every kth instruction) Total time required=4+4+(4+2)+4+4+(4+2)=28 Average time=28/6=4.66 Now substitute the i,j,k values in options i+j/k=4+2/4=4.66 so A is the answer vnc answered Sep 13, 2016 vnc comment Share Follow See all 2 Comments 2 2 Comments reply nitesh_scorpio commented Jan 12, 2019 reply Follow flag Good One Thanks 0 0 replyShare Shakyaji commented Oct 17, 2021 reply Follow flag smart 0 0 replyShare Please log in or register to add a comment.
17 17 votes Here, given that On an average page fault occurs at every 'k' seconds. So, probability of getting a page fault is (1/k). Effective Instruction Time = Normal instruction execution Time + Average Page Fault Service Time i.e. Avg Page Fault Service Time = prob. of getting page fault * page fault service time =(1/k )* j so its "i + (1/k)*j". Dolly answered Nov 27, 2015 Dolly comment Share Follow 0 reply Please log in or register to add a comment.
5 5 votes One more way could be. Let us we have 100 instruction then page fault will occur 100/k times. So Total execution time = 100*i + (100/k)*j So avg execution time = (Total execution time)/(Total number of instruction) = i + (j/k). Answer is (A) Part. Chhotu answered Sep 15, 2017 Chhotu comment Share Follow 0 reply Please log in or register to add a comment.
4 4 votes Consider k instructions: instruction # 1 2 3 ... k time i i i ... i+j Effective instruction time = (i*k + j)/k = i + j/k. commenter commenter answered Aug 20, 2019 commenter commenter comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes 1 instruction takes i ms. k instructions will take k*i ms. 1 page fault in every k instructions. Page Fault Service Time is j ms. So, Total time required to execute k instructions is (k*i+j) ms. so here , Effective instruction time = (k*i+j)/k i.e, i + j/k amey46 answered Dec 11, 2017 amey46 comment Share Follow 0 reply Please log in or register to add a comment.