From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqN9-0000yw-Jm for qemu-devel@nongnu.org; Fri, 25 May 2012 04:59:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXqN3-0006mu-F5 for qemu-devel@nongnu.org; Fri, 25 May 2012 04:59:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXqN3-0006mh-7C for qemu-devel@nongnu.org; Fri, 25 May 2012 04:59:41 -0400 Message-ID: <4FBF49EA.2000502@redhat.com> Date: Fri, 25 May 2012 10:59:22 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4FB6821A.1080902@redhat.com> <4FBE3A89.8020702@redhat.com> <4FBE3EFE.4020402@zerto.com> <4FBE435C.2050206@redhat.com> <4FBE547C.7020505@redhat.com> In-Reply-To: <4FBE547C.7020505@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dlaor@redhat.com Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel , Luiz Capitulino , Ori Mamluk , Eric Blake Il 24/05/2012 17:32, Dor Laor ha scritto: > I didn't understand whether the persistent dirty bitmap needs to be > flushed. This bitmap actually control the persistent known state of the > destination image. Since w/ mirroring we always have the source in full > state condition, we can choose to lazy update the destination w/ a risk > of loosing some content from the last flush (of the destination only side). Flushing the dirty bitmap after writing to the target can indeed be tuned for the application. However, it is not optional to msync the bitmap when flushing the source. If the source has a power loss, it has to know what to retransmit. > This way one can pick the frequency of flushing the persistent bits map > (and the respective target IO writes). Continuous replication can chose > a timely based fashion, such as every 5 seconds. But then the target is not able to restore a consistent state (which is a state where the dirty bitmap is all-zeros). The scheme above is roughly what DRBD does. But in any case, optimizations need to be worked out with a model checker, it's too delicate. Paolo