Re: [Qemu-devel] [PATCH v2] migration: optimize the downtime

2017-07-27 Thread Jay Zhou
Hi Paolo, On 2017/7/27 22:15, Paolo Bonzini wrote: On 27/07/2017 04:36, Jay Zhou wrote: Qemu_savevm_state_cleanup takes about 300ms in my ram migration tests with a 8U24G vm(20G is really occupied), the main cost comes from KVM_SET_USER_MEMORY_REGION ioctl when mem.memory_size = 0 in kvm_set_us

Re: [Qemu-devel] [PATCH v2] migration: optimize the downtime

2017-07-27 Thread Paolo Bonzini
On 27/07/2017 04:36, Jay Zhou wrote: > Qemu_savevm_state_cleanup takes about 300ms in my ram migration tests > with a 8U24G vm(20G is really occupied), the main cost comes from > KVM_SET_USER_MEMORY_REGION ioctl when mem.memory_size = 0 in > kvm_set_user_memory_region. In kmod, the main cost is > k

[Qemu-devel] [PATCH v2] migration: optimize the downtime

2017-07-26 Thread Jay Zhou
Qemu_savevm_state_cleanup takes about 300ms in my ram migration tests with a 8U24G vm(20G is really occupied), the main cost comes from KVM_SET_USER_MEMORY_REGION ioctl when mem.memory_size = 0 in kvm_set_user_memory_region. In kmod, the main cost is kvm_zap_obsolete_pages, which traverses the acti