handle the page faultassuming one page fault per instruction.
+ page out
+ page in
+ instruction restart
ρ = page faults/total storage references
s = time to access primary storagethen the effective access time (EAT) is
f = page-fault handling time
EAT = (1 - ρ)s + ρf
EAT = (1 - ρ)s + ρf = s + ρ(f - s) = 200 + ρ(8·106 - 200) ≈ 200 + ρ8·106 nsec.
EAT = 200 + 0.001·8·106 nsec ≈ 8 μsec.a ×40 increase in primary-store access time.
EAT = 200 + 200(0.05) = 210 nsec.then
or about 1 page fault in every 381,000 primary-store accesses.
210 = 200 + ρ8·106 ρ = 10/(8·106) = 0.000 002 625
p no: 0 1 2 … next access: 4,947 15,543 18,056 …
This page last modified on 2014 November 1. |