On Wed, Nov 02, 2022 at 04:00:06PM +0000, Colton Lewis wrote: > Randomize which pages are written vs read using the random number > generator. > > Change the variable wr_fract and associated function calls to > write_percent that now operates as a percentage from 0 to 100 where X > means each page has an X% chance of being written. Change the -f > argument to -w to reflect the new variable semantics. Keep the same > default of 100% writes. > > Population always uses 100% writes to ensure all memory is actually > populated and not just mapped to the zero page. The prevents expensive > copy-on-write faults from occurring during the dirty memory iterations > below, which would pollute the performance results. > > Signed-off-by: Colton Lewis <coltonlewis@xxxxxxxxxx> Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>