blob: f82da9bbb1fd731e1b1c6a3ee78d80f2ff3adb03 [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 Kim0c296e32018-05-24 13:57:26 -0700104 <deprecated>
Jaegeuk Kim60b99b42015-10-05 14:49:57 -0700105
106What: /sys/fs/f2fs/<disk>/cp_interval
107Date: October 2015
108Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
109Description:
110 Controls the checkpoint timing.
Chao Yuea1a29a02015-10-12 17:08:48 +0800111
Jaegeuk Kimd0239e12016-01-08 16:57:48 -0800112What: /sys/fs/f2fs/<disk>/idle_interval
113Date: January 2016
114Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
115Description:
116 Controls the idle timing.
117
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +0800118What: /sys/fs/f2fs/<disk>/iostat_enable
119Date: August 2017
120Contact: "Chao Yu" <yuchao0@huawei.com>
121Description:
122 Controls to enable/disable IO stat.
123
Chao Yuea1a29a02015-10-12 17:08:48 +0800124What: /sys/fs/f2fs/<disk>/ra_nid_pages
125Date: October 2015
126Contact: "Chao Yu" <chao2.yu@samsung.com>
127Description:
128 Controls the count of nid pages to be readaheaded.
Chao Yu2304cb02016-01-18 18:32:58 +0800129
130What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
131Date: January 2016
132Contact: "Chao Yu" <chao2.yu@samsung.com>
133Description:
134 Controls dirty nat entries ratio threshold, if current
135 ratio exceeds configured threshold, checkpoint will
136 be triggered for flushing dirty nat entries.
Shuoran Liu8f1dbbb2016-01-27 09:57:30 +0800137
138What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
139Date: January 2016
140Contact: "Shuoran Liu" <liushuoran@huawei.com>
141Description:
142 Shows total written kbytes issued to disk.
Hyojun Kim63da4202017-10-06 17:10:08 -0700143
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +0800144What: /sys/fs/f2fs/<disk>/feature
145Date: July 2017
146Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
147Description:
148 Shows all enabled features in current device.
149
Hyojun Kim63da4202017-10-06 17:10:08 -0700150What: /sys/fs/f2fs/<disk>/inject_rate
151Date: May 2016
152Contact: "Sheng Yong" <shengyong1@huawei.com>
153Description:
154 Controls the injection rate.
155
156What: /sys/fs/f2fs/<disk>/inject_type
157Date: May 2016
158Contact: "Sheng Yong" <shengyong1@huawei.com>
159Description:
160 Controls the injection type.
161
162What: /sys/fs/f2fs/<disk>/reserved_blocks
163Date: June 2017
164Contact: "Chao Yu" <yuchao0@huawei.com>
165Description:
Jaegeuk Kim8ae26d12017-09-23 17:02:18 +0800166 Controls target reserved blocks in system, the threshold
167 is soft, it could exceed current available user space.
168
169What: /sys/fs/f2fs/<disk>/current_reserved_blocks
170Date: October 2017
171Contact: "Yunlong Song" <yunlong.song@huawei.com>
172Contact: "Chao Yu" <yuchao0@huawei.com>
173Description:
174 Shows current reserved blocks in system, it may be temporarily
175 smaller than target_reserved_blocks, but will gradually
176 increase to target_reserved_blocks when more free blocks are
177 freed by user later.
Hyojun Kim63da4202017-10-06 17:10:08 -0700178
179What: /sys/fs/f2fs/<disk>/gc_urgent
180Date: August 2017
181Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
182Description:
183 Do background GC agressively
184
185What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
186Date: August 2017
187Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
188Description:
189 Controls sleep time of GC urgent mode
Jaegeuk Kim2f17e342017-11-16 16:59:14 +0800190
191What: /sys/fs/f2fs/<disk>/readdir_ra
192Date: November 2017
193Contact: "Sheng Yong" <shengyong1@huawei.com>
194Description:
195 Controls readahead inode block in readdir.
Jaegeuk Kimd9197652018-01-05 10:44:52 -0800196
197What: /sys/fs/f2fs/<disk>/extension_list
198Date: Feburary 2018
199Contact: "Chao Yu" <yuchao0@huawei.com>
200Description:
201 Used to control configure extension list:
202 - Query: cat /sys/fs/f2fs/<disk>/extension_list
203 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
204 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
205 - [h] means add/del hot file extension
206 - [c] means add/del cold file extension