ETA=0
MODES="read,write,randread,randwrite"
SHORT_HOSTNAME=
+CACHED_IO="FALSE"
show_help() {
PROG=$(basename $0)
echo "usage of $PROG:"
cat << EOF
-h : Show this help & exit
+-c : Enable cached-based IOs
+ by default, fio is run in direct mode
-a : Run sequential test then parallel one
-s : Run sequential test (default value)
one test after another then one disk after another
ioengine=libaio
invalidate=1
ramp_time=5
-direct=1
EOF
if [ "$RUNTIME" != "0" ]; then
EOF
fi
+if [ "$CACHED_IO" = "FALSE" ]; then
+cat >>$TEMPLATE << EOF
+direct=1
+EOF
+fi
+
}
gen_seq_suite() {
}
parse_cmdline() {
-while getopts "hapsd:b:r:m:" opt; do
+while getopts "hacpsd:b:r:m:" opt; do
case $opt in
h)
show_help
b)
BLOCK_SIZE=$OPTARG
;;
+ c)
+ CACHED_IO="TRUE"
+ ;;
s)
if [ "$SEQ" = "-1" ]; then
SEQ=1