Commit 4e996120 authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

fio-wrapper: add rwmixread option



Allow specifying the percentage of read operations
in randrw and rw workloads.

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


Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 3dcc7668
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ fio_config() {
		iodepth=$iodepth
		norandommap=$((verify == 1 ? 0 : 1))
		numjobs=$numjobs
		${rwmixread:+rwmixread=$rwmixread}
	FIO

	if ((verify == 1)); then
@@ -133,10 +134,11 @@ protocol="nvmf"
runtime=1
testtype="read"
output=""
rwmixread=""
verify=0

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