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=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 23BD8C11F64 for ; Thu, 1 Jul 2021 17:06:35 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D9F8C613FD for ; Thu, 1 Jul 2021 17:06:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9F8C613FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1lz094-0005hR-9C; Thu, 01 Jul 2021 17:06:34 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz092-0005hI-LT for linux-f2fs-devel@lists.sourceforge.net; Thu, 01 Jul 2021 17:06:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=M+MUTkbl33l/zYfzROvNXm7uTr09NqF1/lzODpUK0Y4=; b=R4sFYFsrfsAobBImNDo8SDR/lD 2ExOMG4Mvu/Kzlps2givkHI02VIWL/LbA6Rg4+HCOZAtpSby2w75hJc0ud+Ab2cLkTiwZIihUhvsO ZE1cqiES4mlduHVyVW7BQ4C1tvOq1OzRAkwidUGWxiUXTvQrrFiXwAEOaCbQZDJ/ivws=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=M+MUTkbl33l/zYfzROvNXm7uTr09NqF1/lzODpUK0Y4=; b=lVLSFIfu0+66GqIPOKHnVcl5oT jz2jXunGhV6/1e6U1RtAx5Ttl+BLqu1mKd4t0IxyikfjYBqTH8bpEhg/jF4uc3k+b0wP2JxRLrNeF yBoaiwD2Q06s7Xie1eRQ8ZpArgOzHbULmfjV4rEXUO+pGhxSbbsG80ggAa0Chi2hbUK0=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1lz08t-006GrP-EC for linux-f2fs-devel@lists.sourceforge.net; Thu, 01 Jul 2021 17:06:32 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBDDB613FD; Thu, 1 Jul 2021 17:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625159178; bh=No+q1ZMjubrUNTwpKPGyFFU9B7edck5JoD9FOdbEDxY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L5nFyjaMH3AQ6KPcVa5y/76EFvNwQYOPQ/zKhVzTpwwm7+NAIYTNfi75cJm9xhtyp 9F81xvcbRyBAY8P47PXz3rBAb60tXYuSlRUoUSw8E+3bnxuFdy6Pfr0JVALWyDsjvk f+t72Dxugtd3TTqSHsU2daGpDwuZh8iphGFka+rblcJL6YIllUU8V/z4vnwKVkTVAs 9qCDGWrUrBBoBEFlZXIFoPfulYXkibTwvNJVXRUAUWp7zfYJsWcu2OWQE6XqPUmtkl xufyhcBHFMsmZzXDe5CUpIsoiqE5/3nZfxTDBRt36zh9tCdWz+E4utJQWMD/y+A7/K IJGsSjacTjQ+A== Date: Thu, 1 Jul 2021 10:06:16 -0700 From: Jaegeuk Kim To: changfengnan@vivo.com Message-ID: References: <003001d75913$aff3cc40$0fdb64c0$@vivo.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <003001d75913$aff3cc40$0fdb64c0$@vivo.com> X-Headers-End: 1lz08t-006GrP-EC Subject: Re: [f2fs-dev] f2fs compress performance problem X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 06/04, changfengnan@vivo.com wrote: > Hi: > > I've been working on f2fs compression for a while, I'm confused on f2fs > compression performance, after a while reserch, > I found some problem, maybe need some discuss. > I use AndroBench test performance on mobile, after enable compression, the > benchmark scores have dropped a lot. > Specifically: > 1. 32M sequential read has dropped to 50% of original. Test case open file > with O_RDONLY|O_DIRECT, and set POSIX_FADV_RANDOM, the major resaon > is disable readahed. For now,I didn't found any patch can improve this. > 2. 4K random read has dropped to 40% of original, after merge `f2fs: > compress: add compress_inode to cache compressed blocks`, > significant improvement in random read performance, up to 90% of original, > maybe more. > 3. 32M sequential overwrite has dropped to 10% of original, after merge > `f2fs: compress: remove unneeded read when rewrite whole cluster` > up to 30% of original. > 4. 4K random read has dropped to 1% of original, yes only 1% of original, I > found open file with O_WRONLY|O_DSYNC|O_DIRECT is an important reason, > every time sync a compress inode need do checkpoint, after I remove > checkpoint on compress inode, up to 10% of original. And I think major > reason of this > is we need read whole cluster and rewrite it ,but I did't think of any > method to improve this. > > I want to know is there any idea can help to improve this. > And I want to know do we have goal for the performance of compression, is it > possible to achieve the original performance? Could you please check compress_cache and extent_cache that can improve read performance? Both were done quite recently. > > Thanks. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel