|
@ -0,0 +1,19 @@ |
|
|
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
|
|
if [ -z $1 ]; then |
|
|
|
|
|
procs=1 |
|
|
|
|
|
else |
|
|
|
|
|
procs=$1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
bench_exec="sysbench" |
|
|
|
|
|
bench_var="--num-threads=$procs" |
|
|
|
|
|
bench="$bench_exec $benc_var" |
|
|
|
|
|
|
|
|
|
|
|
$bench --test=fileio --file-test-mode=seqwr run |
|
|
|
|
|
free && sync && sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' && free |
|
|
|
|
|
$bench --test=fileio --file-test-mode=seqrd run |
|
|
|
|
|
rm -f test_file.* |
|
|
|
|
|
#$bench --test=fileio --file-test-mode=rndwr run |
|
|
|
|
|
#$bench --test=fileio --file-test-mode=rndrd run |
|
|
|
|
|
#rm -f test_file.* |