test/vhost_perf: set test block device scheduler to "none"

In recent systems default is set to bfq which lowers
performance when using SPDK vhost.

Change-Id: Iefa3b8b514dac2f7b028cf06c18cee3f59c5a9ac
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5982
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Community-CI: Mellanox Build Bot
This commit is contained in:
Karol Latecki 2021-01-19 09:57:02 +01:00 committed by Tomasz Zawadzki
parent 0773af993a
commit 61ecba1a92

View File

@ -394,6 +394,9 @@ for vm_num in $used_vms; do
vm_check_scsi_location $vm_num vm_check_scsi_location $vm_num
fi fi
block=$(printf '%s' $SCSI_DISK)
vm_exec "$vm_num" "echo none > /sys/class/block/$block/queue/scheduler"
if [[ -n "$vm_throttle" ]]; then if [[ -n "$vm_throttle" ]]; then
# Check whether cgroups or cgroupsv2 is used on guest system # Check whether cgroups or cgroupsv2 is used on guest system
# Simple, naive & quick approach as it should do the trick for simple # Simple, naive & quick approach as it should do the trick for simple
@ -402,7 +405,6 @@ for vm_num in $used_vms; do
if vm_exec "$vm_num" "grep '^cgroup ' /proc/mounts"; then if vm_exec "$vm_num" "grep '^cgroup ' /proc/mounts"; then
c_gr_ver=1 c_gr_ver=1
fi fi
block=$(printf '%s' $SCSI_DISK)
major_minor=$(vm_exec "$vm_num" "cat /sys/block/$block/dev") major_minor=$(vm_exec "$vm_num" "cat /sys/block/$block/dev")
if [[ $c_gr_ver == 1 ]]; then if [[ $c_gr_ver == 1 ]]; then