### filebench is a filesystem and storage benchmark that runs workloads
### specified using a Workload Model Language (WML). The intention is that
### an analyst can distil a production workload into a WML-equivalent and
### then execute it via filebench. It ships with a number of stock
### personalities.
###
### This configuration uses the filebench OLTP personality for a working
### set that is 2*RAM and uses buffered IO. The IO model should be similar to
### the Oracle 9i IO model and launches multiple reader, writer and logging
### processes. More can be read about the stock personalities at
### http://filebench.sourceforge.net/wiki/index.php/Pre-defined_personalities.

# MM Test Parameters
export MMTESTS="filebench"

# 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_GZIP="proc-vmstat top iotop"
export MONITORS_WITH_LATENCY="vmstat iostat"
export MONITOR_UPDATE_FREQUENCY=10

# filebench
export FILEBENCH_PERSONALITY=oltp
export FILEBENCH_ITERATIONS=3
export FILEBENCH_WORKING_SET=$((MEMTOTAL_BYTES/5))
export FILEBENCH_MIN_THREADS=1
export FILEBENCH_MAX_THREADS=1
