Received: from eggs.gnu.org ([208.118.235.92]:56476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tqk5i-0000Zg-0a for qemu-devel@nongnu.org; Thu, 03 Jan 2013 07:40:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tqk5Y-0002zW-U1 for qemu-devel@nongnu.org; Thu, 03 Jan 2013 07:40:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tqk5Y-0002xL-Cy for qemu-devel@nongnu.org; Thu, 03 Jan 2013 07:40:00 -0500 Date: Thu, 3 Jan 2013 13:39:48 +0100 From: Stefan Hajnoczi Message-ID: <20130103123948.GF6976@stefanha-thinkpad.muc.redhat.com> References: <1357143393-29832-1-git-send-email-benoit@irqsave.net> <20130102171057.GP19472@us.grid.coop> <20130102173324.GB29742@irqsave.net> <20130102182637.GR19472@us.grid.coop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130102182637.GR19472@us.grid.coop> 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: Beno?t Canet , kwolf@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com On Wed, Jan 02, 2013 at 12:26:37PM -0600, Troy Benjegerdes wrote: > The probability may be 'low' but it is not zero. Just because it's > hard to calculate the hash doesn't mean you can't do it. If your > input data is not random the probability of a hash collision is > going to get scewed. The cost of catching hash collisions is an extra read for every write. It's possible to reduce this with a 2nd hash function and/or caching. I'm not sure it's worth it given the extremely low probability of a hash collision. Venti is an example of an existing system where hash collisions were ignored because the probability is so low. See 3.1. Choice of Hash Function section: http://plan9.bell-labs.com/sys/doc/venti/venti.html Stefan