edited by
1,552 views
1 1 vote
A demand paging system,with page table held in integer,takes $5ms$ to service a page fault if an empty page is available,or if the page to be replaced  is not dirty.It takes $15ms$ if the replaced page is dirty. Memory access time is $1\mu s.$ Assume we want an effective access time of $2\mu s$ and that the page to be  replaced is dirty $60\%$ of the time. The approximate maximum acceptable  page fault rate to meet this time requirement will be______$\%?$
$\text{(Correct to two decimal places).}$

2 Answers

1 1 vote
2 = (1 - p)*1 + p * [ (0.4 * 5000 ) + ( 0.6 * 15000 )]

2 = 1 - p + p [ 2000 + 9000 ]

2 -1 = -p + p * 11000

1 = p [11000 - 1 ]

1 = p * 10999

p = ( 1 / 10999)  * 100 %

p = 0.00909

Therefore p  ≈ 0.01
0 0 votes
2*10^-6=.6((1-p)*10^-6+p*15*10^-3)+.4((1-p)*10^-6 +p*5*10^-3) this is equation for the given problem.here i converts all the units into second.for understanding purpose first we for solve 60% dirty then for remaining pages then combinly it will give effective memory access time. after solving equation p=1/10999 = 0.0000909 = 0.00909 %
Position:
Show:

Related questions

1 1 vote
1 1 answer
87
87 views
GO Classes asked Aug 13
87 views
Suppose a $32K \times 8K$ matrix $A$ with $1$-byte elements is stored in row-major order in virtual memory.Assume:Only this program occupies physical memory. The matrix b...
2 2 votes
2 2 answers
128
128 views
GO Classes asked Aug 11
128 views
An operating system can use page tables and exceptions to perform allocation on demand, where it does not allocate physical memory for a program until the program tries t...
0 0 votes
1 1 answer
1.5k
1.5k views
none30 asked Jul 1, 2023
1,522 views
On a system using demand paging, it takes 200 ns to satisfy a memory request if the page is in memory. If the page is not in memory, the request takes 7 ms if a free fram...
0 0 votes
1 1 answer
1.2k
1.2k views
none30 asked Jul 1, 2023
1,232 views
On a system using demand - paged memory, it takes 120 ns to satisfy a memory request if the page is in memory. If the page is not in memory, the request takes 5 ms. What ...