### 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 varmail personality for a working set that
### is 75% of RAM. This workload should be similar to a simple mail server
### that stores one mail in one file. The IO pattern is small create-append-sync,
### read-append-sync and read/delete operations in a single directory. It runs
### for a range of clients from 1 to NUMCPUS. 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_PLAIN=
export MONITORS_GZIP="proc-vmstat top iotop"
export MONITORS_WITH_LATENCY="vmstat iostat"
export MONITOR_UPDATE_FREQUENCY=10

# filebench
export FILEBENCH_PERSONALITY=varmail
export FILEBENCH_ITERATIONS=3
export FILEBENCH_WORKING_SET=$((MEMTOTAL_BYTES*3/4))
export FILEBENCH_MIN_THREADS=1
export FILEBENCH_MAX_THREADS=$NUMCPUS
