From: "HEWLETT, Paul (Paul)" Subject: Re: Adding Data-At-Rest compression support to Ceph Date: Thu, 24 Sep 2015 15:41:25 +0000 Message-ID: References: <56018A05.6090100@mirantis.com> <56029F66.3070503@mirantis.com> <5602C48C.4010009@mirantis.com> <5604131E.2030408@mirantis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: Received: from fr-hpida-esg-02.alcatel-lucent.com ([135.245.210.21]:42458 "EHLO smtp-fr.alcatel-lucent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754698AbbIXPl2 convert rfc822-to-8bit (ORCPT ); Thu, 24 Sep 2015 11:41:28 -0400 Received: from fr712usmtp2.zeu.alcatel-lucent.com (unknown [135.239.2.42]) by Websense Email Security Gateway with ESMTPS id 7C6BF387C0AA4 for ; Thu, 24 Sep 2015 15:41:23 +0000 (GMT) Received: from FR711WXCHHUB01.zeu.alcatel-lucent.com (fr711wxchhub01.zeu.alcatel-lucent.com [135.239.2.111]) by fr712usmtp2.zeu.alcatel-lucent.com (GMO) with ESMTP id t8OFfOqW015262 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 24 Sep 2015 17:41:26 +0200 In-Reply-To: Content-Language: en-US Content-ID: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: ceph-devel Out of curiosity have you considered the Google compression algos: http://google-opensource.blogspot.co.uk/2015/09/introducing-brotli-new-comp ression.html Paul On 24/09/2015 16:34, "ceph-devel-owner@vger.kernel.org on behalf of Sage Weil" wrote: >On Thu, 24 Sep 2015, Igor Fedotov wrote: >> On 23.09.2015 21:03, Gregory Farnum wrote: >> > On Wed, Sep 23, 2015 at 6:15 AM, Sage Weil wrote: >> > > > > >> > > > > The idea of making the primary responsible for object >>compression >> > > > > really concerns me. It means for instance that a single random >>access >> > > > > will likely require access to multiple objects, and breaks many >>of the >> > > > > optimizations we have right now or in the pipeline (for >>instance: >> > > > > direct client access). >> > > Could you please elaborate why multiple objects access is required >>on >> > > single >> > > random access? >> > It sounds to me like you were planning to take an incoming object >> > write, compress it, and then chunk it. If you do that, the symbols >> > ("abcdefgh = a", "ijklmnop = b", etc) for the compression are likely >> > to reside in the first object and need to be fetched for each read in >> > other objects. >> Gregory, >> do you mean a kind of compressor dictionary under symbols "abcdefgh = >>a", etc >> here. >> And your assumption is that such dictionary is made on the first write, >>saved >> and reused by any subsequent reads, right? >> I think that's not the case - it's better to compress each write >> independently. Thus there is no need to access "dictionary" object ( >>i.e. the >> first object with these symbols) on every read operation,. The latter >>uses >> compressed block data only. >> Yes, this might affect total compression ratio but thinks that's >>acceptabl. > >I was also assuming each stripe unit would be independently compressed, >but I didn't think about the efficiency. This approach implies that >you'd want a relatively large stripe size (100s of KB or more). > >Hmm, a quick google search suggests the zlib compression window is only >32KB anyway, which isn't so big. The more aggressive algorithms probably >aren't what people would reach for anyway for CPU utilization reasons... >I >guess? > >sage >-- >To unsubscribe from this list: send the line "unsubscribe ceph-devel" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html