xref: /linux/Documentation/ABI/testing/sysfs-fs-f2fs (revision 3465557556b45a933cf3566d4040fd66aa2fc87b)
1b59d0baeSNamjae JeonWhat:		/sys/fs/f2fs/<disk>/gc_max_sleep_time
2b59d0baeSNamjae JeonDate:		July 2013
3b59d0baeSNamjae JeonContact:	"Namjae Jeon" <namjae.jeon@samsung.com>
4b59d0baeSNamjae JeonDescription:
5b59d0baeSNamjae Jeon		 Controls the maximun sleep time for gc_thread. Time
6b59d0baeSNamjae Jeon		 is in milliseconds.
7b59d0baeSNamjae Jeon
8b59d0baeSNamjae JeonWhat:		/sys/fs/f2fs/<disk>/gc_min_sleep_time
9b59d0baeSNamjae JeonDate:		July 2013
10b59d0baeSNamjae JeonContact:	"Namjae Jeon" <namjae.jeon@samsung.com>
11b59d0baeSNamjae JeonDescription:
12b59d0baeSNamjae Jeon		 Controls the minimum sleep time for gc_thread. Time
13b59d0baeSNamjae Jeon		 is in milliseconds.
14b59d0baeSNamjae Jeon
15b59d0baeSNamjae JeonWhat:		/sys/fs/f2fs/<disk>/gc_no_gc_sleep_time
16b59d0baeSNamjae JeonDate:		July 2013
17b59d0baeSNamjae JeonContact:	"Namjae Jeon" <namjae.jeon@samsung.com>
18b59d0baeSNamjae JeonDescription:
19b59d0baeSNamjae Jeon		 Controls the default sleep time for gc_thread. Time
20b59d0baeSNamjae Jeon		 is in milliseconds.
21d2dc095fSNamjae Jeon
22d2dc095fSNamjae JeonWhat:		/sys/fs/f2fs/<disk>/gc_idle
23d2dc095fSNamjae JeonDate:		July 2013
24d2dc095fSNamjae JeonContact:	"Namjae Jeon" <namjae.jeon@samsung.com>
25d2dc095fSNamjae JeonDescription:
26d2dc095fSNamjae Jeon		 Controls the victim selection policy for garbage collection.
273bac380cSJaegeuk Kim
283bac380cSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/reclaim_segments
293bac380cSJaegeuk KimDate:		October 2013
303bac380cSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
313bac380cSJaegeuk KimDescription:
323bac380cSJaegeuk Kim		 Controls the issue rate of segment discard commands.
333bac380cSJaegeuk Kim
343bac380cSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/ipu_policy
353bac380cSJaegeuk KimDate:		November 2013
363bac380cSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
373bac380cSJaegeuk KimDescription:
383bac380cSJaegeuk Kim		 Controls the in-place-update policy.
393bac380cSJaegeuk Kim
403bac380cSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/min_ipu_util
413bac380cSJaegeuk KimDate:		November 2013
423bac380cSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
433bac380cSJaegeuk KimDescription:
443bac380cSJaegeuk Kim		 Controls the FS utilization condition for the in-place-update
453bac380cSJaegeuk Kim		 policies.
463bac380cSJaegeuk Kim
47c1ce1b02SJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/min_fsync_blocks
48c1ce1b02SJaegeuk KimDate:		September 2014
49c1ce1b02SJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
50c1ce1b02SJaegeuk KimDescription:
51c1ce1b02SJaegeuk Kim		 Controls the dirty page count condition for the in-place-update
52c1ce1b02SJaegeuk Kim		 policies.
53c1ce1b02SJaegeuk Kim
54853137ceSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/min_seq_blocks
55853137ceSJaegeuk KimDate:		August 2018
56853137ceSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
57853137ceSJaegeuk KimDescription:
58853137ceSJaegeuk Kim		 Controls the dirty page count condition for batched sequential
59853137ceSJaegeuk Kim		 writes in ->writepages.
60853137ceSJaegeuk Kim
61853137ceSJaegeuk Kim
62b32d73abSChao YuWhat:		/sys/fs/f2fs/<disk>/min_hot_blocks
63b32d73abSChao YuDate:		March 2017
64b32d73abSChao YuContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
65b32d73abSChao YuDescription:
66b32d73abSChao Yu		 Controls the dirty page count condition for redefining hot data.
67b32d73abSChao Yu
68a2a12b67SChao YuWhat:		/sys/fs/f2fs/<disk>/min_ssr_sections
69a2a12b67SChao YuDate:		October 2017
70a2a12b67SChao YuContact:	"Chao Yu" <yuchao0@huawei.com>
71a2a12b67SChao YuDescription:
72a2a12b67SChao Yu		 Controls the fee section threshold to trigger SSR allocation.
73a2a12b67SChao Yu
743bac380cSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/max_small_discards
753bac380cSJaegeuk KimDate:		November 2013
763bac380cSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
773bac380cSJaegeuk KimDescription:
783bac380cSJaegeuk Kim		 Controls the issue rate of small discard commands.
793bac380cSJaegeuk Kim
80969d1b18SChao YuWhat:          /sys/fs/f2fs/<disk>/discard_granularity
81969d1b18SChao YuDate:          July 2017
82969d1b18SChao YuContact:       "Chao Yu" <yuchao0@huawei.com>
83969d1b18SChao YuDescription:
84969d1b18SChao Yu		Controls discard granularity of inner discard thread, inner thread
85969d1b18SChao Yu		will not issue discards with size that is smaller than granularity.
86969d1b18SChao Yu		The unit size is one block, now only support configuring in range
87969d1b18SChao Yu		of [1, 512].
88969d1b18SChao Yu
893bac380cSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/max_victim_search
903bac380cSJaegeuk KimDate:		January 2014
913bac380cSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
923bac380cSJaegeuk KimDescription:
933bac380cSJaegeuk Kim		 Controls the number of trials to find a victim segment.
94cdfc41c1SJaegeuk Kim
95*34655575SChao YuWhat:		/sys/fs/f2fs/<disk>/migration_granularity
96*34655575SChao YuDate:		October 2018
97*34655575SChao YuContact:	"Chao Yu" <yuchao0@huawei.com>
98*34655575SChao YuDescription:
99*34655575SChao Yu		 Controls migration granularity of garbage collection on large
100*34655575SChao Yu		 section, it can let GC move partial segment{s} of one section
101*34655575SChao Yu		 in one GC cycle, so that dispersing heavy overhead GC to
102*34655575SChao Yu		 multiple lightweight one.
103*34655575SChao Yu
10491796825SJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/dir_level
10591796825SJaegeuk KimDate:		March 2014
10691796825SJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
10791796825SJaegeuk KimDescription:
10891796825SJaegeuk Kim		 Controls the directory level for large directory.
10991796825SJaegeuk Kim
110cdfc41c1SJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/ram_thresh
111cdfc41c1SJaegeuk KimDate:		March 2014
112cdfc41c1SJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk.kim@samsung.com>
113cdfc41c1SJaegeuk KimDescription:
114cdfc41c1SJaegeuk Kim		 Controls the memory footprint used by f2fs.
115bba681cbSJaegeuk Kim
1166f6d9fe2SChao YuWhat:		/sys/fs/f2fs/<disk>/batched_trim_sections
117bba681cbSJaegeuk KimDate:		February 2015
118bba681cbSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
119bba681cbSJaegeuk KimDescription:
120bba681cbSJaegeuk Kim		 Controls the trimming rate in batch mode.
121377224c4SChao Yu		 <deprecated>
12260b99b48SJaegeuk Kim
12360b99b48SJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/cp_interval
12460b99b48SJaegeuk KimDate:		October 2015
12560b99b48SJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
12660b99b48SJaegeuk KimDescription:
12760b99b48SJaegeuk Kim		 Controls the checkpoint timing.
128ea1a29a0SChao Yu
129d0239e1bSJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/idle_interval
130d0239e1bSJaegeuk KimDate:		January 2016
131d0239e1bSJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
132d0239e1bSJaegeuk KimDescription:
133a7d10cf3SSahitya Tummala		 Controls the idle timing for all paths other than
134a7d10cf3SSahitya Tummala		 discard and gc path.
135a7d10cf3SSahitya Tummala
136a7d10cf3SSahitya TummalaWhat:		/sys/fs/f2fs/<disk>/discard_idle_interval
137a7d10cf3SSahitya TummalaDate:		September 2018
138a7d10cf3SSahitya TummalaContact:	"Chao Yu" <yuchao0@huawei.com>
139a7d10cf3SSahitya TummalaContact:	"Sahitya Tummala" <stummala@codeaurora.org>
140a7d10cf3SSahitya TummalaDescription:
141a7d10cf3SSahitya Tummala		 Controls the idle timing for discard path.
142a7d10cf3SSahitya Tummala
143a7d10cf3SSahitya TummalaWhat:		/sys/fs/f2fs/<disk>/gc_idle_interval
144a7d10cf3SSahitya TummalaDate:		September 2018
145a7d10cf3SSahitya TummalaContact:	"Chao Yu" <yuchao0@huawei.com>
146a7d10cf3SSahitya TummalaContact:	"Sahitya Tummala" <stummala@codeaurora.org>
147a7d10cf3SSahitya TummalaDescription:
148a7d10cf3SSahitya Tummala		 Controls the idle timing for gc path.
149d0239e1bSJaegeuk Kim
150b32d73abSChao YuWhat:		/sys/fs/f2fs/<disk>/iostat_enable
151b32d73abSChao YuDate:		August 2017
152b32d73abSChao YuContact:	"Chao Yu" <yuchao0@huawei.com>
153b32d73abSChao YuDescription:
154b32d73abSChao Yu		 Controls to enable/disable IO stat.
155b32d73abSChao Yu
156ea1a29a0SChao YuWhat:		/sys/fs/f2fs/<disk>/ra_nid_pages
157ea1a29a0SChao YuDate:		October 2015
158ea1a29a0SChao YuContact:	"Chao Yu" <chao2.yu@samsung.com>
159ea1a29a0SChao YuDescription:
160ea1a29a0SChao Yu		 Controls the count of nid pages to be readaheaded.
1612304cb0cSChao Yu
1622304cb0cSChao YuWhat:		/sys/fs/f2fs/<disk>/dirty_nats_ratio
1632304cb0cSChao YuDate:		January 2016
1642304cb0cSChao YuContact:	"Chao Yu" <chao2.yu@samsung.com>
1652304cb0cSChao YuDescription:
1662304cb0cSChao Yu		 Controls dirty nat entries ratio threshold, if current
1672304cb0cSChao Yu		 ratio exceeds configured threshold, checkpoint will
1682304cb0cSChao Yu		 be triggered for flushing dirty nat entries.
1698f1dbbbbSShuoran Liu
1708f1dbbbbSShuoran LiuWhat:		/sys/fs/f2fs/<disk>/lifetime_write_kbytes
1718f1dbbbbSShuoran LiuDate:		January 2016
1728f1dbbbbSShuoran LiuContact:	"Shuoran Liu" <liushuoran@huawei.com>
1738f1dbbbbSShuoran LiuDescription:
1748f1dbbbbSShuoran Liu		 Shows total written kbytes issued to disk.
17556412894SChao Yu
1769ac19faaSEric BiggersWhat:		/sys/fs/f2fs/<disk>/features
177b32d73abSChao YuDate:		July 2017
178b32d73abSChao YuContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
179b32d73abSChao YuDescription:
180b32d73abSChao Yu		 Shows all enabled features in current device.
181b32d73abSChao Yu
18256412894SChao YuWhat:		/sys/fs/f2fs/<disk>/inject_rate
18356412894SChao YuDate:		May 2016
18456412894SChao YuContact:	"Sheng Yong" <shengyong1@huawei.com>
18556412894SChao YuDescription:
18656412894SChao Yu		 Controls the injection rate.
18756412894SChao Yu
18856412894SChao YuWhat:		/sys/fs/f2fs/<disk>/inject_type
18956412894SChao YuDate:		May 2016
19056412894SChao YuContact:	"Sheng Yong" <shengyong1@huawei.com>
19156412894SChao YuDescription:
19256412894SChao Yu		 Controls the injection type.
193daeb433eSChao Yu
194daeb433eSChao YuWhat:		/sys/fs/f2fs/<disk>/reserved_blocks
195daeb433eSChao YuDate:		June 2017
196daeb433eSChao YuContact:	"Chao Yu" <yuchao0@huawei.com>
197daeb433eSChao YuDescription:
19880d42145SYunlong Song		 Controls target reserved blocks in system, the threshold
19980d42145SYunlong Song		 is soft, it could exceed current available user space.
20080d42145SYunlong Song
20180d42145SYunlong SongWhat:		/sys/fs/f2fs/<disk>/current_reserved_blocks
20280d42145SYunlong SongDate:		October 2017
20380d42145SYunlong SongContact:	"Yunlong Song" <yunlong.song@huawei.com>
20480d42145SYunlong SongContact:	"Chao Yu" <yuchao0@huawei.com>
20580d42145SYunlong SongDescription:
20680d42145SYunlong Song		 Shows current reserved blocks in system, it may be temporarily
20780d42145SYunlong Song		 smaller than target_reserved_blocks, but will gradually
20880d42145SYunlong Song		 increase to target_reserved_blocks when more free blocks are
20980d42145SYunlong Song		 freed by user later.
210d9872a69SJaegeuk Kim
211d9872a69SJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/gc_urgent
212d9872a69SJaegeuk KimDate:		August 2017
213d9872a69SJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
214d9872a69SJaegeuk KimDescription:
215d9872a69SJaegeuk Kim		 Do background GC agressively
216d9872a69SJaegeuk Kim
217d9872a69SJaegeuk KimWhat:		/sys/fs/f2fs/<disk>/gc_urgent_sleep_time
218d9872a69SJaegeuk KimDate:		August 2017
219d9872a69SJaegeuk KimContact:	"Jaegeuk Kim" <jaegeuk@kernel.org>
220d9872a69SJaegeuk KimDescription:
221d9872a69SJaegeuk Kim		 Controls sleep time of GC urgent mode
222f6df8f23SSheng Yong
223f6df8f23SSheng YongWhat:		/sys/fs/f2fs/<disk>/readdir_ra
224f6df8f23SSheng YongDate:		November 2017
225f6df8f23SSheng YongContact:	"Sheng Yong" <shengyong1@huawei.com>
226f6df8f23SSheng YongDescription:
227f6df8f23SSheng Yong		 Controls readahead inode block in readdir.
228846ae671SChao Yu
229846ae671SChao YuWhat:		/sys/fs/f2fs/<disk>/extension_list
230846ae671SChao YuDate:		Feburary 2018
231846ae671SChao YuContact:	"Chao Yu" <yuchao0@huawei.com>
232846ae671SChao YuDescription:
233846ae671SChao Yu		 Used to control configure extension list:
234846ae671SChao Yu		 - Query: cat /sys/fs/f2fs/<disk>/extension_list
235b6a06cbbSChao Yu		 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
236b6a06cbbSChao Yu		 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
237b6a06cbbSChao Yu		 - [h] means add/del hot file extension
238b6a06cbbSChao Yu		 - [c] means add/del cold file extension
239