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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,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 6E2FDC4338F for ; Mon, 16 Aug 2021 06:13:56 +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 385FF61A2C for ; Mon, 16 Aug 2021 06:13:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 385FF61A2C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vivo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.92.3) (envelope-from ) id 1mFVsg-0006dt-LH; Mon, 16 Aug 2021 06:13:54 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1mFVsf-0006dh-B2 for linux-f2fs-devel@lists.sourceforge.net; Mon, 16 Aug 2021 06:13:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Date:From:MIME-Version:In-Reply-To:Subject:Cc:To: Message-ID:Content-Transfer-Encoding:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GvE/ZWYLqmX5duhM3MyAb9731fPkevOkEdUnbKNPw7Y=; b=dCajP/GeNtmceKgAfsmUJ6otJp wuxe5Z/Ub1qTG9QBQuNZgj0N/23oA1A2J/W4g5RILwZIy6G13BJ+vh3lyQpruxoOULghQLlmPYy+Q syqZj3ho0ZOTe8so/Unb8RPdWxbCleAgy4KcPmECdz+ZuaIS/SWoI45EsS/3C9shZGQw=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Date:From:MIME-Version:In-Reply-To:Subject:Cc:To:Message-ID: Content-Transfer-Encoding:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GvE/ZWYLqmX5duhM3MyAb9731fPkevOkEdUnbKNPw7Y=; b=UAlE7F82gijia9uC1j9j9Kg2Y2 ofRTmPbKTh4nRrO0z4y5NrvWm2FSH6OeEr1OwpTFR0MfUrbIGQGfS8lYxxjlVZlz5FDDMDEqCyu4A wZHhuXzj7E5NDg4DolKfm7IGNScSOBqDMeGKKr80vQ019Kpc9pDvp5F8jfR4r06Z3kfw=; Received: from mail-m176236.qiye.163.com ([59.111.176.236]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1mFVsa-007yGQ-L2 for linux-f2fs-devel@lists.sourceforge.net; Mon, 16 Aug 2021 06:13:53 +0000 Received: from vivo.com (localhost [127.0.0.1]) by mail-m176236.qiye.163.com (Hmail) with ESMTP id 887D87800FC; Mon, 16 Aug 2021 14:13:40 +0800 (CST) Message-ID: To: Chao Yu X-Priority: 3 X-Mailer: HMail Webmail Server V2.0 Copyright (c) 2016-163.com X-Originating-IP: 58.251.74.231 In-Reply-To: MIME-Version: 1.0 Received: from frank.li@vivo.com( [58.251.74.231) ] by ajax-webmail ( [127.0.0.1] ) ; Mon, 16 Aug 2021 14:13:40 +0800 (GMT+08:00) From: =?UTF-8?B?5p2O5oms6Z+s?= Date: Mon, 16 Aug 2021 14:13:40 +0800 (GMT+08:00) X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZCBgUCR5ZQVlLVUtZV1 kWDxoPAgseWUFZKDYvK1lXWShZQUhPN1dZLVlBSVdZDwkaFQgSH1lBWUNPSB1WSR4dHx5JSUlLHx lPVRMBExYaEhckFA4PWVdZFhoPEhUdFFlBWU9LSFVKSktISkxVS1kG X-HM-Sender-Digest: e1kJHlYWEh9ZQU1NS0lITk5OTEJNN1dZDB4ZWUEPCQ4eV1kSHx4VD1lB WUc6PAw6LCo5LT9INR0IIj84HzkyLBlPCitVSFVKTUlCS0JPT0lLQklLVTMWGhIXVR0JGhUQVRcS Ow0SDRRVGBQWRVlXWRILWUFZTkNVSU5KVUxPVUlISllXWQgBWUFISE5INwY+ X-HM-Tid: 0a7b4d982051d9aekuws887d87800fc X-Headers-End: 1mFVsa-007yGQ-L2 Subject: Re: [f2fs-dev] =?utf-8?q?=5BPATCH_1/2=5D_f2fs=3A_add_sysfs_nodes_to_?= =?utf-8?q?get_discard_information?= 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: jaegeuk@kernel.org, linux-kernel@vger.kernel.org, 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 >>>> I've added new sysfs nodes to show discard stat since mount, which >>>> will help us analyze whether the performance problem is related to >>>> discard. >>>> >>>> issued_discard - Shows the number of issued discard >>>> queued_discard - Shows the number of cached discard cmd count >>>> discard_cmd_cnt - Shows the number of cached discard cmd count >>>> undiscard_blks - Shows the number of undiscard blocks >>> >>> We have exported them in debugfs, can you use that? >>> >>> Thanks, >> >> But now Android is forbidden to open debugfs, and in fact we have not >> opened this configuration for a long time. > >Weren't them be used for debug purpose? can you please explain more about >your use case? During long-term aging test or normal use, sometimes there will be performance degradation problems. It may be caused by storage, or it may be caused by the filesystem. For example, the filesystem accumulates a large number of undiscard blocks. Although there is some remaining space, the androidbench test will show performance degradation. Therefore, it is necessary to export information related to discard so that we can confirm this situation. Thx, _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel