The cliff: miss rate against working-set size
The cliff: miss rate against working-set size
Twenty thousand uniformly random accesses into an array of n elements, replayed through a cache holding 512 elements. Below 512 the miss rate is essentially zero; a factor of eight above it, essentially everything misses. The comparison count of an algorithm says nothing about which side of this cliff it is working on, which is why the two counts are carried separately. Model: fully associative · 64 lines × 8 elements · LRU.
Drawn at 660 × 400, wide on the page.
Everything above is what working-set returns with no arguments; the caption is the
generator's own, computed from the numbers in the drawing rather than written beside it.
10 essays call
working-set. The drawing above is what it returns with no arguments at all; every
call below passes it something, because a placement that passes nothing draws whichever
member of the family the generator happens to default to rather than the one its essay
argues about — which is what optcheck and figfill exist to catch.
Where it is called
Changing this generator changes every one of these figures.