Commit d6db5988 authored by Changpeng Liu's avatar Changpeng Liu Committed by Tomasz Zawadzki
Browse files

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: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15954


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 4f33deb8
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
[global]
blocksize_range=4k-512k
#bs=512k
iodepth=128
bs=4k
iodepth=8
ioengine=libaio
filename=
group_reporting
+2 −0
Original line number Diff line number Diff line
@@ -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"
+2 −2
Original line number Diff line number Diff line
[global]
blocksize_range=4k-512k
iodepth=128
blocksize_range=4k-128k
iodepth=16
ioengine=libaio
filename=
group_reporting
+2 −0
Original line number Diff line number Diff line
@@ -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"
+0 −1
Original line number Diff line number Diff line
@@ -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"