A demand paging system takes 250 units tos service pagefault and 450 units to replace a dirty page.Mem acess time is 10 units.The prob of page faults is 0.3.In case of page fault the prob of page being dirty is 0.06.The avg acess time is
Is my formula correct
(1-p)(PFST+MAT)+p(MAT) where p is prob of being in memory.
0.3[0.06*450+0.94*250+10(for actual data acess)]+0.7*10.
Pls help....