Received: from eggs.gnu.org ([2001:4830:134:3::10]:57483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBIqz-0002pm-1i for qemu-devel@nongnu.org; Wed, 14 Jan 2015 02:59:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBIqt-000121-Vm for qemu-devel@nongnu.org; Wed, 14 Jan 2015 02:59:01 -0500 Received: from smtp.sangfor.com.cn ([58.251.49.30]:39106 helo=mail.sangfor.com.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBIqt-000111-Hp for qemu-devel@nongnu.org; Wed, 14 Jan 2015 02:58:55 -0500 Date: Wed, 14 Jan 2015 15:58:47 +0800 From: "Zhang Haoyu" References: <201501130948157439113@sangfor.com.cn>, <201501131002532239699@sangfor.com.cn>, <201501141041046517018@sangfor.com.cn> Message-ID: <201501141558472151450@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-14 15:42:41, Paolo Bonzini wrote: > > On 14/01/2015 03:41, Zhang Haoyu wrote: > > Hi, Paolo, > > what's advantages of drive_mirror over traditional mechanism implemented in block-migration.c ? > > Why libvirt use drive_mirror instead of traditional iterative mechanism as the default way > > of live migration with non-shared storage? > > 1) Being able to choose which block devices are migrated, and whether > they are migrated incrementally or not. > Yes. > 2) Finer-grain control the parameters of block migration (dirty bitmap > granularity). > > 3) Block and RAM migration do not share the same socket and thus can > more easily be parallelized. > But, because of the parallelization, how to calculate the progress? BTW, the traditional iterative mechanism is buggy-implemented? e.g., some bugs which are very difficult to fixed, or something? Thanks, Zhang Haoyu > Note that 1-2 are not yet supported by libvirt as far as I remember. > > Paolo