### dedup is taken from the PARSEC benchmark suite. It takes a large files,
### identifies duplicated blocks and then compresses the remainder as best as
### possible. This is the type of operation that is sometimes conducted when
### shrinking virtual machine images when an instance is destroyed. This
### configuration uses a virtual machine disk as input but uses between
### 2 and 4*NUMCPUS to deduplicate and compress the file.

# MM Test Parameters
export MMTESTS="dedup"

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

# dedup
export DEDUP_ITERATIONS=4
export DEDUP_MIN_THREADS=2
export DEDUP_MAX_THREADS=4
export DEDUP_FILE=$WEBROOT/compress/vm-image.gz
