Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp844558ybh; Tue, 10 Mar 2020 09:17:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvv+3vkf3FzZoG4ZK768Vng8/zYEAiOlnbIFaGAxHOWP7HeiEB8lIRqdCW5Sypf1r8hdn+4 X-Received: by 2002:aca:3287:: with SMTP id y129mr1800105oiy.1.1583857022432; Tue, 10 Mar 2020 09:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583857022; cv=none; d=google.com; s=arc-20160816; b=SCRrB15sGihxD4XuSAEhE1RESfbu3w432WnzYO+rPPwNCls5B3QHjGqPEIJbdIiDFS qryzrUPka7ERnMeTe6P/ObIO6upNqRoCbF+OIo9BzWdeN3cwgFGRNQIZhD6aaI/8fEZA GF4HJ+KAb4Qfl6wYgDXknE4xdDSiOodCF+dvy/VyUtIxr91JJtfwxL2LYvIsTtsLd+6F 3zsk53dwYCjp9FVJxAMmPBv5XF+DB5xZVzPJgq9x/b05GKAXBH61DBqy5opg8KJ4V/3x ysKS0ZwFehw+N3t24g/MN9V88q3SWdcHXZgkVjuhVMU3ofOIkD1kRXscsuhQ1oOR89b3 qglw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zpaZhoMUunj88BHY3NfG0x16W3xhAElcZ9TFvoVj6Ns=; b=vjcCUP0NIN8EtJ76Mt4pvBXVoS5nRsLzjxxobq6PfYeqRmucaKSkqnunhxwpqqAQMO X2vxz09lO5kCER0/mZSySeVpg9g3bqqQo07CLHQrI2M3oBgl7Z/qqXH6P5qiS+Wg8baS wuUPwGuXhiDLjos+tFZIQbShjJXGC81wlZ84w7p8TQysBznMjdPs05uPFZOJpuFMWaWY VIImD40x7CqMeUEpQyZE5R4dFOfqa/P0yrrM2CG+NAMlAF3mzowmhjj8CzfoUcaeoAXi pM8FD0T713Up3TpPgecXTMv3cXRGlFf+uxqZnasBbuiYW++fm8djfTvtU8ciGFblXWr4 tg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HGGaSYt+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a185si6338670oii.252.2020.03.10.09.16.40; Tue, 10 Mar 2020 09:17:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HGGaSYt+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbgCJQPS (ORCPT + 99 others); Tue, 10 Mar 2020 12:15:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:39740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgCJQPR (ORCPT ); Tue, 10 Mar 2020 12:15:17 -0400 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E0C6A20873; Tue, 10 Mar 2020 16:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583856917; bh=5B7f7iMicXNmubmqlX5vKEndbJydDCOLljZZexLnsC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HGGaSYt+LLXeCifV5rE2zEG9j8k3JLp9ZtvnClVAmGdIMNY+uF+1Ifdv7nRqqH58s 9gv6S4+LS7+4lSysbdYlMsAIS1YZpcZQSzK4wGkvs1/uq8ne7MlxnIceSlPfNiMWRW q4hEF4zU4b5Nm0A7+lRgncmeIuVCCSOzFD8hy7Xs= Date: Tue, 10 Mar 2020 09:15:15 -0700 From: Eric Biggers To: Chao Yu Cc: jaegeuk@kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH 1/5] f2fs: change default compression algorithm Message-ID: <20200310161515.GA1067@sol.localdomain> References: <20200310125009.12966-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200310125009.12966-1-yuchao0@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 08:50:05PM +0800, Chao Yu wrote: > Use LZ4 as default compression algorithm, as compared to LZO, it shows > almost the same compression ratio and much better decompression speed. > > Signed-off-by: Chao Yu > --- > fs/f2fs/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index db3a63f7c769..ebffe7aa08ee 100644 > --- a/fs/f2fs/super.c > +++ b/fs/f2fs/super.c > @@ -1577,7 +1577,7 @@ static void default_options(struct f2fs_sb_info *sbi) > F2FS_OPTION(sbi).test_dummy_encryption = false; > F2FS_OPTION(sbi).s_resuid = make_kuid(&init_user_ns, F2FS_DEF_RESUID); > F2FS_OPTION(sbi).s_resgid = make_kgid(&init_user_ns, F2FS_DEF_RESGID); > - F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZO; > + F2FS_OPTION(sbi).compress_algorithm = COMPRESS_LZ4; > F2FS_OPTION(sbi).compress_log_size = MIN_COMPRESS_LOG_SIZE; > F2FS_OPTION(sbi).compress_ext_cnt = 0; > F2FS_OPTION(sbi).bggc_mode = BGGC_MODE_ON; This makes sense, but it's unclear to me why comparing the different compression algorithms is happening just now, after support for both LZO and LZ4 was already merged into mainline and now has to be supported forever. During review months ago, multiple people suggested that LZ4 is better than LZO, so there's not much reason to support LZO at all. - Eric