blob: b8d0a30f164459dba4debf95a4ef5f05c434f1fb [file] [log] [blame]
Namjae Jeonb59d0ba2013-08-04 23:09:40 +09001What: /sys/fs/f2fs/<disk>/gc_max_sleep_time
2Date: July 2013
3Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
4Description:
5 Controls the maximun sleep time for gc_thread. Time
6 is in milliseconds.
7
8What: /sys/fs/f2fs/<disk>/gc_min_sleep_time
9Date: July 2013
10Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
11Description:
12 Controls the minimum sleep time for gc_thread. Time
13 is in milliseconds.
14
15What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time
16Date: July 2013
17Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
18Description:
19 Controls the default sleep time for gc_thread. Time
20 is in milliseconds.
Namjae Jeond2dc0952013-08-04 23:10:15 +090021
22What: /sys/fs/f2fs/<disk>/gc_idle
23Date: July 2013
24Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
25Description:
26 Controls the victim selection policy for garbage collection.
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090027
28What: /sys/fs/f2fs/<disk>/reclaim_segments
29Date: October 2013
30Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
31Description:
32 Controls the issue rate of segment discard commands.
33
34What: /sys/fs/f2fs/<disk>/ipu_policy
35Date: November 2013
36Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
37Description:
38 Controls the in-place-update policy.
39
40What: /sys/fs/f2fs/<disk>/min_ipu_util
41Date: November 2013
42Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
43Description:
44 Controls the FS utilization condition for the in-place-update
45 policies.
46
Jaegeuk Kimc1ce1b02014-09-10 16:53:02 -070047What: /sys/fs/f2fs/<disk>/min_fsync_blocks
48Date: September 2014
49Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
50Description:
51 Controls the dirty page count condition for the in-place-update
52 policies.
53
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +080054What: /sys/fs/f2fs/<disk>/min_hot_blocks
55Date: March 2017
56Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
57Description:
58 Controls the dirty page count condition for redefining hot data.
59
60What: /sys/fs/f2fs/<disk>/min_ssr_sections
61Date: October 2017
62Contact: "Chao Yu" <yuchao0@huawei.com>
63Description:
64 Controls the fee section threshold to trigger SSR allocation.
65
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090066What: /sys/fs/f2fs/<disk>/max_small_discards
67Date: November 2013
68Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
69Description:
70 Controls the issue rate of small discard commands.
71
Hyojun Kim63da4202017-10-06 17:10:08 -070072What: /sys/fs/f2fs/<disk>/discard_granularity
73Date: July 2017
74Contact: "Chao Yu" <yuchao0@huawei.com>
75Description:
76 Controls discard granularity of inner discard thread, inner thread
77 will not issue discards with size that is smaller than granularity.
78 The unit size is one block, now only support configuring in range
79 of [1, 512].
80
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090081What: /sys/fs/f2fs/<disk>/max_victim_search
82Date: January 2014
83Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
84Description:
85 Controls the number of trials to find a victim segment.
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +090086
Jaegeuk Kim91796822014-03-19 13:40:09 +090087What: /sys/fs/f2fs/<disk>/dir_level
88Date: March 2014
89Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
90Description:
91 Controls the directory level for large directory.
92
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +090093What: /sys/fs/f2fs/<disk>/ram_thresh
94Date: March 2014
95Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
96Description:
97 Controls the memory footprint used by f2fs.
Jaegeuk Kimbba681c2015-01-26 17:41:23 -080098
99What: /sys/fs/f2fs/<disk>/trim_sections
100Date: February 2015
101Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
102Description:
103 Controls the trimming rate in batch mode.
Jaegeuk Kim60b99b42015-10-05 14:49:57 -0700104
105What: /sys/fs/f2fs/<disk>/cp_interval
106Date: October 2015
107Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
108Description:
109 Controls the checkpoint timing.
Chao Yuea1a29a02015-10-12 17:08:48 +0800110
Jaegeuk Kimd0239e12016-01-08 16:57:48 -0800111What: /sys/fs/f2fs/<disk>/idle_interval
112Date: January 2016
113Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
114Description:
115 Controls the idle timing.
116
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +0800117What: /sys/fs/f2fs/<disk>/iostat_enable
118Date: August 2017
119Contact: "Chao Yu" <yuchao0@huawei.com>
120Description:
121 Controls to enable/disable IO stat.
122
Chao Yuea1a29a02015-10-12 17:08:48 +0800123What: /sys/fs/f2fs/<disk>/ra_nid_pages
124Date: October 2015
125Contact: "Chao Yu" <chao2.yu@samsung.com>
126Description:
127 Controls the count of nid pages to be readaheaded.
Chao Yu2304cb02016-01-18 18:32:58 +0800128
129What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
130Date: January 2016
131Contact: "Chao Yu" <chao2.yu@samsung.com>
132Description:
133 Controls dirty nat entries ratio threshold, if current
134 ratio exceeds configured threshold, checkpoint will
135 be triggered for flushing dirty nat entries.
Shuoran Liu8f1dbbb2016-01-27 09:57:30 +0800136
137What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
138Date: January 2016
139Contact: "Shuoran Liu" <liushuoran@huawei.com>
140Description:
141 Shows total written kbytes issued to disk.
Hyojun Kim63da4202017-10-06 17:10:08 -0700142
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +0800143What: /sys/fs/f2fs/<disk>/feature
144Date: July 2017
145Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
146Description:
147 Shows all enabled features in current device.
148
Hyojun Kim63da4202017-10-06 17:10:08 -0700149What: /sys/fs/f2fs/<disk>/inject_rate
150Date: May 2016
151Contact: "Sheng Yong" <shengyong1@huawei.com>
152Description:
153 Controls the injection rate.
154
155What: /sys/fs/f2fs/<disk>/inject_type
156Date: May 2016
157Contact: "Sheng Yong" <shengyong1@huawei.com>
158Description:
159 Controls the injection type.
160
161What: /sys/fs/f2fs/<disk>/reserved_blocks
162Date: June 2017
163Contact: "Chao Yu" <yuchao0@huawei.com>
164Description:
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +0800165 Controls target reserved blocks in system, the threshold
166 is soft, it could exceed current available user space.
167
168What: /sys/fs/f2fs/<disk>/current_reserved_blocks
169Date: October 2017
170Contact: "Yunlong Song" <yunlong.song@huawei.com>
171Contact: "Chao Yu" <yuchao0@huawei.com>
172Description:
173 Shows current reserved blocks in system, it may be temporarily
174 smaller than target_reserved_blocks, but will gradually
175 increase to target_reserved_blocks when more free blocks are
176 freed by user later.
Hyojun Kim63da4202017-10-06 17:10:08 -0700177
178What: /sys/fs/f2fs/<disk>/gc_urgent
179Date: August 2017
180Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
181Description:
182 Do background GC agressively
183
184What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
185Date: August 2017
186Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
187Description:
188 Controls sleep time of GC urgent mode
Jaegeuk Kim2f17e342017-11-16 16:59:14 +0800189
190What: /sys/fs/f2fs/<disk>/readdir_ra
191Date: November 2017
192Contact: "Sheng Yong" <shengyong1@huawei.com>
193Description:
194 Controls readahead inode block in readdir.
Jaegeuk Kimd9197652018-01-05 10:44:52 -0800195
196What: /sys/fs/f2fs/<disk>/extension_list
197Date: Feburary 2018
198Contact: "Chao Yu" <yuchao0@huawei.com>
199Description:
200 Used to control configure extension list:
201 - Query: cat /sys/fs/f2fs/<disk>/extension_list
202 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
203 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
204 - [h] means add/del hot file extension
205 - [c] means add/del cold file extension