Commit 3dcc7668 authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

fio-wrapper: allow saving metrics output



Use "-o" when calling fio-wrapper script to specify
where to save measurements dump.

Group reporting and JSON format hardcoded for now.

Signed-off-by: default avatarKarol Latecki <karol.latecki@intel.com>
Change-Id: I7c4aca62a6fccd0c250284d1badeb02e9f6b9acb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18133


Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent 935d6caf
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -44,7 +44,11 @@ fio_config() {
}

run_fio() {
	fio_config "$@" | fio -
	local output_args
	if [[ -n "$output" ]]; then
		output_args=("--group_reporting=1" "--output-format=json" "--output=$output")
	fi
	fio_config "$@" | fio "${output_args[@]}" -
}

get_iscsi() {
@@ -128,10 +132,11 @@ numjobs=1
protocol="nvmf"
runtime=1
testtype="read"
output=""
verify=0

# Keep short args compatible with fio.py
while getopts :i:d:n:p:r:t:v arg; do
while getopts :i:d:n:p:r:t:o:v arg; do
	case "$arg" in
		i) blocksize=$OPTARG ;;
		d) iodepth=$OPTARG ;;
@@ -139,6 +144,7 @@ while getopts :i:d:n:p:r:t:v arg; do
		p) protocol=$OPTARG ;;
		r) runtime=$OPTARG ;;
		t) testtype=$OPTARG ;;
		o) output=$OPTARG ;;
		v) verify=1 ;;
		*) ;;
	esac