From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF3hZ-0001fj-BO for qemu-devel@nongnu.org; Mon, 11 Mar 2013 10:27:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UF3hS-0006IZ-8d for qemu-devel@nongnu.org; Mon, 11 Mar 2013 10:27:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF3hS-0006I8-0Q for qemu-devel@nongnu.org; Mon, 11 Mar 2013 10:27:38 -0400 Date: Mon, 11 Mar 2013 15:27:34 +0100 From: Stefan Hajnoczi Message-ID: <20130311142734.GA7611@stefanha-thinkpad.redhat.com> References: <1362867748-30528-1-git-send-email-stefanha@redhat.com> <24E144B8C0207547AD09C467A8259F7557B300E4@lisa.maurer-it.com> <24E144B8C0207547AD09C467A8259F7557B30310@lisa.maurer-it.com> <24E144B8C0207547AD09C467A8259F7557B30D69@lisa.maurer-it.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24E144B8C0207547AD09C467A8259F7557B30D69@lisa.maurer-it.com> Subject: Re: [Qemu-devel] [RFC 0/8] block: Live backup prototype List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dietmar Maurer Cc: Kevin Wolf , Stefan Hajnoczi , "qemu-devel@nongnu.org" , Markus Armbruster On Mon, Mar 11, 2013 at 09:26:26AM +0000, Dietmar Maurer wrote: > > > > We track zero blocks at 4KB level to get small backup files. Restore > > > > can handle those blocks differently, either pre-allocate or create > > > > holes. That > > > can even be a restore option. > > > > > > You are right, the behavior can be set at restore time. > > > > > > I'm curious how much of a win the 4 KB zero detection is on random > > > Linux or Windows guest images. Have you collected numbers? > > > > Well, seems that it does not help much - it saves about 0.2% space. So maybe > > we can remove that feature (and increase address space in the VMA format > > instead). > > Sorry, I need to correct myself - I had a bug in the code. > > I can see space reduction up to 4% using this feature. Considering the fact that it > comes at no cost, it would be stupid to remove it. Okay, looks like it's useful but not a huge win. In the NBD approach pipelining writes (or discards) ought to make 4 KB zero blocks usable without overhead. Stefan