test/vhost: use light IO workloads for live migration tests

Use lightweight workload test cases in VM for the purpose
to keep number of dirty pages is in low rate of VM's total
memory.

Fix issue #2805.

Change-Id: I52efd0d0522ccef713ba2c3a451daac0683234dc
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15954
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Changpeng Liu 2022-12-15 11:02:55 +08:00 committed by Tomasz Zawadzki
parent 4f33deb89c
commit d6db5988c5
5 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,6 @@
[global]
blocksize_range=4k-512k
#bs=512k
iodepth=128
bs=4k
iodepth=8
ioengine=libaio
filename=
group_reporting

View File

@ -55,6 +55,8 @@ function migration_tc1() {
# Use 2 VMs:
# incoming VM - the one we want to migrate
# targe VM - the one which will accept migration
# VM uses 1 GiB memory, here we use light IO workload to keep number of dirty pages
# is in low rate of VM's memory, see https://github.com/spdk/spdk/issues/2805.
local job_file="$testdir/migration-tc1.job"
local log_file
log_file="/root/$(basename ${job_file%%.*}).log"

View File

@ -1,6 +1,6 @@
[global]
blocksize_range=4k-512k
iodepth=128
blocksize_range=4k-128k
iodepth=16
ioengine=libaio
filename=
group_reporting

View File

@ -124,6 +124,8 @@ function migration_tc2() {
# Use 2 VMs:
# incoming VM - the one we want to migrate
# targe VM - the one which will accept migration
# VM uses 1 GiB memory, here we use light IO workload to keep number of dirty pages
# is in low rate of VM's memory, see https://github.com/spdk/spdk/issues/2805.
local job_file="$testdir/migration-tc2.job"
local log_file
log_file="/root/$(basename ${job_file%%.*}).log"

View File

@ -100,7 +100,6 @@ function vm_migrate() {
timing_enter vm_migrate
notice "Migrating VM $1 to VM "$(basename $target_vm_dir)
echo -e \
"migrate_set_speed 1g\n" \
"migrate tcp:$target_ip:$target_vm_migration_port\n" \
"info migrate\n" \
"quit" | vm_monitor_send $1 "$from_vm_dir/migration_result"