diff --git a/test/vhost/perf_bench/vhost_perf.sh b/test/vhost/perf_bench/vhost_perf.sh index 5305aeef6..e69e0bf89 100755 --- a/test/vhost/perf_bench/vhost_perf.sh +++ b/test/vhost/perf_bench/vhost_perf.sh @@ -5,7 +5,7 @@ rootdir=$(readlink -f $testdir/../../..) source $rootdir/test/common/autotest_common.sh source $rootdir/test/vhost/common.sh -vm_count=1 +vhost_num="0" vm_memory=2048 vm_sar_enable=false host_sar_enable=false @@ -13,19 +13,26 @@ sar_delay="0" sar_interval="1" sar_count="10" vm_throttle="" -max_disks="" ctrl_type="spdk_vhost_scsi" use_split=false kernel_cpus="" run_precondition=false lvol_stores=() lvol_bdevs=() +split_bdevs=() used_vms="" wwpn_prefix="naa.5001405bc6498" fio_bin="--fio-bin=/home/sys_sgsw/fio_ubuntu" fio_iterations=1 precond_fio_bin="/usr/src/fio/fio" +disk_map="" + +disk_cfg_bdfs=() +disk_cfg_spdk_names=() +disk_cfg_splits=() +disk_cfg_vms=() +disk_cfg_kernel_names=() function usage() { @@ -39,10 +46,6 @@ function usage() echo " of binary is recommended." echo " --fio-job=PATH Fio config to use for test." echo " --fio-iterations=INT Number of times to run specified workload." - echo " --vm-count=INT Total number of virtual machines to launch in this test;" - echo " Each VM will get one bdev (lvol or split vbdev)" - echo " to run FIO test." - echo " Default: 1" echo " --vm-memory=INT Amount of RAM memory (in MB) to pass to a single VM." echo " Default: 2048 MB" echo " --vm-image=PATH OS image to use for running the VMs." @@ -53,8 +56,6 @@ function usage() echo " --sar-interval=INT Interval (seconds) argument for SAR. Default: 1s." echo " --sar-count=INT Count argument for SAR. Default: 10." echo " --vm-throttle-iops=INT I/Os throttle rate in IOPS for each device on the VMs." - echo " --max-disks=INT Maximum number of NVMe drives to use in test." - echo " Default: will use all available NVMes." echo " --ctrl-type=TYPE Controller type to use for test:" echo " spdk_vhost_scsi - use spdk vhost scsi" echo " spdk_vhost_blk - use spdk vhost block" @@ -66,6 +67,12 @@ function usage() echo " --precond-fio-bin FIO binary used for SPDK fio plugin precondition. Default: /usr/src/fio/fio." echo " --custom-cpu-cfg=PATH Custom CPU config for test." echo " Default: spdk/test/vhost/common/autotest.config" + echo " --disk-map Disk map for given test. Specify which disks to use, their SPDK name," + echo " how many times to split them and which VMs should be attached to created bdevs." + echo " Example:" + echo " NVME PCI BDF,Spdk Bdev Name,Split Count,VM List" + echo " 0000:1a:00.0,Nvme0,2,0 1" + echo " 0000:1b:00.0,Nvme1,2,2 3" echo "-x set -x for script debug" exit 0 } @@ -88,17 +95,16 @@ function cleanup_lvol_cfg() function cleanup_split_cfg() { notice "Removing split vbdevs" - for (( i=0; i