blob: e916c1eddf1be0e9b3ce155ff7c835fd6d3ad35e [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 Kim6d598452018-08-09 17:53:34 -070054What: /sys/fs/f2fs/<disk>/min_seq_blocks
55Date: August 2018
56Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
57Description:
58 Controls the dirty page count condition for batched sequential
59 writes in ->writepages.
60
61
Chao Yuef216e62017-10-28 16:52:29 +080062What: /sys/fs/f2fs/<disk>/min_hot_blocks
63Date: March 2017
64Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
65Description:
66 Controls the dirty page count condition for redefining hot data.
67
Chao Yub9f73872017-10-28 16:52:33 +080068What: /sys/fs/f2fs/<disk>/min_ssr_sections
69Date: October 2017
70Contact: "Chao Yu" <yuchao0@huawei.com>
71Description:
72 Controls the fee section threshold to trigger SSR allocation.
73
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090074What: /sys/fs/f2fs/<disk>/max_small_discards
75Date: November 2013
76Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
77Description:
78 Controls the issue rate of small discard commands.
79
Chao Yuefe24da2017-08-07 23:09:56 +080080What: /sys/fs/f2fs/<disk>/discard_granularity
81Date: July 2017
82Contact: "Chao Yu" <yuchao0@huawei.com>
83Description:
84 Controls discard granularity of inner discard thread, inner thread
85 will not issue discards with size that is smaller than granularity.
86 The unit size is one block, now only support configuring in range
87 of [1, 512].
88
Jaegeuk Kimb842f2d2019-01-14 10:42:11 -080089What: /sys/fs/f2fs/<disk>/umount_discard_timeout
90Date: January 2019
91Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
92Description:
93 Set timeout to issue discard commands during umount.
94 Default: 5 secs
95
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090096What: /sys/fs/f2fs/<disk>/max_victim_search
97Date: January 2014
98Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
99Description:
100 Controls the number of trials to find a victim segment.
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +0900101
Chao Yubc83a660b2018-10-25 16:19:28 +0800102What: /sys/fs/f2fs/<disk>/migration_granularity
103Date: October 2018
104Contact: "Chao Yu" <yuchao0@huawei.com>
105Description:
106 Controls migration granularity of garbage collection on large
107 section, it can let GC move partial segment{s} of one section
108 in one GC cycle, so that dispersing heavy overhead GC to
109 multiple lightweight one.
110
Jaegeuk Kim91796822014-03-19 13:40:09 +0900111What: /sys/fs/f2fs/<disk>/dir_level
112Date: March 2014
113Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
114Description:
115 Controls the directory level for large directory.
116
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +0900117What: /sys/fs/f2fs/<disk>/ram_thresh
118Date: March 2014
119Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
120Description:
121 Controls the memory footprint used by f2fs.
Jaegeuk Kimbba681c2015-01-26 17:41:23 -0800122
123What: /sys/fs/f2fs/<disk>/trim_sections
124Date: February 2015
125Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
126Description:
127 Controls the trimming rate in batch mode.
Chao Yu0357a0f2018-04-09 10:25:23 +0800128 <deprecated>
Jaegeuk Kim60b99b42015-10-05 14:49:57 -0700129
130What: /sys/fs/f2fs/<disk>/cp_interval
131Date: October 2015
132Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
133Description:
134 Controls the checkpoint timing.
Chao Yuea1a29a02015-10-12 17:08:48 +0800135
Jaegeuk Kimd0239e12016-01-08 16:57:48 -0800136What: /sys/fs/f2fs/<disk>/idle_interval
137Date: January 2016
138Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
139Description:
Sahitya Tummalafeb1b252018-09-19 14:18:47 +0530140 Controls the idle timing for all paths other than
141 discard and gc path.
142
143What: /sys/fs/f2fs/<disk>/discard_idle_interval
144Date: September 2018
145Contact: "Chao Yu" <yuchao0@huawei.com>
146Contact: "Sahitya Tummala" <stummala@codeaurora.org>
147Description:
148 Controls the idle timing for discard path.
149
150What: /sys/fs/f2fs/<disk>/gc_idle_interval
151Date: September 2018
152Contact: "Chao Yu" <yuchao0@huawei.com>
153Contact: "Sahitya Tummala" <stummala@codeaurora.org>
154Description:
155 Controls the idle timing for gc path.
Jaegeuk Kimd0239e12016-01-08 16:57:48 -0800156
Chao Yuef216e62017-10-28 16:52:29 +0800157What: /sys/fs/f2fs/<disk>/iostat_enable
158Date: August 2017
159Contact: "Chao Yu" <yuchao0@huawei.com>
160Description:
161 Controls to enable/disable IO stat.
162
Chao Yuea1a29a02015-10-12 17:08:48 +0800163What: /sys/fs/f2fs/<disk>/ra_nid_pages
164Date: October 2015
165Contact: "Chao Yu" <chao2.yu@samsung.com>
166Description:
167 Controls the count of nid pages to be readaheaded.
Chao Yu2304cb02016-01-18 18:32:58 +0800168
169What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
170Date: January 2016
171Contact: "Chao Yu" <chao2.yu@samsung.com>
172Description:
173 Controls dirty nat entries ratio threshold, if current
174 ratio exceeds configured threshold, checkpoint will
175 be triggered for flushing dirty nat entries.
Shuoran Liu8f1dbbb2016-01-27 09:57:30 +0800176
177What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
178Date: January 2016
179Contact: "Shuoran Liu" <liushuoran@huawei.com>
180Description:
181 Shows total written kbytes issued to disk.
Chao Yu026bd9d2017-06-26 16:24:41 +0800182
Chao Yuef216e62017-10-28 16:52:29 +0800183What: /sys/fs/f2fs/<disk>/feature
184Date: July 2017
185Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
186Description:
187 Shows all enabled features in current device.
188
Chao Yu026bd9d2017-06-26 16:24:41 +0800189What: /sys/fs/f2fs/<disk>/inject_rate
190Date: May 2016
191Contact: "Sheng Yong" <shengyong1@huawei.com>
192Description:
193 Controls the injection rate.
194
195What: /sys/fs/f2fs/<disk>/inject_type
196Date: May 2016
197Contact: "Sheng Yong" <shengyong1@huawei.com>
198Description:
199 Controls the injection type.
200
201What: /sys/fs/f2fs/<disk>/reserved_blocks
202Date: June 2017
203Contact: "Chao Yu" <yuchao0@huawei.com>
204Description:
Yunlong Song68ab6f82017-10-27 20:45:05 +0800205 Controls target reserved blocks in system, the threshold
206 is soft, it could exceed current available user space.
207
208What: /sys/fs/f2fs/<disk>/current_reserved_blocks
209Date: October 2017
210Contact: "Yunlong Song" <yunlong.song@huawei.com>
211Contact: "Chao Yu" <yuchao0@huawei.com>
212Description:
213 Shows current reserved blocks in system, it may be temporarily
214 smaller than target_reserved_blocks, but will gradually
215 increase to target_reserved_blocks when more free blocks are
216 freed by user later.
Jaegeuk Kimbd2ffc22017-08-06 22:09:00 -0700217
218What: /sys/fs/f2fs/<disk>/gc_urgent
219Date: August 2017
220Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
221Description:
222 Do background GC agressively
223
224What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
225Date: August 2017
226Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
227Description:
228 Controls sleep time of GC urgent mode
Sheng Yong1ed75332017-11-22 18:23:38 +0800229
230What: /sys/fs/f2fs/<disk>/readdir_ra
231Date: November 2017
232Contact: "Sheng Yong" <shengyong1@huawei.com>
233Description:
234 Controls readahead inode block in readdir.
Chao Yu1e72cb22018-02-26 22:04:13 +0800235
236What: /sys/fs/f2fs/<disk>/extension_list
237Date: Feburary 2018
238Contact: "Chao Yu" <yuchao0@huawei.com>
239Description:
240 Used to control configure extension list:
241 - Query: cat /sys/fs/f2fs/<disk>/extension_list
Chao Yuac734c42018-02-28 17:07:27 +0800242 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
243 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
244 - [h] means add/del hot file extension
245 - [c] means add/del cold file extension