blob: 94a24aedcdb237cfe07fb9f4fe0c33e953a49bd5 [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 Kim853137c2018-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 Yub32d73a2017-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 Yua2a12b62017-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 Yu969d1b12017-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 Kim3bac3802014-01-09 21:00:06 +090089What: /sys/fs/f2fs/<disk>/max_victim_search
90Date: January 2014
91Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
92Description:
93 Controls the number of trials to find a victim segment.
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +090094
Jaegeuk Kim91796822014-03-19 13:40:09 +090095What: /sys/fs/f2fs/<disk>/dir_level
96Date: March 2014
97Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
98Description:
99 Controls the directory level for large directory.
100
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +0900101What: /sys/fs/f2fs/<disk>/ram_thresh
102Date: March 2014
103Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
104Description:
105 Controls the memory footprint used by f2fs.
Jaegeuk Kimbba681c2015-01-26 17:41:23 -0800106
Chao Yu6f6d9fe2017-06-12 09:44:26 +0800107What: /sys/fs/f2fs/<disk>/batched_trim_sections
Jaegeuk Kimbba681c2015-01-26 17:41:23 -0800108Date: February 2015
109Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
110Description:
111 Controls the trimming rate in batch mode.
Chao Yu377224c2018-04-09 10:25:23 +0800112 <deprecated>
Jaegeuk Kim60b99b42015-10-05 14:49:57 -0700113
114What: /sys/fs/f2fs/<disk>/cp_interval
115Date: October 2015
116Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
117Description:
118 Controls the checkpoint timing.
Chao Yuea1a29a02015-10-12 17:08:48 +0800119
Jaegeuk Kimd0239e12016-01-08 16:57:48 -0800120What: /sys/fs/f2fs/<disk>/idle_interval
121Date: January 2016
122Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
123Description:
124 Controls the idle timing.
125
Chao Yub32d73a2017-10-28 16:52:29 +0800126What: /sys/fs/f2fs/<disk>/iostat_enable
127Date: August 2017
128Contact: "Chao Yu" <yuchao0@huawei.com>
129Description:
130 Controls to enable/disable IO stat.
131
Chao Yuea1a29a02015-10-12 17:08:48 +0800132What: /sys/fs/f2fs/<disk>/ra_nid_pages
133Date: October 2015
134Contact: "Chao Yu" <chao2.yu@samsung.com>
135Description:
136 Controls the count of nid pages to be readaheaded.
Chao Yu2304cb02016-01-18 18:32:58 +0800137
138What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
139Date: January 2016
140Contact: "Chao Yu" <chao2.yu@samsung.com>
141Description:
142 Controls dirty nat entries ratio threshold, if current
143 ratio exceeds configured threshold, checkpoint will
144 be triggered for flushing dirty nat entries.
Shuoran Liu8f1dbbb2016-01-27 09:57:30 +0800145
146What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
147Date: January 2016
148Contact: "Shuoran Liu" <liushuoran@huawei.com>
149Description:
150 Shows total written kbytes issued to disk.
Chao Yu56412892017-06-12 22:30:44 +0800151
Eric Biggers9ac19fa2018-04-23 10:26:30 -0700152What: /sys/fs/f2fs/<disk>/features
Chao Yub32d73a2017-10-28 16:52:29 +0800153Date: July 2017
154Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
155Description:
156 Shows all enabled features in current device.
157
Chao Yu56412892017-06-12 22:30:44 +0800158What: /sys/fs/f2fs/<disk>/inject_rate
159Date: May 2016
160Contact: "Sheng Yong" <shengyong1@huawei.com>
161Description:
162 Controls the injection rate.
163
164What: /sys/fs/f2fs/<disk>/inject_type
165Date: May 2016
166Contact: "Sheng Yong" <shengyong1@huawei.com>
167Description:
168 Controls the injection type.
Chao Yudaeb4332017-06-26 16:24:41 +0800169
170What: /sys/fs/f2fs/<disk>/reserved_blocks
171Date: June 2017
172Contact: "Chao Yu" <yuchao0@huawei.com>
173Description:
Yunlong Song80d42142017-10-27 20:45:05 +0800174 Controls target reserved blocks in system, the threshold
175 is soft, it could exceed current available user space.
176
177What: /sys/fs/f2fs/<disk>/current_reserved_blocks
178Date: October 2017
179Contact: "Yunlong Song" <yunlong.song@huawei.com>
180Contact: "Chao Yu" <yuchao0@huawei.com>
181Description:
182 Shows current reserved blocks in system, it may be temporarily
183 smaller than target_reserved_blocks, but will gradually
184 increase to target_reserved_blocks when more free blocks are
185 freed by user later.
Jaegeuk Kimd9872a62017-08-06 22:09:00 -0700186
187What: /sys/fs/f2fs/<disk>/gc_urgent
188Date: August 2017
189Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
190Description:
191 Do background GC agressively
192
193What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
194Date: August 2017
195Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
196Description:
197 Controls sleep time of GC urgent mode
Sheng Yongf6df8f22017-11-22 18:23:38 +0800198
199What: /sys/fs/f2fs/<disk>/readdir_ra
200Date: November 2017
201Contact: "Sheng Yong" <shengyong1@huawei.com>
202Description:
203 Controls readahead inode block in readdir.
Chao Yu846ae672018-02-26 22:04:13 +0800204
205What: /sys/fs/f2fs/<disk>/extension_list
206Date: Feburary 2018
207Contact: "Chao Yu" <yuchao0@huawei.com>
208Description:
209 Used to control configure extension list:
210 - Query: cat /sys/fs/f2fs/<disk>/extension_list
Chao Yub6a06cb2018-02-28 17:07:27 +0800211 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
212 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
213 - [h] means add/del hot file extension
214 - [c] means add/del cold file extension