Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp412330ybm; Wed, 22 May 2019 05:28:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhKV5tecOj3l8vVBWAjnzufdHyei9DdQE0zqwyZtTaRM3BvtyVLJfI6I1vd2O5gJwpn6wD X-Received: by 2002:a62:55:: with SMTP id 82mr12483225pfa.86.1558528113355; Wed, 22 May 2019 05:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558528113; cv=none; d=google.com; s=arc-20160816; b=YtB8hP/dGWxeSTXrM2ajf/+bbgFmvE6Vumn64pkpT/jdvEIAJE7ajGGBdo+7FU1HeU FKu2pclhE2SW5lnUDFQV1PotejDyb9jC+ErZD/WtSSCxXyYa9fSGkT8BnAaGwhlEusNC C9NwcpSQGOc9Le6PDjV6vAxkA9o9Uq4EgIwqUCCIeGrE6S49Qn6ulbWef/GdxpKkfDvP JAqjfmNkffNSc3+3wl1mLwkxUVDWn51jrH5FUCBl64/bn2RhH/8tOkMg+UkiJ17A/Z+K ah085Pnzz00+495C1AjI8sYqx/6J0dn6tuvBO2LK7t6QTI9pmgFdYn2Pi9pe6vXVh4c5 Urew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=VhAGo7zaI7Y5mKGoGR0lHiss0rJdLX9wuCSSuoL7HVU=; b=rCrGnK8wJnCf7Uv/x0VNVfgyPhY76szUduFzAa7wovZFPhM8KLNn2LeeVHW3gphRLf g9vs1FRh8B8nfSjwHv2f/bJ8EFz9rwlRfuU4Rkyh7kX2DVbZ8oNwjw/xWtebE4LTwSmo SR2DG/cgqzLvgPXLmdh2mEJ0/tlWbZjPYFMjjYWWGtqAUWN+XKbgHpQMpE1Qi5PpHWbS 9S0aqXwpXQOFdYVbV4Qpa7gEkGvEDeShGVn20v2esWCfmXJu6b+jhUqxIQQTOeMSjUHa KqzU1sf5oBHzjiCoFZnVq3Yg5U1jzUSsEztsZ+LrJzJtLWcplh0BZJZsTU/aqBYBb6Xo gPXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K2cPoiay; 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 i11si27184678plb.416.2019.05.22.05.28.16; Wed, 22 May 2019 05:28:33 -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=K2cPoiay; 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 S1729081AbfEVM1H (ORCPT + 99 others); Wed, 22 May 2019 08:27:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:60704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728468AbfEVM1H (ORCPT ); Wed, 22 May 2019 08:27:07 -0400 Received: from [192.168.0.101] (unknown [49.77.233.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4226A2173C; Wed, 22 May 2019 12:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558528025; bh=GTBrSExOtrzpTHyDSkxH6gp3chrPpUfC5ch2qpQ1nDo=; h=Subject:To:References:From:Date:In-Reply-To:From; b=K2cPoiaybKhZ6QFmbYgZ1S8ZWPsBdLsd6hbIHxrEM4t+OE5H7IVJZmLgsy/T9pPaP 0mr52HM4bpyeRj88BwnNFWplypguAILM9SR+RaSy/E58NgbQ8xzsgn51xliYwu67BR rqD4t6BwYi0CCeWIjOUeJFnE6lbJ5DLsonUYjM14= Subject: Re: [f2fs-dev] [PATCH] f2fs: add missing sysfs entries in documentation To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20190521180606.10461-1-jaegeuk@kernel.org> From: Chao Yu Message-ID: Date: Wed, 22 May 2019 20:26:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190521180606.10461-1-jaegeuk@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-5-22 2:06, Jaegeuk Kim wrote: > This patch cleans up documentation to cover missing sysfs entries. > > Signed-off-by: Jaegeuk Kim > --- > Documentation/filesystems/f2fs.txt | 88 +++++++++++++++++++++++++++--- > 1 file changed, 79 insertions(+), 9 deletions(-) > > diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt > index f7b5e4ff0de3..0a0820d10d61 100644 > --- a/Documentation/filesystems/f2fs.txt > +++ b/Documentation/filesystems/f2fs.txt > @@ -246,11 +246,14 @@ Files in /sys/fs/f2fs/ > .............................................................................. > File Content > > - gc_max_sleep_time This tuning parameter controls the maximum sleep > + gc_urgent_sleep_time This parameter controls sleep time for gc_urgent. > + 500 ms is set by default. See above gc_urgent. > + > + gc_min_sleep_time This tuning parameter controls the minimum sleep > time for the garbage collection thread. Time is > in milliseconds. > > - gc_min_sleep_time This tuning parameter controls the minimum sleep > + gc_max_sleep_time This tuning parameter controls the maximum sleep > time for the garbage collection thread. Time is > in milliseconds. > > @@ -270,9 +273,6 @@ Files in /sys/fs/f2fs/ > to 1, background thread starts to do GC by given > gc_urgent_sleep_time interval. > > - gc_urgent_sleep_time This parameter controls sleep time for gc_urgent. > - 500 ms is set by default. See above gc_urgent. > - > reclaim_segments This parameter controls the number of prefree > segments to be reclaimed. If the number of prefree > segments is larger than the number of segments > @@ -287,7 +287,15 @@ Files in /sys/fs/f2fs/ > checkpoint is triggered, and issued during the > checkpoint. By default, it is disabled with 0. > > - trim_sections This parameter controls the number of sections > + discard_granularity This parameter controls the granularity of discard > + command size. It will issue discard commands iif > + the size is larger than given granularity. > + By default, 16KB. By default: 16KB, Unit: 4KB, Maxsize: 512 > + > + reserved_blocks This parameter indicates the number of blocks that > + f2fs reserves internally for root. > + > + batched_trim_sections This parameter controls the number of sections > to be trimmed out in batch mode when FITRIM > conducts. 32 sections is set by default. > > @@ -309,11 +317,35 @@ Files in /sys/fs/f2fs/ > the number is less than this value, it triggers > in-place-updates. > > + min_seq_blocks This parameter controls the threshold to serialize > + write IOs issued by multiple threads in parallel. > + > + min_hot_blocks This parameter controls the threshold to allocate > + a hot data log for pending data blocks to write. > + > + min_ssr_section This parameter adds the threshold when deciding min_ssr_sections > + SSR block allocation. If this is large, SSR mode > + will be enabled early. > + > + ram_thresh This parameter controls the memory footprint used > + by free nids and cached nat entries. By default, > + 10 is set, which indicates 10 MB / 1 GB RAM. > + > + ra_nid_pges When building free nids, F2FS reads NAT blocks ra_nid_pages > + ahead for speed up. Default is 0. > + > + dirty_nats_ratio Given dirty ratio of cached nat entries, F2FS > + determines flushing them in background. > + > max_victim_search This parameter controls the number of trials to > find a victim segment when conducting SSR and > cleaning operations. The default value is 4096 > which covers 8GB block address range. > > + migration_granularity For large-sized sections, F2FS can stop GC given > + this granularity instead of reclaiming entire > + section. > + > dir_level This parameter controls the directory level to > support large directory. If a directory has a > number of files, it can reduce the file lookup > @@ -321,9 +353,47 @@ Files in /sys/fs/f2fs/ > Otherwise, it needs to decrease this value to > reduce the space overhead. The default value is 0. > > - ram_thresh This parameter controls the memory footprint used > - by free nids and cached nat entries. By default, > - 10 is set, which indicates 10 MB / 1 GB RAM. > + cp_interval F2FS tries to do checkpoint periodically, 60 secs > + by default. > + > + idle_interval F2FS detects system is idle, if there's no F2FS > + operations during given interval, 5 secs by > + default. > + > + discard_idle_interval F2FS detects the discard thread is idle, given > + time interval. Default is 5 secs. > + > + gc_idle_interval F2FS detects the GC thread is idle, given time > + interval. Default is 5 secs. > + > + umount_discard_timeout When unmounting the disk, F2FS waits for finishing > + queued discard commands which can take huge time. > + This gives time out for it, 5 secs by default. > + > + iostat_enable This controls to enable/disable iostat in F2FS. > + > + readdir_ra This enables/disabled readahead in readdir, and readahead of sub-inodes in readdir? > + default is enabled. > + > + gc_pin_file_thresh This indicates how many GC can be failed for the > + pinned file. If it exceeds this, F2FS doesn't > + guarantee its pinning state. 2048 trials is set > + by default. > + > + extension_list This enables to change extension_list for hot/cold > + files in runtime. > + > + inject_rate This controls injection rate of arbitrary faults. > + > + inject_type This controls injection type of arbitrary faults. > + > + dirty_segments This shows # of dirty segments. > + > + lifetime_write_kbytes This shows # of data written to the disk. > + > + features This shows current features enabled on F2FS. > + > + current_reserved_blocks This shows # of blocks currently reserved. Will be better to stay with "reserved_blocks". Thanks, > > ================================================================================ > USAGE >