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>/max_blkaddr
36 Contact: "Ramon Pantin" <pantin@google.com>
38 Shows first block address of MAIN area.
40 What: /sys/fs/f2fs/<disk>/ipu_policy
42 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
44 Controls the in-place-update policy.
46 What: /sys/fs/f2fs/<disk>/min_ipu_util
48 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
50 Controls the FS utilization condition for the in-place-update
53 What: /sys/fs/f2fs/<disk>/min_fsync_blocks
55 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
57 Controls the dirty page count condition for the in-place-update
60 What: /sys/fs/f2fs/<disk>/min_seq_blocks
62 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
64 Controls the dirty page count condition for batched sequential
65 writes in ->writepages.
68 What: /sys/fs/f2fs/<disk>/min_hot_blocks
70 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
72 Controls the dirty page count condition for redefining hot data.
74 What: /sys/fs/f2fs/<disk>/min_ssr_sections
76 Contact: "Chao Yu" <yuchao0@huawei.com>
78 Controls the fee section threshold to trigger SSR allocation.
80 What: /sys/fs/f2fs/<disk>/max_small_discards
82 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
84 Controls the issue rate of small discard commands.
86 What: /sys/fs/f2fs/<disk>/discard_granularity
88 Contact: "Chao Yu" <yuchao0@huawei.com>
90 Controls discard granularity of inner discard thread, inner thread
91 will not issue discards with size that is smaller than granularity.
92 The unit size is one block, now only support configuring in range
95 What: /sys/fs/f2fs/<disk>/umount_discard_timeout
97 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
99 Set timeout to issue discard commands during umount.
102 What: /sys/fs/f2fs/<disk>/max_victim_search
104 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
106 Controls the number of trials to find a victim segment.
108 What: /sys/fs/f2fs/<disk>/migration_granularity
110 Contact: "Chao Yu" <yuchao0@huawei.com>
112 Controls migration granularity of garbage collection on large
113 section, it can let GC move partial segment{s} of one section
114 in one GC cycle, so that dispersing heavy overhead GC to
115 multiple lightweight one.
117 What: /sys/fs/f2fs/<disk>/dir_level
119 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
121 Controls the directory level for large directory.
123 What: /sys/fs/f2fs/<disk>/ram_thresh
125 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
127 Controls the memory footprint used by f2fs.
129 What: /sys/fs/f2fs/<disk>/batched_trim_sections
131 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
133 Controls the trimming rate in batch mode.
136 What: /sys/fs/f2fs/<disk>/cp_interval
138 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
140 Controls the checkpoint timing.
142 What: /sys/fs/f2fs/<disk>/idle_interval
144 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
146 Controls the idle timing for all paths other than
149 What: /sys/fs/f2fs/<disk>/discard_idle_interval
151 Contact: "Chao Yu" <yuchao0@huawei.com>
152 Contact: "Sahitya Tummala" <stummala@codeaurora.org>
154 Controls the idle timing for discard path.
156 What: /sys/fs/f2fs/<disk>/gc_idle_interval
158 Contact: "Chao Yu" <yuchao0@huawei.com>
159 Contact: "Sahitya Tummala" <stummala@codeaurora.org>
161 Controls the idle timing for gc path.
163 What: /sys/fs/f2fs/<disk>/iostat_enable
165 Contact: "Chao Yu" <yuchao0@huawei.com>
167 Controls to enable/disable IO stat.
169 What: /sys/fs/f2fs/<disk>/ra_nid_pages
171 Contact: "Chao Yu" <chao2.yu@samsung.com>
173 Controls the count of nid pages to be readaheaded.
175 What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
177 Contact: "Chao Yu" <chao2.yu@samsung.com>
179 Controls dirty nat entries ratio threshold, if current
180 ratio exceeds configured threshold, checkpoint will
181 be triggered for flushing dirty nat entries.
183 What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
185 Contact: "Shuoran Liu" <liushuoran@huawei.com>
187 Shows total written kbytes issued to disk.
189 What: /sys/fs/f2fs/<disk>/features
191 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
193 Shows all enabled features in current device.
195 What: /sys/fs/f2fs/<disk>/inject_rate
197 Contact: "Sheng Yong" <shengyong1@huawei.com>
199 Controls the injection rate.
201 What: /sys/fs/f2fs/<disk>/inject_type
203 Contact: "Sheng Yong" <shengyong1@huawei.com>
205 Controls the injection type.
207 What: /sys/fs/f2fs/<disk>/reserved_blocks
209 Contact: "Chao Yu" <yuchao0@huawei.com>
211 Controls target reserved blocks in system, the threshold
212 is soft, it could exceed current available user space.
214 What: /sys/fs/f2fs/<disk>/current_reserved_blocks
216 Contact: "Yunlong Song" <yunlong.song@huawei.com>
217 Contact: "Chao Yu" <yuchao0@huawei.com>
219 Shows current reserved blocks in system, it may be temporarily
220 smaller than target_reserved_blocks, but will gradually
221 increase to target_reserved_blocks when more free blocks are
224 What: /sys/fs/f2fs/<disk>/gc_urgent
226 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
228 Do background GC agressively
230 What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
232 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
234 Controls sleep time of GC urgent mode
236 What: /sys/fs/f2fs/<disk>/readdir_ra
238 Contact: "Sheng Yong" <shengyong1@huawei.com>
240 Controls readahead inode block in readdir.
242 What: /sys/fs/f2fs/<disk>/extension_list
244 Contact: "Chao Yu" <yuchao0@huawei.com>
246 Used to control configure extension list:
247 - Query: cat /sys/fs/f2fs/<disk>/extension_list
248 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
249 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
250 - [h] means add/del hot file extension
251 - [c] means add/del cold file extension
253 What: /sys/fs/f2fs/<disk>/unusable
255 Contact: "Daniel Rosenberg" <drosen@google.com>
257 If checkpoint=disable, it displays the number of blocks that are unusable.
258 If checkpoint=enable it displays the enumber of blocks that would be unusable
259 if checkpoint=disable were to be set.
261 What: /sys/fs/f2fs/<disk>/encoding
263 Contact: "Daniel Rosenberg" <drosen@google.com>
265 Displays name and version of the encoding set for the filesystem.
266 If no encoding is set, displays (none)