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:
parent
0773af993a
commit
61ecba1a92
@ -394,6 +394,9 @@ for vm_num in $used_vms; do
|
||||
vm_check_scsi_location $vm_num
|
||||
fi
|
||||
|
||||
block=$(printf '%s' $SCSI_DISK)
|
||||
vm_exec "$vm_num" "echo none > /sys/class/block/$block/queue/scheduler"
|
||||
|
||||
if [[ -n "$vm_throttle" ]]; then
|
||||
# Check whether cgroups or cgroupsv2 is used on guest system
|
||||
# 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
|
||||
c_gr_ver=1
|
||||
fi
|
||||
block=$(printf '%s' $SCSI_DISK)
|
||||
major_minor=$(vm_exec "$vm_num" "cat /sys/block/$block/dev")
|
||||
|
||||
if [[ $c_gr_ver == 1 ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user