]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
mirror: improve performance of mirroring of empty disk
authorDenis V. Lunev <den@openvz.org>
Thu, 14 Jul 2016 13:33:29 +0000 (16:33 +0300)
committerJeff Cody <jcody@redhat.com>
Tue, 19 Jul 2016 21:02:49 +0000 (17:02 -0400)
commit4b5004d9fc5b7d8e4447dc81c2f26477c2d590f7
tree6186bb4e9cdaec5f85a732f135368c15ddcaf6b3
parentc7c2769c0e5769eaad9d968fe2161505b657e02a
mirror: improve performance of mirroring of empty disk

We should not take into account zero blocks for delay calculations.
They are not read and thus IO throttling is not required. In the
other case VM migration with 16 Tb QCOW2 disk with 4 Gb of data takes
days.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1468503209-19498-9-git-send-email-den@openvz.org
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Jeff Cody <jcody@redhat.com>
CC: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/mirror.c