我要评分
获取效率
正确性
完整性
易理解

Live Migration Test

  1. Start the VM.
    1
    virsh start <VM_name>
    
  2. 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"

  3. Start the Redis server.
    1
    redis-server /etc/redis.conf --port 6379 &
    
  4. 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.
    1
    redis-benchmark -h <VM_IP_address> -n 10000000 -c 1000 -r 10000000 -t set -p 6379 --threads 20
    
  5. Live migrate the VM.
    1
    time 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
    
  6. Collect time consumption statistics.

    real indicates the total time consumed for the VM live migration.