From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DCF9C433DB for ; Thu, 25 Feb 2021 18:52:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B9EAA64F42 for ; Thu, 25 Feb 2021 18:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232350AbhBYSvk (ORCPT ); Thu, 25 Feb 2021 13:51:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:42230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhBYSvi (ORCPT ); Thu, 25 Feb 2021 13:51:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8A1C64F03; Thu, 25 Feb 2021 18:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614279058; bh=o45Nk/ThRtDbh8TB+VXox+YC5iOPmiQu7TH0gfp3lyk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=ODWbpXfCeIgx2hvzfs4UlwvmOOPwFkrDELGt6KxQesUUs5l7ON+DgqG4d1lgtryIl bovrPkQc7g/HlCLeYo+ViK9h+ZdvujlmTXdVEWHpfjxOVv+zuLjFql2YLWt7EE2bII x51BTgmyk1bwfbOrtCPmlfpm7Y/zog6Ty8FfTiSPx0SljwcC5JUPMS94R/en0k5rvn YKj+ADR9vka7hhceXHJF0kbr60FxGUV0IN6Uw480WDdotjTIXxCP5royI5M05+Gpxi hpTkemzn0m6pFBNB3FmcvUbE1ySHxddd0JvlP8vurjOroOPBVDSW6Xby3F9ZegZH1I yVnSg728aT6Mw== Date: Thu, 25 Feb 2021 10:50:56 -0800 From: Eric Biggers To: dsterba@suse.cz, Neal Gompa , Amy Parker , Btrfs BTRFS , linux-fsdevel Subject: Re: Adding LZ4 compression support to Btrfs Message-ID: References: <20210225132647.GB7604@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210225132647.GB7604@twin.jikos.cz> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Feb 25, 2021 at 02:26:47PM +0100, David Sterba wrote: > > LZ4 support has been asked for so many times that it has it's own FAQ > entry: > https://btrfs.wiki.kernel.org/index.php/FAQ#Will_btrfs_support_LZ4.3F > > The decompression speed is not the only thing that should be evaluated, > the way compression works in btrfs (in 4k blocks) does not allow good > compression ratios and overall LZ4 does not do much better than LZO. So > this is not worth the additional costs of compatibility. With ZSTD we > got the high compression and recently there have been added real-time > compression levels that we'll use in btrfs eventually. When ZSTD support was being added to btrfs, it was claimed that btrfs compresses up to 128KB at a time (https://lore.kernel.org/r/5a7c09dd-3415-0c00-c0f2-a605a0656499@fb.com). So which is it -- 4KB or 128KB? - Eric