Received: from eggs.gnu.org ([208.118.235.92]:53027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt2i5-00032x-Ub for qemu-devel@nongnu.org; Wed, 09 Jan 2013 15:57:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tt2i5-0004tb-2O for qemu-devel@nongnu.org; Wed, 09 Jan 2013 15:57:17 -0500 Received: from nodalink.pck.nerim.net ([62.212.105.220]:35022 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt2i4-0004tR-R3 for qemu-devel@nongnu.org; Wed, 09 Jan 2013 15:57:16 -0500 Date: Wed, 9 Jan 2013 21:57:43 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20130109205552.GB17532@irqsave.net> References: <20130109152443.GB3494@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] QCOW2 deduplication design List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Paolo Bonzini , qemu-devel , Stefan Hajnoczi > > Two GTrees are used to give access to the hashes : one indexed by has= h and > > one other indexed by physical offset. >=20 > What is the GTree indexed by physical offset used for? I think I can get rid of the second GTree for ram based deduplication. It need to: -Start qcow2 with the deduplication operation turned off while loading ha= shes. So no need to check for new confliction hashes. Dedup will be resumed after complete loading. -For cluster removal and overflow the hash can be read for free from the deduplication table using the physical cluster index. Then the gtree can= be manipulated with the hash. I'll try to implement this tomorow. Best regards Beno=EEt