Live Migration Test
- Start the VM.
1virsh start <VM_name>
- Check whether the KAE is in use.
After the VM is started, check the number of KAE hardware queues. If the number decreases, the KAE device is in use.
watch -n 0.1 "cat /sys/class/uacce/hisi_zip-*/available_instances"

- Start the Redis server.
1redis-server /etc/redis.conf --port 6379 &
- Increase the pressure on the Redis client.On the target physical host, use 20 threads and 1,000 connections to perform 10 million set operations on the Redis server.
1redis-benchmark -h <VM_IP_address> -n 10000000 -c 1000 -r 10000000 -t set -p 6379 --threads 20
- Live migrate the VM.
1time virsh migrate --parallel --parallel-connections <Number_of_live_migration_threads> --compressed --comp-methods zlib --live --verbose --domain < VM_name > qemu+ssh://<IP_address_of_target_physical_host_network_bridge>/system --migrateuri tcp://<IP_address_of_target_physical_host_network_bridge> --unsafe
- Collect time consumption statistics.
real indicates the total time consumed for the VM live migration.

Parent topic: KAE Accelerated Live Migration Test