arraysmash: Improved reporting

Signed-off-by: Mel Gorman <mgorman@suse.de>
compare-kernels: Generate smooth version of swapin/swapout graphs

Signed-off-by: Mel Gorman <mgorman@suse.de>
bonnie: Add benchmark for bonnie++

Signed-off-by: Mel Gorman <mgorman@suse.de>
run-mmtests.sh: Optionally setup a log partition

Signed-off-by: Mel Gorman <mgorman@suse.de>
bonnie: Allow it to run as root

Even if it's a bad idea, it's what was requested. If it's ever an issue
I can add support for running it as another user like nobody.

Signed-off-by: Mel Gorman <mgorman@suse.de>
highalloc.stp: print allocation outcomes with preemption disabled

Enabling preemption behind systemtap's back can break _stp_printf() as they use
per-cpu buffers and rescheduling to different cpu can leave buffer of another
cpu unprinted. This is a problem when trying to analyze allocation latencies
in the benchmark.

This patch solves that by preallocating arrays to store the allocations
latencies and outcomes, and printing them only after preemption is disabled
again. It also replaces rdtsc with ktime_get_real(), as rdtsc can be out of
sync on different cpu's and distort measured latencies.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Mel Gorman <mgorman@suse.de>
stress-highalloc: enable R support for textual comparison

Allow printing of stress-highalloc results using R processing, in preparation
for statistically processing multiple iterations of the benchmark.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Mel Gorman <mgorman@suse.de>
run-mmtests.sh: add optional second parameter for iteration number

Running "run-mmtests.sh <test> <iteration>" will cause logs to be stored
in work/log/<iteration> instead of work/log. This allows multiple repeats of
the same test with e.g. reboot between iterations and later statistical
processing.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Mel Gorman <mgorman@suse.de>
compare-kernels.sh: add --iterations <X> parameter

Add parameter that specifies number of iterations to expect for results
processing. Works only together with --R and currently just for the
stress-highalloc benchmark. Results for individual benchmark iterations
are expected to be under <iteration>/ subdirs, which run-mmtests.sh
creates when given the optional iteration parameter.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Mel Gorman <mgorman@suse.de>