test/nvme_perf: add iodepth_batch options for fio tests

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: Ia029df5c8c75eff6ba8db9f21756b91a8a0d9720
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4104
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Michal Berger <michalx.berger@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Karol Latecki 2020-09-08 18:53:06 +02:00 committed by Tomasz Zawadzki
parent 67d4ef8dab
commit e4ff3a5bf1
2 changed files with 29 additions and 15 deletions

View File

@ -232,6 +232,14 @@ function create_fio_config() {
echo "gtod_reduce=1" >> $testdir/config.fio
fi
if [[ "$IO_BATCH_SUBMIT" -gt 0 ]]; then
echo "iodepth_batch_submit=$IO_BATCH_SUBMIT" >> $testdir/config.fio
fi
if [[ "$IO_BATCH_COMPLETE" -gt 0 ]]; then
echo "iodepth_batch_complete=$IO_BATCH_COMPLETE" >> $testdir/config.fio
fi
for i in "${!cores[@]}"; do
local m=0 #Counter of disks per NUMA node
local n=0 #Counter of all disks in test

View File

@ -29,6 +29,8 @@ NUMJOBS=1
REPEAT_NO=3
GTOD_REDUCE=false
SAMPLING_INT=0
IO_BATCH_SUBMIT=0
IO_BATCH_COMPLETE=0
FIO_BIN=$CONFIG_FIO_SOURCE_DIR/fio
TMP_RESULT_FILE=$testdir/result.json
PLUGIN="nvme"
@ -68,6 +70,8 @@ function usage() {
echo " Test result will be an average of repeated test runs."
echo " --gtod-reduce Enable fio gtod_reduce option. [default=$GTOD_REDUCE]"
echo " --sampling-int=INT Value for fio log_avg_msec parameters [default=$SAMPLING_INT]"
echo " --io-batch-submit=INT Value for iodepth_batch_submit fio option [default=$IO_BATCH_SUBMIT]"
echo " --io-batch-complete=INT Value for iodepth_batch_complete fio option [default=$IO_BATCH_COMPLETE]"
echo " --fio-bin=PATH Path to fio binary. [default=$FIO_BIN]"
echo " Applicable only for fio-based tests."
echo
@ -121,6 +125,8 @@ while getopts 'h-:' optchar; do
repeat-no=*) REPEAT_NO="${OPTARG#*=}" ;;
gtod-reduce) GTOD_REDUCE=true ;;
sampling-int=*) SAMPLING_INT="${OPTARG#*=}" ;;
io-batch-submit=*) IO_BATCH_SUBMIT="${OPTARG#*=}" ;;
io-batch-complete=*) IO_BATCH_COMPLETE="${OPTARG#*=}" ;;
fio-bin=*) FIO_BIN="${OPTARG#*=}" ;;
driver=*) PLUGIN="${OPTARG#*=}" ;;
disk-config=*)