Commit 2c7ba231 authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

test/vhost_perf: use system fio if not specified by user



Use system-wide fio if a specific binary was not provided.
Additionally add 1 second delay after finishing fio run
to make sure fio client-server finishes correctly.

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


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent d3e367a5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1066,6 +1066,10 @@ function run_fio() {
		return 1
	fi

	if [[ -z "$fio_bin" ]]; then
		fio_bin="fio"
	fi

	if [[ ! -r "$job_file" ]]; then
		error "Fio job '$job_file' does not exist"
		return 1
@@ -1121,6 +1125,7 @@ function run_fio() {
	fi

	$fio_start_cmd
	sleep 1

	if [[ ! $hide_results ]]; then
		cat $out/$log_fname
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ split_bdevs=()
used_vms=""
wwpn_prefix="naa.5001405bc6498"

fio_bin="--fio-bin=/home/sys_sgsw/fio_ubuntu"
fio_iterations=1
precond_fio_bin=$CONFIG_FIO_SOURCE_DIR/fio
disk_map=""