test/nvme_perf: add option to enable gtod_reduce
Optionally enable gtod_reduce for fio workload. Results in greatly decreased latency metrics, but improved IOPS/BW. Change-Id: Ibe70d8e9a13a18a31e55b60b5cec7b353e2862c3 Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3379 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
parent
0e897f08a6
commit
f4e27ffa14
@ -228,6 +228,10 @@ function create_fio_config() {
|
||||
log_avg_msec=$SAMPLING_INT
|
||||
EOF
|
||||
|
||||
if $GTOD_REDUCE; then
|
||||
echo "gtod_reduce=1" >> $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
|
||||
|
@ -27,6 +27,7 @@ RUNTIME=600
|
||||
RAMP_TIME=30
|
||||
NUMJOBS=1
|
||||
REPEAT_NO=3
|
||||
GTOD_REDUCE=false
|
||||
SAMPLING_INT=0
|
||||
FIO_BIN=$CONFIG_FIO_SOURCE_DIR/fio
|
||||
TMP_RESULT_FILE=$testdir/result.json
|
||||
@ -64,6 +65,7 @@ function usage() {
|
||||
echo " Applicable only for fio-based tests."
|
||||
echo " --repeat-no=INT How many times to repeat workload test. [default=$REPEAT_NO]"
|
||||
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 " --fio-bin=PATH Path to fio binary. [default=$FIO_BIN]"
|
||||
echo " Applicable only for fio-based tests."
|
||||
@ -115,6 +117,7 @@ while getopts 'h-:' optchar; do
|
||||
ramp-time=*) RAMP_TIME="${OPTARG#*=}" ;;
|
||||
numjobs=*) NUMJOBS="${OPTARG#*=}" ;;
|
||||
repeat-no=*) REPEAT_NO="${OPTARG#*=}" ;;
|
||||
gtod-reduce) GTOD_REDUCE=true ;;
|
||||
sampling-int=*) SAMPLING_INT="${OPTARG#*=}" ;;
|
||||
fio-bin=*) FIO_BIN="${OPTARG#*=}" ;;
|
||||
driver=*) PLUGIN="${OPTARG#*=}" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user