Received: from eggs.gnu.org ([208.118.235.92]:38810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSBk-0004ri-0N for qemu-devel@nongnu.org; Wed, 02 Jan 2013 12:33:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqSBd-000052-Fe for qemu-devel@nongnu.org; Wed, 02 Jan 2013 12:33:11 -0500 Received: from nodalink.pck.nerim.net ([62.212.105.220]:56351 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqSBd-00004v-7I for qemu-devel@nongnu.org; Wed, 02 Jan 2013 12:33:05 -0500 Date: Wed, 2 Jan 2013 18:33:24 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20130102173324.GB29742@irqsave.net> References: <1357143393-29832-1-git-send-email-benoit@irqsave.net> <20130102171057.GP19472@us.grid.coop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20130102171057.GP19472@us.grid.coop> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC V4 00/30] QCOW2 deduplication List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Troy Benjegerdes Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com > How does this code handle hash collisions, and do you have some regress= ion > tests that purposefully create a dedup hash collision, and verify that = the > 'right thing' happens? The two hash function that can be used are cryptographics and not broken = yet. So nobody knows how to generate a collision. You can do the math to calculate the probability of collision using a 256= bit hash while processing 1EiB of data the result is so low you can consider = it won't happen. The sha256 ZFS deduplication works the same way regarding collisions. I currently use qemu-io-test for testing purpose and iozone with the -w f= lag in the guest. I would like to find a good deduplication stress test to run in a guest. Regards Beno=EEt > It's great that this almost works, but it seems rather dangerous to put > something like this into the mainline code without some regression test= s. >=20 > (I'm also suspecting the regression test will be a great way to find=20 > flakey hardware) >=20 > -----------------------------------------------------------------------= --- > Troy Benjegerdes 'da hozer' hozer@hozed.= org >=20 > Somone asked my why I work on this free (http://www.fsf.org/philosophy/= ) > software & hardware (http://q3u.be) stuff and not get a real job. > Charles Shultz had the best answer: >=20 > "Why do musicians compose symphonies and poets write poems? They do it > because life wouldn't have any meaning for them if they didn't. That's = why > I draw cartoons. It's my life." -- Charles Shultz