Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp205863pxu; Fri, 4 Dec 2020 00:54:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVm4n4U1e3kB2RACWQ4JwC4olt6f6Tj7CoU+srC3bKHFF/tNKN+ZKZCstYT3l5dNao4lIG X-Received: by 2002:a17:906:7d91:: with SMTP id v17mr6253078ejo.522.1607072094118; Fri, 04 Dec 2020 00:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607072094; cv=none; d=google.com; s=arc-20160816; b=tkvJ/qhDFjGLwgZbsZDn68pS7mjUeLRCpmNNx9QpHsWIa62Rwhq3cfnhFs1/Qs5Tj3 2qoU5JcEiER2/yReiAdw/aZgJmAsmUKvCCuEW7cpmsHnoSTXTsw7qva/yfznRh4wU1Ze VJap+b3y29DzfKbCmoCEoaCxSP4P6MNe44f2kVP1JK5pSIeKONEaeGE5epXA4Pig/0cv in4qJWHG5suIJYUUWLCoWpmL+v41Iat6QcmEzyFAUIHW4ahL0JqnJ2OYeN540sGRh3hp nVTW+tBqIiYBK+uH5jklotuk8WGIspjxpRacDKYK0juAoDUoCvcm8vh1KS2sXT1O1nDN OQaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Gw/GYRudOjL0Jb2C1XDlTzlpDiOuoYvthlqI6bgUKQ0=; b=TaeBJrwbq2Z/zqq8EDin8orvwy1VEcP87iLDMDZBg8MES/KF9rPJLkhSAJIF9ucOcC rIDZ6GxluJ97KwawX+W9dNApIfGPks/L7KGPJZdM0LR5LFv3yDSE/TW+Xi3cpDUNmKtc 3yJlUC6zFaDw9lUbd5xt4psTvyJJJl+GYjH3Qxv0TtGha13HC+O7oESrCsx8aWQcvLI8 if0UZu69ggphnpgMwiI6/2kIm86S3+FI/Lvu9zt2lPcS53rSnUICR3yev0+W5FwNSJKp 4cFVMRddMyyRYPsA3jKQYkTY1s2u2IzhVtykQZeT+rT+/u4a7uMh9q5jkuWIlrdfTINK O1zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si924844ejb.158.2020.12.04.00.54.31; Fri, 04 Dec 2020 00:54:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729110AbgLDIvC (ORCPT + 99 others); Fri, 4 Dec 2020 03:51:02 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9104 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgLDIvC (ORCPT ); Fri, 4 Dec 2020 03:51:02 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CnRGb5mhzzLyfH; Fri, 4 Dec 2020 16:49:43 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.211) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 4 Dec 2020 16:50:14 +0800 Subject: Re: [f2fs-dev] [PATCH v6] f2fs: compress: support compress level To: Gao Xiang CC: Eric Biggers , , , References: <20201203061715.60447-1-yuchao0@huawei.com> <20201204003119.GA1957051@xiangao.remote.csb> <20201204074323.GA2025226@xiangao.remote.csb> From: Chao Yu Message-ID: Date: Fri, 4 Dec 2020 16:50:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201204074323.GA2025226@xiangao.remote.csb> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xiang, On 2020/12/4 15:43, Gao Xiang wrote: > Hi Chao, > > On Fri, Dec 04, 2020 at 03:09:20PM +0800, Chao Yu wrote: >> On 2020/12/4 8:31, Gao Xiang wrote: >>> could make more sense), could you leave some CR numbers about these >>> algorithms on typical datasets (enwik9, silisia.tar or else.) with 16k >>> cluster size? >> >> Just from a quick test with enwik9 on vm: >> >> Original blocks: 244382 >> >> lz4 lz4hc-9 >> compressed blocks 170647 163270 >> compress ratio 69.8% 66.8% >> speed 16.4207 s, 60.9 MB/s 26.7299 s, 37.4 MB/s >> >> compress ratio = after / before > > Thanks for the confirmation. it'd be better to add this to commit message > if needed when adding a new algorithm to show the benefits. Sure, will add this. > > About the speed, I think which is also limited to storage device and other > conditions (I mean the CPU loading during the writeback might be different > between lz4 and lz4hc-9 due to many other bounds, e.g. UFS 3.0 seq > write is somewhat higher vs VM. lz4 may have higher bandwidth on high Yeah, I guess my VM have been limited on its storage bandwidth, and its back-end could be low-end rotating disk... > level devices since it seems some IO bound here... I guess but not sure, > since pure in-memory lz4 is fast according to lzbench / lz4 homepage.) > > Anyway, it's up to f2fs folks if it's useful :) (the CR number is what > I expect though... I'm a bit of afraid the CPU runtime loading.) I just have a glance at CPU usage numbers (my VM has 16 cores): lz4hc takes 11% in first half and downgrade to 6% at second half. lz4 takes 6% in whole process. But that's not accruate... Thanks, > Thanks for your time! > > Thanks, > Gao Xiang > >> >> Thanks, >> > > . >