### tiobench is executed in this configuration for up to 16 threads and
### executed thress times to estimate variance. It is known that tiobench
### has some flaws that make it unsuitable as an IO benchmark except for
### historical reasons. The primary problem is that the read portion of
### the benchmark takes place after the write without dumping the cache.
### The performance is then related to how much data is still in the page
### cache. Older kernels had a bug whereby old pages were artifically
### preserved in memory which boosted this benchmarks figures even though
### the kernel was buggy. If this happens, it tends to be visible as
### read performance that is higher than the physical capability of the disk.

# MM Test Parameters
export MMTESTS="tiobench"
export RUN_WARMUP=

# Profiling parameters
export RUN_NOPROFILE=yes
export RUN_FINEPROFILE=no
export RUN_COARSEPROFILE=no
export OPROFILE_REPORT_ANNOTATE=no

# Machine configuration
#export RUN_TUNINGS="$RUN_TUNINGS sysctl"

# Test disk to setup (optional)
#export TESTDISK_RAID_DEVICES=
#export TESTDISK_RAID_MD_DEVICE=/dev/md0
#export TESTDISK_RAID_OFFSET=63
#export TESTDISK_RAID_SIZE=250019532
#export TESTDISK_RAID_TYPE=raid0
#export TESTDISK_PARTITION=/dev/sda6
#export TESTDISK_FILESYSTEM=xfs
#export TESTDISK_MKFS_PARAM="-f -d agcount=8"
#export TESTDISK_MOUNT_ARGS=inode64,delaylog,logbsize=262144,nobarrier

# List of monitors
export RUN_MONITOR=yes
export MONITORS_ALWAYS=
export MONITORS_PLAIN=
export MONITORS_GZIP="proc-vmstat top iotop mpstat"
export MONITORS_WITH_LATENCY="vmstat iostat"
export MONITOR_UPDATE_FREQUENCY=10

# tiobench
export TIOBENCH_BLOCKSIZE=4096
export TIOBENCH_SIZE=$((MEMTOTAL_BYTES*2))
export TIOBENCH_ITERATIONS=3
export TIOBENCH_RANDOM=0
export TIOBENCH_MAX_CLIENTS=16
