b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | What: /sys/fs/f2fs/<disk>/gc_max_sleep_time |
| 2 | Date: July 2013 |
| 3 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
| 4 | Description: Controls the maximum sleep time for gc_thread. Time |
| 5 | is in milliseconds. |
| 6 | |
| 7 | What: /sys/fs/f2fs/<disk>/gc_min_sleep_time |
| 8 | Date: July 2013 |
| 9 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
| 10 | Description: Controls the minimum sleep time for gc_thread. Time |
| 11 | is in milliseconds. |
| 12 | |
| 13 | What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time |
| 14 | Date: July 2013 |
| 15 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
| 16 | Description: Controls the default sleep time for gc_thread. Time |
| 17 | is in milliseconds. |
| 18 | |
| 19 | What: /sys/fs/f2fs/<disk>/gc_idle |
| 20 | Date: July 2013 |
| 21 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
| 22 | Description: Controls the victim selection policy for garbage collection. |
| 23 | Setting gc_idle = 0(default) will disable this option. Setting |
| 24 | gc_idle = 1 will select the Cost Benefit approach & setting |
| 25 | gc_idle = 2 will select the greedy approach & setting |
| 26 | gc_idle = 3 will select the age-threshold based approach. |
| 27 | |
| 28 | What: /sys/fs/f2fs/<disk>/reclaim_segments |
| 29 | Date: October 2013 |
| 30 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 31 | Description: This parameter controls the number of prefree segments to be |
| 32 | reclaimed. If the number of prefree segments is larger than |
| 33 | the number of segments in the proportion to the percentage |
| 34 | over total volume size, f2fs tries to conduct checkpoint to |
| 35 | reclaim the prefree segments to free segments. |
| 36 | By default, 5% over total # of segments. |
| 37 | |
| 38 | What: /sys/fs/f2fs/<disk>/main_blkaddr |
| 39 | Date: November 2019 |
| 40 | Contact: "Ramon Pantin" <pantin@google.com> |
| 41 | Description: |
| 42 | Shows first block address of MAIN area. |
| 43 | |
| 44 | What: /sys/fs/f2fs/<disk>/ipu_policy |
| 45 | Date: November 2013 |
| 46 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 47 | Description: Controls the in-place-update policy. |
| 48 | updates in f2fs. User can set: |
| 49 | 0x01: F2FS_IPU_FORCE, 0x02: F2FS_IPU_SSR, |
| 50 | 0x04: F2FS_IPU_UTIL, 0x08: F2FS_IPU_SSR_UTIL, |
| 51 | 0x10: F2FS_IPU_FSYNC, 0x20: F2FS_IPU_ASYNC, |
| 52 | 0x40: F2FS_IPU_NOCACHE. |
| 53 | Refer segment.h for details. |
| 54 | |
| 55 | What: /sys/fs/f2fs/<disk>/min_ipu_util |
| 56 | Date: November 2013 |
| 57 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 58 | Description: Controls the FS utilization condition for the in-place-update |
| 59 | policies. It is used by F2FS_IPU_UTIL and F2FS_IPU_SSR_UTIL policies. |
| 60 | |
| 61 | What: /sys/fs/f2fs/<disk>/min_fsync_blocks |
| 62 | Date: September 2014 |
| 63 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 64 | Description: Controls the dirty page count condition for the in-place-update |
| 65 | policies. |
| 66 | |
| 67 | What: /sys/fs/f2fs/<disk>/min_seq_blocks |
| 68 | Date: August 2018 |
| 69 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 70 | Description: Controls the dirty page count condition for batched sequential |
| 71 | writes in writepages. |
| 72 | |
| 73 | What: /sys/fs/f2fs/<disk>/min_hot_blocks |
| 74 | Date: March 2017 |
| 75 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 76 | Description: Controls the dirty page count condition for redefining hot data. |
| 77 | |
| 78 | What: /sys/fs/f2fs/<disk>/min_ssr_sections |
| 79 | Date: October 2017 |
| 80 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 81 | Description: Controls the free section threshold to trigger SSR allocation. |
| 82 | If this is large, SSR mode will be enabled early. |
| 83 | |
| 84 | What: /sys/fs/f2fs/<disk>/max_small_discards |
| 85 | Date: November 2013 |
| 86 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 87 | Description: Controls the issue rate of discard commands that consist of small |
| 88 | blocks less than 2MB. The candidates to be discarded are cached until |
| 89 | checkpoint is triggered, and issued during the checkpoint. |
| 90 | By default, it is disabled with 0. |
| 91 | |
| 92 | What: /sys/fs/f2fs/<disk>/discard_granularity |
| 93 | Date: July 2017 |
| 94 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 95 | Description: Controls discard granularity of inner discard thread. Inner thread |
| 96 | will not issue discards with size that is smaller than granularity. |
| 97 | The unit size is one block(4KB), now only support configuring |
| 98 | in range of [1, 512]. Default value is 4(=16KB). |
| 99 | |
| 100 | What: /sys/fs/f2fs/<disk>/umount_discard_timeout |
| 101 | Date: January 2019 |
| 102 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 103 | Description: Set timeout to issue discard commands during umount. |
| 104 | Default: 5 secs |
| 105 | |
| 106 | What: /sys/fs/f2fs/<disk>/max_victim_search |
| 107 | Date: January 2014 |
| 108 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 109 | Description: Controls the number of trials to find a victim segment |
| 110 | when conducting SSR and cleaning operations. The default value |
| 111 | is 4096 which covers 8GB block address range. |
| 112 | |
| 113 | What: /sys/fs/f2fs/<disk>/migration_granularity |
| 114 | Date: October 2018 |
| 115 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 116 | Description: Controls migration granularity of garbage collection on large |
| 117 | section, it can let GC move partial segment{s} of one section |
| 118 | in one GC cycle, so that dispersing heavy overhead GC to |
| 119 | multiple lightweight one. |
| 120 | |
| 121 | What: /sys/fs/f2fs/<disk>/dir_level |
| 122 | Date: March 2014 |
| 123 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 124 | Description: Controls the directory level for large directory. If a |
| 125 | directory has a number of files, it can reduce the file lookup |
| 126 | latency by increasing this dir_level value. Otherwise, it |
| 127 | needs to decrease this value to reduce the space overhead. |
| 128 | The default value is 0. |
| 129 | |
| 130 | What: /sys/fs/f2fs/<disk>/ram_thresh |
| 131 | Date: March 2014 |
| 132 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
| 133 | Description: Controls the memory footprint used by free nids and cached |
| 134 | nat entries. By default, 1 is set, which indicates |
| 135 | 10 MB / 1 GB RAM. |
| 136 | |
| 137 | What: /sys/fs/f2fs/<disk>/batched_trim_sections |
| 138 | Date: February 2015 |
| 139 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 140 | Description: Controls the trimming rate in batch mode. |
| 141 | <deprecated> |
| 142 | |
| 143 | What: /sys/fs/f2fs/<disk>/cp_interval |
| 144 | Date: October 2015 |
| 145 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 146 | Description: Controls the checkpoint timing, set to 60 seconds by default. |
| 147 | |
| 148 | What: /sys/fs/f2fs/<disk>/idle_interval |
| 149 | Date: January 2016 |
| 150 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 151 | Description: Controls the idle timing of system, if there is no FS operation |
| 152 | during given interval. |
| 153 | Set to 5 seconds by default. |
| 154 | |
| 155 | What: /sys/fs/f2fs/<disk>/discard_idle_interval |
| 156 | Date: September 2018 |
| 157 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 158 | Contact: "Sahitya Tummala" <stummala@codeaurora.org> |
| 159 | Description: Controls the idle timing of discard thread given |
| 160 | this time interval. |
| 161 | Default is 5 secs. |
| 162 | |
| 163 | What: /sys/fs/f2fs/<disk>/gc_idle_interval |
| 164 | Date: September 2018 |
| 165 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 166 | Contact: "Sahitya Tummala" <stummala@codeaurora.org> |
| 167 | Description: Controls the idle timing for gc path. Set to 5 seconds by default. |
| 168 | |
| 169 | What: /sys/fs/f2fs/<disk>/iostat_enable |
| 170 | Date: August 2017 |
| 171 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 172 | Description: Controls to enable/disable IO stat. |
| 173 | |
| 174 | What: /sys/fs/f2fs/<disk>/ra_nid_pages |
| 175 | Date: October 2015 |
| 176 | Contact: "Chao Yu" <chao2.yu@samsung.com> |
| 177 | Description: Controls the count of nid pages to be readaheaded. |
| 178 | When building free nids, F2FS reads NAT blocks ahead for |
| 179 | speed up. Default is 0. |
| 180 | |
| 181 | What: /sys/fs/f2fs/<disk>/dirty_nats_ratio |
| 182 | Date: January 2016 |
| 183 | Contact: "Chao Yu" <chao2.yu@samsung.com> |
| 184 | Description: Controls dirty nat entries ratio threshold, if current |
| 185 | ratio exceeds configured threshold, checkpoint will |
| 186 | be triggered for flushing dirty nat entries. |
| 187 | |
| 188 | What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes |
| 189 | Date: January 2016 |
| 190 | Contact: "Shuoran Liu" <liushuoran@huawei.com> |
| 191 | Description: Shows total written kbytes issued to disk. |
| 192 | |
| 193 | What: /sys/fs/f2fs/<disk>/features |
| 194 | Date: July 2017 |
| 195 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 196 | Description: <deprecated: should use /sys/fs/f2fs/<disk>/feature_list/ |
| 197 | Shows all enabled features in current device. |
| 198 | Supported features: |
| 199 | encryption, blkzoned, extra_attr, projquota, inode_checksum, |
| 200 | flexible_inline_xattr, quota_ino, inode_crtime, lost_found, |
| 201 | verity, sb_checksum, casefold, readonly, compression, pin_file. |
| 202 | |
| 203 | What: /sys/fs/f2fs/<disk>/feature_list/ |
| 204 | Date: June 2021 |
| 205 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 206 | Description: Expand /sys/fs/f2fs/<disk>/features to meet sysfs rule. |
| 207 | Supported on-disk features: |
| 208 | encryption, block_zoned (aka blkzoned), extra_attr, |
| 209 | project_quota (aka projquota), inode_checksum, |
| 210 | flexible_inline_xattr, quota_ino, inode_crtime, lost_found, |
| 211 | verity, sb_checksum, casefold, readonly, compression. |
| 212 | Note that, pin_file is moved into /sys/fs/f2fs/features/. |
| 213 | |
| 214 | What: /sys/fs/f2fs/features/ |
| 215 | Date: July 2017 |
| 216 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 217 | Description: Shows all enabled kernel features. |
| 218 | Supported features: |
| 219 | encryption, block_zoned, extra_attr, project_quota, |
| 220 | inode_checksum, flexible_inline_xattr, quota_ino, |
| 221 | inode_crtime, lost_found, verity, sb_checksum, |
| 222 | casefold, readonly, compression, test_dummy_encryption_v2, |
| 223 | atomic_write, pin_file, encrypted_casefold. |
| 224 | |
| 225 | What: /sys/fs/f2fs/<disk>/inject_rate |
| 226 | Date: May 2016 |
| 227 | Contact: "Sheng Yong" <shengyong1@huawei.com> |
| 228 | Description: Controls the injection rate of arbitrary faults. |
| 229 | |
| 230 | What: /sys/fs/f2fs/<disk>/inject_type |
| 231 | Date: May 2016 |
| 232 | Contact: "Sheng Yong" <shengyong1@huawei.com> |
| 233 | Description: Controls the injection type of arbitrary faults. |
| 234 | |
| 235 | What: /sys/fs/f2fs/<disk>/dirty_segments |
| 236 | Date: October 2017 |
| 237 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 238 | Description: Shows the number of dirty segments. |
| 239 | |
| 240 | What: /sys/fs/f2fs/<disk>/reserved_blocks |
| 241 | Date: June 2017 |
| 242 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 243 | Description: Controls target reserved blocks in system, the threshold |
| 244 | is soft, it could exceed current available user space. |
| 245 | |
| 246 | What: /sys/fs/f2fs/<disk>/current_reserved_blocks |
| 247 | Date: October 2017 |
| 248 | Contact: "Yunlong Song" <yunlong.song@huawei.com> |
| 249 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 250 | Description: Shows current reserved blocks in system, it may be temporarily |
| 251 | smaller than target_reserved_blocks, but will gradually |
| 252 | increase to target_reserved_blocks when more free blocks are |
| 253 | freed by user later. |
| 254 | |
| 255 | What: /sys/fs/f2fs/<disk>/gc_urgent |
| 256 | Date: August 2017 |
| 257 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 258 | Description: Do background GC agressively when set. When gc_urgent = 1, |
| 259 | background thread starts to do GC by given gc_urgent_sleep_time |
| 260 | interval. When gc_urgent = 2, F2FS will lower the bar of |
| 261 | checking idle in order to process outstanding discard commands |
| 262 | and GC a little bit aggressively. It is set to 0 by default. |
| 263 | |
| 264 | What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time |
| 265 | Date: August 2017 |
| 266 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 267 | Description: Controls sleep time of GC urgent mode. Set to 500ms by default. |
| 268 | |
| 269 | What: /sys/fs/f2fs/<disk>/readdir_ra |
| 270 | Date: November 2017 |
| 271 | Contact: "Sheng Yong" <shengyong1@huawei.com> |
| 272 | Description: Controls readahead inode block in readdir. Enabled by default. |
| 273 | |
| 274 | What: /sys/fs/f2fs/<disk>/gc_pin_file_thresh |
| 275 | Date: January 2018 |
| 276 | Contact: Jaegeuk Kim <jaegeuk@kernel.org> |
| 277 | Description: This indicates how many GC can be failed for the pinned |
| 278 | file. If it exceeds this, F2FS doesn't guarantee its pinning |
| 279 | state. 2048 trials is set by default. |
| 280 | |
| 281 | What: /sys/fs/f2fs/<disk>/extension_list |
| 282 | Date: Feburary 2018 |
| 283 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 284 | Description: Used to control configure extension list: |
| 285 | - Query: cat /sys/fs/f2fs/<disk>/extension_list |
| 286 | - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list |
| 287 | - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list |
| 288 | - [h] means add/del hot file extension |
| 289 | - [c] means add/del cold file extension |
| 290 | |
| 291 | What: /sys/fs/f2fs/<disk>/unusable |
| 292 | Date April 2019 |
| 293 | Contact: "Daniel Rosenberg" <drosen@google.com> |
| 294 | Description: If checkpoint=disable, it displays the number of blocks that |
| 295 | are unusable. |
| 296 | If checkpoint=enable it displays the number of blocks that |
| 297 | would be unusable if checkpoint=disable were to be set. |
| 298 | |
| 299 | What: /sys/fs/f2fs/<disk>/encoding |
| 300 | Date July 2019 |
| 301 | Contact: "Daniel Rosenberg" <drosen@google.com> |
| 302 | Description: Displays name and version of the encoding set for the filesystem. |
| 303 | If no encoding is set, displays (none) |
| 304 | |
| 305 | What: /sys/fs/f2fs/<disk>/free_segments |
| 306 | Date: September 2019 |
| 307 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 308 | Description: Number of free segments in disk. |
| 309 | |
| 310 | What: /sys/fs/f2fs/<disk>/cp_foreground_calls |
| 311 | Date: September 2019 |
| 312 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 313 | Description: Number of checkpoint operations performed on demand. Available when |
| 314 | CONFIG_F2FS_STAT_FS=y. |
| 315 | |
| 316 | What: /sys/fs/f2fs/<disk>/cp_background_calls |
| 317 | Date: September 2019 |
| 318 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 319 | Description: Number of checkpoint operations performed in the background to |
| 320 | free segments. Available when CONFIG_F2FS_STAT_FS=y. |
| 321 | |
| 322 | What: /sys/fs/f2fs/<disk>/gc_foreground_calls |
| 323 | Date: September 2019 |
| 324 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 325 | Description: Number of garbage collection operations performed on demand. |
| 326 | Available when CONFIG_F2FS_STAT_FS=y. |
| 327 | |
| 328 | What: /sys/fs/f2fs/<disk>/gc_background_calls |
| 329 | Date: September 2019 |
| 330 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 331 | Description: Number of garbage collection operations triggered in background. |
| 332 | Available when CONFIG_F2FS_STAT_FS=y. |
| 333 | |
| 334 | What: /sys/fs/f2fs/<disk>/moved_blocks_foreground |
| 335 | Date: September 2019 |
| 336 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 337 | Description: Number of blocks moved by garbage collection in foreground. |
| 338 | Available when CONFIG_F2FS_STAT_FS=y. |
| 339 | |
| 340 | What: /sys/fs/f2fs/<disk>/moved_blocks_background |
| 341 | Date: September 2019 |
| 342 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 343 | Description: Number of blocks moved by garbage collection in background. |
| 344 | Available when CONFIG_F2FS_STAT_FS=y. |
| 345 | |
| 346 | What: /sys/fs/f2fs/<disk>/avg_vblocks |
| 347 | Date: September 2019 |
| 348 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 349 | Description: Average number of valid blocks. |
| 350 | Available when CONFIG_F2FS_STAT_FS=y. |
| 351 | |
| 352 | What: /sys/fs/f2fs/<disk>/mounted_time_sec |
| 353 | Date: February 2020 |
| 354 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 355 | Description: Show the mounted time in secs of this partition. |
| 356 | |
| 357 | What: /sys/fs/f2fs/<disk>/data_io_flag |
| 358 | Date: April 2020 |
| 359 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 360 | Description: Give a way to attach REQ_META|FUA to data writes |
| 361 | given temperature-based bits. Now the bits indicate: |
| 362 | * REQ_META | REQ_FUA | |
| 363 | * 5 | 4 | 3 | 2 | 1 | 0 | |
| 364 | * Cold | Warm | Hot | Cold | Warm | Hot | |
| 365 | |
| 366 | What: /sys/fs/f2fs/<disk>/node_io_flag |
| 367 | Date: June 2020 |
| 368 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 369 | Description: Give a way to attach REQ_META|FUA to node writes |
| 370 | given temperature-based bits. Now the bits indicate: |
| 371 | * REQ_META | REQ_FUA | |
| 372 | * 5 | 4 | 3 | 2 | 1 | 0 | |
| 373 | * Cold | Warm | Hot | Cold | Warm | Hot | |
| 374 | |
| 375 | What: /sys/fs/f2fs/<disk>/iostat_period_ms |
| 376 | Date: April 2020 |
| 377 | Contact: "Daeho Jeong" <daehojeong@google.com> |
| 378 | Description: Give a way to change iostat_period time. 3secs by default. |
| 379 | The new iostat trace gives stats gap given the period. |
| 380 | What: /sys/fs/f2fs/<disk>/max_io_bytes |
| 381 | Date: December 2020 |
| 382 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 383 | Description: This gives a control to limit the bio size in f2fs. |
| 384 | Default is zero, which will follow underlying block layer limit, |
| 385 | whereas, if it has a certain bytes value, f2fs won't submit a |
| 386 | bio larger than that size. |
| 387 | |
| 388 | What: /sys/fs/f2fs/<disk>/stat/sb_status |
| 389 | Date: December 2020 |
| 390 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 391 | Description: Show status of f2fs superblock in real time. |
| 392 | |
| 393 | ====== ===================== ================================= |
| 394 | value sb status macro description |
| 395 | 0x1 SBI_IS_DIRTY dirty flag for checkpoint |
| 396 | 0x2 SBI_IS_CLOSE specify unmounting |
| 397 | 0x4 SBI_NEED_FSCK need fsck.f2fs to fix |
| 398 | 0x8 SBI_POR_DOING recovery is doing or not |
| 399 | 0x10 SBI_NEED_SB_WRITE need to recover superblock |
| 400 | 0x20 SBI_NEED_CP need to checkpoint |
| 401 | 0x40 SBI_IS_SHUTDOWN shutdown by ioctl |
| 402 | 0x80 SBI_IS_RECOVERED recovered orphan/data |
| 403 | 0x100 SBI_CP_DISABLED CP was disabled last mount |
| 404 | 0x200 SBI_CP_DISABLED_QUICK CP was disabled quickly |
| 405 | 0x400 SBI_QUOTA_NEED_FLUSH need to flush quota info in CP |
| 406 | 0x800 SBI_QUOTA_SKIP_FLUSH skip flushing quota in current CP |
| 407 | 0x1000 SBI_QUOTA_NEED_REPAIR quota file may be corrupted |
| 408 | 0x2000 SBI_IS_RESIZEFS resizefs is in process |
| 409 | ====== ===================== ================================= |
| 410 | |
| 411 | What: /sys/fs/f2fs/<disk>/ckpt_thread_ioprio |
| 412 | Date: January 2021 |
| 413 | Contact: "Daeho Jeong" <daehojeong@google.com> |
| 414 | Description: Give a way to change checkpoint merge daemon's io priority. |
| 415 | Its default value is "be,3", which means "BE" I/O class and |
| 416 | I/O priority "3". We can select the class between "rt" and "be", |
| 417 | and set the I/O priority within valid range of it. "," delimiter |
| 418 | is necessary in between I/O class and priority number. |
| 419 | |
| 420 | What: /sys/fs/f2fs/<disk>/ovp_segments |
| 421 | Date: March 2021 |
| 422 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 423 | Description: Shows the number of overprovision segments. |
| 424 | |
| 425 | What: /sys/fs/f2fs/<disk>/compr_written_block |
| 426 | Date: March 2021 |
| 427 | Contact: "Daeho Jeong" <daehojeong@google.com> |
| 428 | Description: Show the block count written after compression since mount. Note |
| 429 | that when the compressed blocks are deleted, this count doesn't |
| 430 | decrease. If you write "0" here, you can initialize |
| 431 | compr_written_block and compr_saved_block to "0". |
| 432 | |
| 433 | What: /sys/fs/f2fs/<disk>/compr_saved_block |
| 434 | Date: March 2021 |
| 435 | Contact: "Daeho Jeong" <daehojeong@google.com> |
| 436 | Description: Show the saved block count with compression since mount. Note |
| 437 | that when the compressed blocks are deleted, this count doesn't |
| 438 | decrease. If you write "0" here, you can initialize |
| 439 | compr_written_block and compr_saved_block to "0". |
| 440 | |
| 441 | What: /sys/fs/f2fs/<disk>/compr_new_inode |
| 442 | Date: March 2021 |
| 443 | Contact: "Daeho Jeong" <daehojeong@google.com> |
| 444 | Description: Show the count of inode newly enabled for compression since mount. |
| 445 | Note that when the compression is disabled for the files, this count |
| 446 | doesn't decrease. If you write "0" here, you can initialize |
| 447 | compr_new_inode to "0". |
| 448 | |
| 449 | What: /sys/fs/f2fs/<disk>/atgc_candidate_ratio |
| 450 | Date: May 2021 |
| 451 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 452 | Description: When ATGC is on, it controls candidate ratio in order to limit total |
| 453 | number of potential victim in all candidates, the value should be in |
| 454 | range of [0, 100], by default it was initialized as 20(%). |
| 455 | |
| 456 | What: /sys/fs/f2fs/<disk>/atgc_candidate_count |
| 457 | Date: May 2021 |
| 458 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 459 | Description: When ATGC is on, it controls candidate count in order to limit total |
| 460 | number of potential victim in all candidates, by default it was |
| 461 | initialized as 10 (sections). |
| 462 | |
| 463 | What: /sys/fs/f2fs/<disk>/atgc_age_weight |
| 464 | Date: May 2021 |
| 465 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 466 | Description: When ATGC is on, it controls age weight to balance weight proportion |
| 467 | in between aging and valid blocks, the value should be in range of |
| 468 | [0, 100], by default it was initialized as 60(%). |
| 469 | |
| 470 | What: /sys/fs/f2fs/<disk>/atgc_age_threshold |
| 471 | Date: May 2021 |
| 472 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 473 | Description: When ATGC is on, it controls age threshold to bypass GCing young |
| 474 | candidates whose age is not beyond the threshold, by default it was |
| 475 | initialized as 604800 seconds (equals to 7 days). |