From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Dunlop Subject: Re: Adding compression/checksum support for bluestore. Date: Thu, 7 Apr 2016 12:59:45 +1000 Message-ID: <20160407025945.GA16081@onthe.net.au> References: <20160404150042.GA25465@onthe.net.au> <20160405151030.GA20891@onthe.net.au> <20160406063849.GA5139@onthe.net.au> <20160406171702.GA5847@onthe.net.au> <20160407004307.GA15754@onthe.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtp1.onthe.net.au ([203.22.196.249]:41693 "EHLO smtp1.onthe.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbcDGC7v (ORCPT ); Wed, 6 Apr 2016 22:59:51 -0400 Content-Disposition: inline In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Allen Samuels Cc: Sage Weil , Igor Fedotov , ceph-devel On Thu, Apr 07, 2016 at 12:52:48AM +0000, Allen Samuels wrote: > So, what started this entire thread was Sage's suggestion that for HDD we > would want to increase the size of the block under management. So if we > assume something like a 32-bit checksum on a 128Kbyte block being read > from 5ZB Then the odds become: > > 1 - (2^-32 * (1-(10^-15))^(128 * 8 * 1024) - 2^-32 + 1) ^ ((5 * 8 * 10^21) / (4 * 8 * 1024)) > > Which is > > 0.257715899051042299960931575773635333355380139960141052927 > > Which is 25%. A big jump ---> That's my point :) Oops, you missed adjusting the second checksum term, it should be: 1 - (2^-32 * (1-(10^-15))^(128 * 8 * 1024) - 2^-32 + 1) ^ ((5 * 8 * 10^21) / (128 * 8 * 1024)) = 0.009269991973796787500153031469968391191560327904558440721 ...which is different to the 4K block case starting at the 12th digit. I.e. not very different. Which is my point! :) Chris