perf/vhost: Allow to only generate the fio configuration
This use case was missed during the initial refactor introduced via
008f8a8617
. CI depends on it so allow to specify the target location
of the fio configuration and allow to skip call to the main perf
wrapper.
Signed-off-by: Michal Berger <michal.berger@intel.com>
Change-Id: Ie41f9db40769980047f42475ce74e61c374c364c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14590
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
370a63e2b9
commit
fc1c9aafe6
@ -65,9 +65,12 @@ if [[ -n $extra_params ]]; then
|
||||
perf_args+=($extra_params)
|
||||
fi
|
||||
|
||||
trap 'rm -f "$curdir/fio.conf"' EXIT
|
||||
out_fio_conf=${out_fio_conf:-$curdir/fio.conf}
|
||||
fio_conf > "$out_fio_conf"
|
||||
|
||||
fio_conf > "$curdir/fio.conf"
|
||||
[[ -z $only_fio_conf ]] || exit 0
|
||||
|
||||
trap 'rm -f "$out_fio_conf"' EXIT
|
||||
|
||||
"$rootdir/test/vhost/perf_bench/vhost_perf.sh" \
|
||||
"${perf_args[@]}" --fio-jobs="$curdir/fio.conf"${fio_jobs:+",$fio_jobs"}
|
||||
"${perf_args[@]}" --fio-jobs="$out_fio_conf"${fio_jobs:+",$fio_jobs"}
|
||||
|
Loading…
Reference in New Issue
Block a user