Skip to main content

working_set_sweep

Function working_set_sweep 

Source
pub fn working_set_sweep(cap: u64) -> Vec<u64>
Expand description

The working sets a curve is measured at: powers of two from MIN_WORKING_SET up to cap, which is where the device runs out of allocation.

Powers of two because the interesting structure is spread over orders of magnitude, not over any linear span. A cap below MIN_WORKING_SET yields the cap alone, so a tiny device still gets a curve rather than an empty one.