Paging Algorithms
Paging Algorithms
The round ends when all the cache items are marked 1,
and a request to an item not in the cache comes in. A
new round then starts.
Summing over all the rounds, and cancel out, except of
the first round and of the last round.
The amortized number of Offline misses in a round is
therefore at least .
What is the expected number of Marker alg. misses
during a round? We shall derive an upper bound.
A requests to a clean causes a miss (out the Marker’s
cache at the beginning), hence a round has certain
misses.
18 Paging Algorithms May 2015
A stale page may also result in a miss if it is first evicted
and then requested.
Of the requests to stale, the expected cost of each is its
probability of being out the cache (0-hit, 1 -miss).
Such miss evicts a stale, so there are still stale out the
cache, but only left since one was just marked.
The probability that the request of the 2nd stale misses is
therefore .
Hence .