search
Log In
0 votes
267 views

Consider a system using demand paging architecture

  • it takes $3ms.$ to service page fault if either empty frame is available or replaced page is not to be modified
  • takes $10ms.$ if replaced page is modified.
  • Main Memory access time is $1ms.$
  • and page to be replaced is modified $60$% of time.

The maximum acceptable page fault rate to get effective memory access time not more than $4ms.$ is_________(%)

in Operating System 267 views

1 Answer

3 votes
 
Best answer
Let the page fault rate be $p$, then

$ \Rightarrow p \times [0.4 \times 3 ms + 0.6 \times 10 ms] + (1-p) \times 1 ms \leq 4 ms$

$\Rightarrow 6.2p = 3$

$\Rightarrow p = 48 \% $

selected by
0
why don't you add the memory access time at the time of page fault?

b'coz in the time of page first we service the page and the access main memory.

correct me if I am wrong
2
From the time when page fault occurs to handling of the page fault is called page fault service time. That's why here no need to add memory access time

Related questions

1 vote
2 answers
1
810 views
Consider a demand paged memory system, page table is held in registers. It takes 800 nsec to service a page fault if empty page is available or replaced page is not modified and 950 nsec if the replaced page is modified, main memory access time is 120 nsec. If page to be replaced is modified 85% of time and page faultrate is 20% then average memory access time is ________. (Upto 1 decimal place)
asked Aug 14, 2018 in Operating System jhaanuj2108 810 views
1 vote
0 answers
3
209 views
if you have 10 Frames and using LRU how many page fault will be there in both below: for (int j = 0; j < 100; j++) for (int i = 0; i < 100; i++) A[i][j] = A[i][j] + A[j][i]; for (int i = 0; i < 100; i++) for (int j = 0; j < 100; j++) A[i][j] = A[i][j] + A[j][i];
asked Nov 13, 2017 in Operating System ashu0316 209 views
0 votes
2 answers
4
3.5k views
(A) processes tend to the I/O-bound (B) size of pages is reduced (C) processes tend to be CPU-bound (D) locality of reference is applicable to the process
asked Jun 16, 2016 in CO and Architecture prashant9 3.5k views
...