From da5c4e093d359322ecd2e539fe2856da4aa84324 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Thu, 9 Jul 2020 12:19:31 +0200 Subject: [PATCH] test/nvme_perf: reorganize fio config generation Previous changes moved some of the fio CLI parameters into a bash heredoc to save into a text file, but it was put in wrong place in the script. Move global fio parameters a couple lines up so that the resulting fio config file has the correct form of: [global] global_params [testjob] testjob_params Signed-off-by: Karol Latecki Change-Id: I3a958fe5ce880ab63a079c345e6b24fd1d3bae32 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3293 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Michal Berger Reviewed-by: Paul Luse Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- test/nvme/perf/run_perf.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/nvme/perf/run_perf.sh b/test/nvme/perf/run_perf.sh index 8e4954f55..1322a6fd6 100755 --- a/test/nvme/perf/run_perf.sh +++ b/test/nvme/perf/run_perf.sh @@ -126,9 +126,7 @@ for ((j = 0; j < REPEAT_NO; j++)); do cp $NVME_FIO_RESULTS $result_dir/perf_results_${MIX}_${PLUGIN}_${NO_CORES}cpus_${DATE}_${k}_disks_${j}.output else - create_fio_config $k $PLUGIN "$DISK_NAMES" "$DISKS_NUMA" "$CORES" desc="Running Test: Blocksize=${BLK_SIZE} Workload=$RW MIX=${MIX} qd=${IODEPTH} io_plugin/driver=$PLUGIN" - cat <<- EOF >> $BASE_DIR/config.fio rw=$RW rwmixread=$MIX @@ -142,6 +140,7 @@ for ((j = 0; j < REPEAT_NO; j++)); do log_avg_msec=250 EOF + create_fio_config $k $PLUGIN "$DISK_NAMES" "$DISKS_NUMA" "$CORES" echo "USING CONFIG:" cat $BASE_DIR/config.fio