It's useful to be able to specify the iodepth while running fio with
libaio.
By default, we keep iodepth=1 to keep the same as fio's default.
CACHED_IO="FALSE"
PREFIX=""
PREFIX_FILENAME=""
CACHED_IO="FALSE"
PREFIX=""
PREFIX_FILENAME=""
show_help() {
PROG=$(basename $0)
show_help() {
PROG=$(basename $0)
-p : Run parallel test
one test after anoter but all disks at the same time
Enabled by default
-p : Run parallel test
one test after anoter but all disks at the same time
Enabled by default
+-D iodepth : Run with the specified iodepth
+ Default is 32
-d disk1[,disk2,disk3,..] : Run the tests on the selected disks
Separated each disk with a comma
Disk name shall be "sdxx", /dev/ shall NOT be used here
-d disk1[,disk2,disk3,..] : Run the tests on the selected disks
Separated each disk with a comma
Disk name shall be "sdxx", /dev/ shall NOT be used here
cat >$TEMPLATE << EOF
[global]
ioengine=libaio
cat >$TEMPLATE << EOF
[global]
ioengine=libaio
invalidate=1
ramp_time=5
EOF
invalidate=1
ramp_time=5
EOF
-while getopts "hacpsd:b:r:m:x:" opt; do
+while getopts "hacpsd:b:r:m:x:D:" opt; do
case $opt in
h)
show_help
case $opt in
h)
show_help
+ D)
+ IODEPTH=$OPTARG
+ ;;