Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2530795pxb; Tue, 9 Mar 2021 05:05:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeUaQr+MFLY7/mccUmK4IS2JHF4sO2G7uluic4BnRQV+uz78wqxj1IoghpPC07cqh9iMqH X-Received: by 2002:a17:906:3e92:: with SMTP id a18mr19498480ejj.95.1615295123966; Tue, 09 Mar 2021 05:05:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615295123; cv=none; d=google.com; s=arc-20160816; b=kvRGNdizYiDBBx4XFlk9VyCDtQy6Gz9iuNaS6VNhJq975T2kwggIpefq2xf0B7PxFT RIWdM5TACt3kCNu5wD3tVa7zlGipiwKHUa253FL9668FRh1v1hmGtfvIuE+v0ycJQoxa oXXflrimC3LzFrLCuqL7HOt3RFeaci657yqeqdVwYJ/sgLO2ileD7z8urDF6Sekq4Ftd hAh90DYdMdyQsC1j20oJcd/4lswROXKJXTuAmQ/5iJ323IavRbhhlYsFlX3vc/Gjg64o sBEXh9RbbknoVI1SQswuucddoOAw6p0qK7a9px5qIW4K+6/P1RfkAVXyTnWZQni2BOsA PkRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Rm5lW1ENcl89omxJ8N+57DdgA2Z/G+rN4bPKq9l7yQQ=; b=q8zKK5msxa2evkI11DRL5SMghtgitbHMxqUZ2xKGNoFSKwHM6IpnBZ+LeZ6kMoU8wu O67Xi9KjWgmI68nt9XkZ4eGDB84cc48q7AQYDqnmt8i1NQDS80yDpKmmezxWnIqObkwJ 8Ax9Oh7ytF0dJwKiq2r/c4EDsvXLowOk10I3wFvyQMSdOOX0p83wkP3a/ZMKaHrpNwvc o5/9ZWBu48H4/1XTmFf1skmJyRnqHGNfxzBcwBmv+ZBI80zQdIXCMBWsaFURPrVp45O9 RCgf1nzddP/pkprcHUFaJd8FNisu0dL2Ie16TSc6Kp9aNv5lk/+s1/Rphf1glgBN+Gwb YytA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fll48E2o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si1590470eds.236.2021.03.09.05.04.57; Tue, 09 Mar 2021 05:05:23 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fll48E2o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230414AbhCINBX (ORCPT + 99 others); Tue, 9 Mar 2021 08:01:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbhCINAx (ORCPT ); Tue, 9 Mar 2021 08:00:53 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF169C06174A for ; Tue, 9 Mar 2021 05:00:53 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id u20so13748685iot.9 for ; Tue, 09 Mar 2021 05:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Rm5lW1ENcl89omxJ8N+57DdgA2Z/G+rN4bPKq9l7yQQ=; b=Fll48E2oUhz0FUSH6bLGlApSjh82B8QHzwmdjDkZA7x3jakx4fPOYyRJaHZ+6SXD7S YZFxXMp/nsJhSX1tenc3K1yBZGHJdo0yCjlv9p7lEYwd/IJqY9GZCw7Ea8X+nL0RukQJ i9tPV0NZuKFgU0HMNhbJL8UbwuCkPzor31bOd1ItSGwoFf+7zalpM+XW+IYFp55fdUyb WxyQAmyJAhi/MgpWbBr9DNlUE+YhT/TikJWIp5siEYjryL+q9P7WaPPuSWb1ktnePKgF MXA7c888gYT7IbbrSLcE7+TRaSohEZ7E/+gO9Wj0G5r51mk1+BHZ0WnrMsUKe88DLUyL HdIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Rm5lW1ENcl89omxJ8N+57DdgA2Z/G+rN4bPKq9l7yQQ=; b=mnpAcsWIE7cDyw/byRUmQ9qONQ3PiR8Rv95iBYhp/+A55OTRBv9oWRj56obQvr6Yht 1eGDLV5ZFDWX1NLylY7A2zlgFf9S5dPm5DtaEwTsVQ0T2yVet4YHT82c6E0jRWL1ByUq UQX1tfQ/NYjGyHYZVk8Fauhhg5QmEeD4xgg6P3U9QCNqMOZTnzwpXQSun2HZ5TfjcZX+ 6rfvzfAHKlceJsPhbyQbTie7NhCkowRtIgICcqwQ37iv6OW8NIsf8Ryriw+PDM/yvvIj EfoOENh82KwgKUTLsJQR5S30OUTkX5an0ekFnqspZFQCu+AXROA5eTLrwhIxocWk78fu RlHw== X-Gm-Message-State: AOAM530C3MAlz9oHKUBJulL5fGpGsbpsAPSsXr2I9urW0rOt63nYQFGR IogdbXH8SnxPDL3amEP5jvw3uj7MiOjrGXVHH3E= X-Received: by 2002:a05:6638:1a6:: with SMTP id b6mr28397712jaq.116.1615294853126; Tue, 09 Mar 2021 05:00:53 -0800 (PST) MIME-Version: 1.0 References: <20210305022402.2721974-1-daeho43@gmail.com> <2f2abc41-24d5-6795-44fe-b770ed8514df@huawei.com> In-Reply-To: <2f2abc41-24d5-6795-44fe-b770ed8514df@huawei.com> From: Daeho Jeong Date: Tue, 9 Mar 2021 22:00:40 +0900 Message-ID: Subject: Re: [f2fs-dev] [PATCH v2] f2fs: add sysfs nodes to get accumulated compression info To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021=EB=85=84 3=EC=9B=94 9=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 6:22, Ch= ao Yu =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On 2021/3/5 10:24, Daeho Jeong wrote: > > From: Daeho Jeong > > > > Added acc_compr_inodes to show accumulated compressed inode count and > > acc_compr_blocks to show accumulated secured block count with > > I noticed that these stat numbers are recorded in extra reserved area in > hot node curseg journal, the journal will be persisted only for umount > or fastboot checkpoint, so the numbers are not so accurate... does this > satisfy your requirement? > Yes, we are satisfied with just getting rough number of them. But, it would be better if you suggest more accurate way. :) > > compression in sysfs. These can be re-initialized to "0" by writing "0" > > value in one of both. > > Why do we allow reset the stat numbers? > Actually, I want to have a way to clear any stale number of them, but I agree we don't need this. > Why not covering all code with macro CONFIG_F2FS_FS_COMPRESSION, since th= ese > numbers are only be updated when we enable compression. > I wanted to keep the info even in the kernel with doesn't support per-file compression if those had been written once. What do you think? > Thanks,