From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV9UN-000186-96 for qemu-devel@nongnu.org; Mon, 09 Mar 2015 22:01:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YV9UK-0002ps-33 for qemu-devel@nongnu.org; Mon, 09 Mar 2015 22:01:43 -0400 Received: from smtp.sangfor.com.cn ([58.251.49.30]:43710 helo=mail.sangfor.com.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YV9UJ-0002pT-Mj for qemu-devel@nongnu.org; Mon, 09 Mar 2015 22:01:40 -0400 Date: Tue, 10 Mar 2015 10:01:34 +0800 From: "Zhang Haoyu" References: <201501130948157439113@sangfor.com.cn>, <201501131002532239699@sangfor.com.cn>, <201501141041046517018@sangfor.com.cn>, <201501141558472151450@sangfor.com.cn>, <201501151154417870577@sangfor.com.cn>, <201501151756164579870@sangfor.com.cn> Message-ID: <201503101001341072349@sangfor.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] question about live migration with storage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel Cc: Gleb Natapov , Stefan Hajnoczi On 2015-01-15 18:08:39, Paolo Bonzini wrote: > > On 15/01/2015 10:56, Zhang Haoyu wrote: > > I see, when waiting the completion of drive_mirror IO, the coroutine will be > > switched back to main-thread to poll and process other events, like qmp request, > > then after the IO completed, coroutine will be switched back in main-loop process, right? > > > > Another question: > > while starting to migrate storage, will the unused sector be allocated and transferred? > > regarding the thin-provisioning qcow2 disk, will extra large IO requests be > > performed, and more data be transferred for the unallocated clusters? > > No. > My test results show that when using thin-provisioning qcow2 image(created by qemu-img create -f qcow2 preallocation=metadata), even the unallocated sectors will be transferred to destination, so much data is transferred, so the qcow2 image in destination is full allocated. Thanks, Zhang Haoyu > Paolo