1 What: /sys/fs/f2fs/<disk>/gc_max_sleep_time
3 Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
5 Controls the maximun sleep time for gc_thread. Time
8 What: /sys/fs/f2fs/<disk>/gc_min_sleep_time
10 Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
12 Controls the minimum sleep time for gc_thread. Time
15 What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time
17 Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
19 Controls the default sleep time for gc_thread. Time
22 What: /sys/fs/f2fs/<disk>/gc_idle
24 Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
26 Controls the victim selection policy for garbage collection.
28 What: /sys/fs/f2fs/<disk>/reclaim_segments
30 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
32 Controls the issue rate of segment discard commands.
34 What: /sys/fs/f2fs/<disk>/ipu_policy
36 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
38 Controls the in-place-update policy.
40 What: /sys/fs/f2fs/<disk>/min_ipu_util
42 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
44 Controls the FS utilization condition for the in-place-update
47 What: /sys/fs/f2fs/<disk>/min_fsync_blocks
49 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
51 Controls the dirty page count condition for the in-place-update
54 What: /sys/fs/f2fs/<disk>/min_seq_blocks
56 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
58 Controls the dirty page count condition for batched sequential
59 writes in ->writepages.
62 What: /sys/fs/f2fs/<disk>/min_hot_blocks
64 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
66 Controls the dirty page count condition for redefining hot data.
68 What: /sys/fs/f2fs/<disk>/min_ssr_sections
70 Contact: "Chao Yu" <yuchao0@huawei.com>
72 Controls the fee section threshold to trigger SSR allocation.
74 What: /sys/fs/f2fs/<disk>/max_small_discards
76 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
78 Controls the issue rate of small discard commands.
80 What: /sys/fs/f2fs/<disk>/discard_granularity
82 Contact: "Chao Yu" <yuchao0@huawei.com>
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
89 What: /sys/fs/f2fs/<disk>/max_victim_search
91 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
93 Controls the number of trials to find a victim segment.
95 What: /sys/fs/f2fs/<disk>/dir_level
97 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
99 Controls the directory level for large directory.
101 What: /sys/fs/f2fs/<disk>/ram_thresh
103 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
105 Controls the memory footprint used by f2fs.
107 What: /sys/fs/f2fs/<disk>/batched_trim_sections
109 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
111 Controls the trimming rate in batch mode.
114 What: /sys/fs/f2fs/<disk>/cp_interval
116 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
118 Controls the checkpoint timing.
120 What: /sys/fs/f2fs/<disk>/idle_interval
122 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
124 Controls the idle timing for all paths other than
127 What: /sys/fs/f2fs/<disk>/discard_idle_interval
129 Contact: "Chao Yu" <yuchao0@huawei.com>
130 Contact: "Sahitya Tummala" <stummala@codeaurora.org>
132 Controls the idle timing for discard path.
134 What: /sys/fs/f2fs/<disk>/gc_idle_interval
136 Contact: "Chao Yu" <yuchao0@huawei.com>
137 Contact: "Sahitya Tummala" <stummala@codeaurora.org>
139 Controls the idle timing for gc path.
141 What: /sys/fs/f2fs/<disk>/iostat_enable
143 Contact: "Chao Yu" <yuchao0@huawei.com>
145 Controls to enable/disable IO stat.
147 What: /sys/fs/f2fs/<disk>/ra_nid_pages
149 Contact: "Chao Yu" <chao2.yu@samsung.com>
151 Controls the count of nid pages to be readaheaded.
153 What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
155 Contact: "Chao Yu" <chao2.yu@samsung.com>
157 Controls dirty nat entries ratio threshold, if current
158 ratio exceeds configured threshold, checkpoint will
159 be triggered for flushing dirty nat entries.
161 What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
163 Contact: "Shuoran Liu" <liushuoran@huawei.com>
165 Shows total written kbytes issued to disk.
167 What: /sys/fs/f2fs/<disk>/features
169 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
171 Shows all enabled features in current device.
173 What: /sys/fs/f2fs/<disk>/inject_rate
175 Contact: "Sheng Yong" <shengyong1@huawei.com>
177 Controls the injection rate.
179 What: /sys/fs/f2fs/<disk>/inject_type
181 Contact: "Sheng Yong" <shengyong1@huawei.com>
183 Controls the injection type.
185 What: /sys/fs/f2fs/<disk>/reserved_blocks
187 Contact: "Chao Yu" <yuchao0@huawei.com>
189 Controls target reserved blocks in system, the threshold
190 is soft, it could exceed current available user space.
192 What: /sys/fs/f2fs/<disk>/current_reserved_blocks
194 Contact: "Yunlong Song" <yunlong.song@huawei.com>
195 Contact: "Chao Yu" <yuchao0@huawei.com>
197 Shows current reserved blocks in system, it may be temporarily
198 smaller than target_reserved_blocks, but will gradually
199 increase to target_reserved_blocks when more free blocks are
202 What: /sys/fs/f2fs/<disk>/gc_urgent
204 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
206 Do background GC agressively
208 What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
210 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
212 Controls sleep time of GC urgent mode
214 What: /sys/fs/f2fs/<disk>/readdir_ra
216 Contact: "Sheng Yong" <shengyong1@huawei.com>
218 Controls readahead inode block in readdir.
220 What: /sys/fs/f2fs/<disk>/extension_list
222 Contact: "Chao Yu" <yuchao0@huawei.com>
224 Used to control configure extension list:
225 - Query: cat /sys/fs/f2fs/<disk>/extension_list
226 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
227 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
228 - [h] means add/del hot file extension
229 - [c] means add/del cold file extension