18c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_max_sleep_time 28c2ecf20Sopenharmony_ciDate: July 2013 38c2ecf20Sopenharmony_ciContact: "Namjae Jeon" <namjae.jeon@samsung.com> 48c2ecf20Sopenharmony_ciDescription: Controls the maximum sleep time for gc_thread. Time 58c2ecf20Sopenharmony_ci is in milliseconds. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_min_sleep_time 88c2ecf20Sopenharmony_ciDate: July 2013 98c2ecf20Sopenharmony_ciContact: "Namjae Jeon" <namjae.jeon@samsung.com> 108c2ecf20Sopenharmony_ciDescription: Controls the minimum sleep time for gc_thread. Time 118c2ecf20Sopenharmony_ci is in milliseconds. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time 148c2ecf20Sopenharmony_ciDate: July 2013 158c2ecf20Sopenharmony_ciContact: "Namjae Jeon" <namjae.jeon@samsung.com> 168c2ecf20Sopenharmony_ciDescription: Controls the default sleep time for gc_thread. Time 178c2ecf20Sopenharmony_ci is in milliseconds. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_idle 208c2ecf20Sopenharmony_ciDate: July 2013 218c2ecf20Sopenharmony_ciContact: "Namjae Jeon" <namjae.jeon@samsung.com> 228c2ecf20Sopenharmony_ciDescription: Controls the victim selection policy for garbage collection. 238c2ecf20Sopenharmony_ci Setting gc_idle = 0(default) will disable this option. Setting: 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci =========== =============================================== 268c2ecf20Sopenharmony_ci gc_idle = 1 will select the Cost Benefit approach & setting 278c2ecf20Sopenharmony_ci gc_idle = 2 will select the greedy approach & setting 288c2ecf20Sopenharmony_ci gc_idle = 3 will select the age-threshold based approach. 298c2ecf20Sopenharmony_ci =========== =============================================== 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/reclaim_segments 328c2ecf20Sopenharmony_ciDate: October 2013 338c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 348c2ecf20Sopenharmony_ciDescription: This parameter controls the number of prefree segments to be 358c2ecf20Sopenharmony_ci reclaimed. If the number of prefree segments is larger than 368c2ecf20Sopenharmony_ci the number of segments in the proportion to the percentage 378c2ecf20Sopenharmony_ci over total volume size, f2fs tries to conduct checkpoint to 388c2ecf20Sopenharmony_ci reclaim the prefree segments to free segments. 398c2ecf20Sopenharmony_ci By default, 5% over total # of segments. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/main_blkaddr 428c2ecf20Sopenharmony_ciDate: November 2019 438c2ecf20Sopenharmony_ciContact: "Ramon Pantin" <pantin@google.com> 448c2ecf20Sopenharmony_ciDescription: 458c2ecf20Sopenharmony_ci Shows first block address of MAIN area. 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/ipu_policy 488c2ecf20Sopenharmony_ciDate: November 2013 498c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 508c2ecf20Sopenharmony_ciDescription: Controls the in-place-update policy. 518c2ecf20Sopenharmony_ci updates in f2fs. User can set: 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci ==== ================= 548c2ecf20Sopenharmony_ci 0x01 F2FS_IPU_FORCE 558c2ecf20Sopenharmony_ci 0x02 F2FS_IPU_SSR 568c2ecf20Sopenharmony_ci 0x04 F2FS_IPU_UTIL 578c2ecf20Sopenharmony_ci 0x08 F2FS_IPU_SSR_UTIL 588c2ecf20Sopenharmony_ci 0x10 F2FS_IPU_FSYNC 598c2ecf20Sopenharmony_ci 0x20 F2FS_IPU_ASYNC, 608c2ecf20Sopenharmony_ci 0x40 F2FS_IPU_NOCACHE 618c2ecf20Sopenharmony_ci ==== ================= 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci Refer segment.h for details. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/min_ipu_util 668c2ecf20Sopenharmony_ciDate: November 2013 678c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 688c2ecf20Sopenharmony_ciDescription: Controls the FS utilization condition for the in-place-update 698c2ecf20Sopenharmony_ci policies. It is used by F2FS_IPU_UTIL and F2FS_IPU_SSR_UTIL policies. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/min_fsync_blocks 728c2ecf20Sopenharmony_ciDate: September 2014 738c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 748c2ecf20Sopenharmony_ciDescription: Controls the dirty page count condition for the in-place-update 758c2ecf20Sopenharmony_ci policies. 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/min_seq_blocks 788c2ecf20Sopenharmony_ciDate: August 2018 798c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 808c2ecf20Sopenharmony_ciDescription: Controls the dirty page count condition for batched sequential 818c2ecf20Sopenharmony_ci writes in writepages. 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/min_hot_blocks 848c2ecf20Sopenharmony_ciDate: March 2017 858c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 868c2ecf20Sopenharmony_ciDescription: Controls the dirty page count condition for redefining hot data. 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/min_ssr_sections 898c2ecf20Sopenharmony_ciDate: October 2017 908c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 918c2ecf20Sopenharmony_ciDescription: Controls the free section threshold to trigger SSR allocation. 928c2ecf20Sopenharmony_ci If this is large, SSR mode will be enabled early. 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/max_small_discards 958c2ecf20Sopenharmony_ciDate: November 2013 968c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 978c2ecf20Sopenharmony_ciDescription: Controls the issue rate of discard commands that consist of small 988c2ecf20Sopenharmony_ci blocks less than 2MB. The candidates to be discarded are cached until 998c2ecf20Sopenharmony_ci checkpoint is triggered, and issued during the checkpoint. 1008c2ecf20Sopenharmony_ci By default, it is disabled with 0. 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/discard_granularity 1038c2ecf20Sopenharmony_ciDate: July 2017 1048c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 1058c2ecf20Sopenharmony_ciDescription: Controls discard granularity of inner discard thread. Inner thread 1068c2ecf20Sopenharmony_ci will not issue discards with size that is smaller than granularity. 1078c2ecf20Sopenharmony_ci The unit size is one block(4KB), now only support configuring 1088c2ecf20Sopenharmony_ci in range of [1, 512]. Default value is 4(=16KB). 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/umount_discard_timeout 1118c2ecf20Sopenharmony_ciDate: January 2019 1128c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 1138c2ecf20Sopenharmony_ciDescription: Set timeout to issue discard commands during umount. 1148c2ecf20Sopenharmony_ci Default: 5 secs 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/max_victim_search 1178c2ecf20Sopenharmony_ciDate: January 2014 1188c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 1198c2ecf20Sopenharmony_ciDescription: Controls the number of trials to find a victim segment 1208c2ecf20Sopenharmony_ci when conducting SSR and cleaning operations. The default value 1218c2ecf20Sopenharmony_ci is 4096 which covers 8GB block address range. 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/migration_granularity 1248c2ecf20Sopenharmony_ciDate: October 2018 1258c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 1268c2ecf20Sopenharmony_ciDescription: Controls migration granularity of garbage collection on large 1278c2ecf20Sopenharmony_ci section, it can let GC move partial segment{s} of one section 1288c2ecf20Sopenharmony_ci in one GC cycle, so that dispersing heavy overhead GC to 1298c2ecf20Sopenharmony_ci multiple lightweight one. 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/dir_level 1328c2ecf20Sopenharmony_ciDate: March 2014 1338c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 1348c2ecf20Sopenharmony_ciDescription: Controls the directory level for large directory. If a 1358c2ecf20Sopenharmony_ci directory has a number of files, it can reduce the file lookup 1368c2ecf20Sopenharmony_ci latency by increasing this dir_level value. Otherwise, it 1378c2ecf20Sopenharmony_ci needs to decrease this value to reduce the space overhead. 1388c2ecf20Sopenharmony_ci The default value is 0. 1398c2ecf20Sopenharmony_ci 1408c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/ram_thresh 1418c2ecf20Sopenharmony_ciDate: March 2014 1428c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 1438c2ecf20Sopenharmony_ciDescription: Controls the memory footprint used by free nids and cached 1448c2ecf20Sopenharmony_ci nat entries. By default, 1 is set, which indicates 1458c2ecf20Sopenharmony_ci 10 MB / 1 GB RAM. 1468c2ecf20Sopenharmony_ci 1478c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/batched_trim_sections 1488c2ecf20Sopenharmony_ciDate: February 2015 1498c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 1508c2ecf20Sopenharmony_ciDescription: Controls the trimming rate in batch mode. 1518c2ecf20Sopenharmony_ci <deprecated> 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/cp_interval 1548c2ecf20Sopenharmony_ciDate: October 2015 1558c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 1568c2ecf20Sopenharmony_ciDescription: Controls the checkpoint timing, set to 60 seconds by default. 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/idle_interval 1598c2ecf20Sopenharmony_ciDate: January 2016 1608c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 1618c2ecf20Sopenharmony_ciDescription: Controls the idle timing of system, if there is no FS operation 1628c2ecf20Sopenharmony_ci during given interval. 1638c2ecf20Sopenharmony_ci Set to 5 seconds by default. 1648c2ecf20Sopenharmony_ci 1658c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/discard_idle_interval 1668c2ecf20Sopenharmony_ciDate: September 2018 1678c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 1688c2ecf20Sopenharmony_ciContact: "Sahitya Tummala" <stummala@codeaurora.org> 1698c2ecf20Sopenharmony_ciDescription: Controls the idle timing of discard thread given 1708c2ecf20Sopenharmony_ci this time interval. 1718c2ecf20Sopenharmony_ci Default is 5 secs. 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_idle_interval 1748c2ecf20Sopenharmony_ciDate: September 2018 1758c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 1768c2ecf20Sopenharmony_ciContact: "Sahitya Tummala" <stummala@codeaurora.org> 1778c2ecf20Sopenharmony_ciDescription: Controls the idle timing for gc path. Set to 5 seconds by default. 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/iostat_enable 1808c2ecf20Sopenharmony_ciDate: August 2017 1818c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 1828c2ecf20Sopenharmony_ciDescription: Controls to enable/disable IO stat. 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/ra_nid_pages 1858c2ecf20Sopenharmony_ciDate: October 2015 1868c2ecf20Sopenharmony_ciContact: "Chao Yu" <chao2.yu@samsung.com> 1878c2ecf20Sopenharmony_ciDescription: Controls the count of nid pages to be readaheaded. 1888c2ecf20Sopenharmony_ci When building free nids, F2FS reads NAT blocks ahead for 1898c2ecf20Sopenharmony_ci speed up. Default is 0. 1908c2ecf20Sopenharmony_ci 1918c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/dirty_nats_ratio 1928c2ecf20Sopenharmony_ciDate: January 2016 1938c2ecf20Sopenharmony_ciContact: "Chao Yu" <chao2.yu@samsung.com> 1948c2ecf20Sopenharmony_ciDescription: Controls dirty nat entries ratio threshold, if current 1958c2ecf20Sopenharmony_ci ratio exceeds configured threshold, checkpoint will 1968c2ecf20Sopenharmony_ci be triggered for flushing dirty nat entries. 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/lifetime_write_kbytes 1998c2ecf20Sopenharmony_ciDate: January 2016 2008c2ecf20Sopenharmony_ciContact: "Shuoran Liu" <liushuoran@huawei.com> 2018c2ecf20Sopenharmony_ciDescription: Shows total written kbytes issued to disk. 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/features 2048c2ecf20Sopenharmony_ciDate: July 2017 2058c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 2068c2ecf20Sopenharmony_ciDescription: Shows all enabled features in current device. 2078c2ecf20Sopenharmony_ci 2088c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/inject_rate 2098c2ecf20Sopenharmony_ciDate: May 2016 2108c2ecf20Sopenharmony_ciContact: "Sheng Yong" <shengyong1@huawei.com> 2118c2ecf20Sopenharmony_ciDescription: Controls the injection rate of arbitrary faults. 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/inject_type 2148c2ecf20Sopenharmony_ciDate: May 2016 2158c2ecf20Sopenharmony_ciContact: "Sheng Yong" <shengyong1@huawei.com> 2168c2ecf20Sopenharmony_ciDescription: Controls the injection type of arbitrary faults. 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/dirty_segments 2198c2ecf20Sopenharmony_ciDate: October 2017 2208c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 2218c2ecf20Sopenharmony_ciDescription: Shows the number of dirty segments. 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/reserved_blocks 2248c2ecf20Sopenharmony_ciDate: June 2017 2258c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 2268c2ecf20Sopenharmony_ciDescription: Controls target reserved blocks in system, the threshold 2278c2ecf20Sopenharmony_ci is soft, it could exceed current available user space. 2288c2ecf20Sopenharmony_ci 2298c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/current_reserved_blocks 2308c2ecf20Sopenharmony_ciDate: October 2017 2318c2ecf20Sopenharmony_ciContact: "Yunlong Song" <yunlong.song@huawei.com> 2328c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 2338c2ecf20Sopenharmony_ciDescription: Shows current reserved blocks in system, it may be temporarily 2348c2ecf20Sopenharmony_ci smaller than target_reserved_blocks, but will gradually 2358c2ecf20Sopenharmony_ci increase to target_reserved_blocks when more free blocks are 2368c2ecf20Sopenharmony_ci freed by user later. 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_urgent 2398c2ecf20Sopenharmony_ciDate: August 2017 2408c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 2418c2ecf20Sopenharmony_ciDescription: Do background GC agressively when set. When gc_urgent = 1, 2428c2ecf20Sopenharmony_ci background thread starts to do GC by given gc_urgent_sleep_time 2438c2ecf20Sopenharmony_ci interval. When gc_urgent = 2, F2FS will lower the bar of 2448c2ecf20Sopenharmony_ci checking idle in order to process outstanding discard commands 2458c2ecf20Sopenharmony_ci and GC a little bit aggressively. It is set to 0 by default. 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time 2488c2ecf20Sopenharmony_ciDate: August 2017 2498c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 2508c2ecf20Sopenharmony_ciDescription: Controls sleep time of GC urgent mode. Set to 500ms by default. 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/readdir_ra 2538c2ecf20Sopenharmony_ciDate: November 2017 2548c2ecf20Sopenharmony_ciContact: "Sheng Yong" <shengyong1@huawei.com> 2558c2ecf20Sopenharmony_ciDescription: Controls readahead inode block in readdir. Enabled by default. 2568c2ecf20Sopenharmony_ci 2578c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_pin_file_thresh 2588c2ecf20Sopenharmony_ciDate: January 2018 2598c2ecf20Sopenharmony_ciContact: Jaegeuk Kim <jaegeuk@kernel.org> 2608c2ecf20Sopenharmony_ciDescription: This indicates how many GC can be failed for the pinned 2618c2ecf20Sopenharmony_ci file. If it exceeds this, F2FS doesn't guarantee its pinning 2628c2ecf20Sopenharmony_ci state. 2048 trials is set by default. 2638c2ecf20Sopenharmony_ci 2648c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/extension_list 2658c2ecf20Sopenharmony_ciDate: Feburary 2018 2668c2ecf20Sopenharmony_ciContact: "Chao Yu" <yuchao0@huawei.com> 2678c2ecf20Sopenharmony_ciDescription: Used to control configure extension list: 2688c2ecf20Sopenharmony_ci - Query: cat /sys/fs/f2fs/<disk>/extension_list 2698c2ecf20Sopenharmony_ci - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list 2708c2ecf20Sopenharmony_ci - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list 2718c2ecf20Sopenharmony_ci - [h] means add/del hot file extension 2728c2ecf20Sopenharmony_ci - [c] means add/del cold file extension 2738c2ecf20Sopenharmony_ci 2748c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/unusable 2758c2ecf20Sopenharmony_ciDate April 2019 2768c2ecf20Sopenharmony_ciContact: "Daniel Rosenberg" <drosen@google.com> 2778c2ecf20Sopenharmony_ciDescription: If checkpoint=disable, it displays the number of blocks that 2788c2ecf20Sopenharmony_ci are unusable. 2798c2ecf20Sopenharmony_ci If checkpoint=enable it displays the enumber of blocks that 2808c2ecf20Sopenharmony_ci would be unusable if checkpoint=disable were to be set. 2818c2ecf20Sopenharmony_ci 2828c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/encoding 2838c2ecf20Sopenharmony_ciDate July 2019 2848c2ecf20Sopenharmony_ciContact: "Daniel Rosenberg" <drosen@google.com> 2858c2ecf20Sopenharmony_ciDescription: Displays name and version of the encoding set for the filesystem. 2868c2ecf20Sopenharmony_ci If no encoding is set, displays (none) 2878c2ecf20Sopenharmony_ci 2888c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/free_segments 2898c2ecf20Sopenharmony_ciDate: September 2019 2908c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 2918c2ecf20Sopenharmony_ciDescription: Number of free segments in disk. 2928c2ecf20Sopenharmony_ci 2938c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/cp_foreground_calls 2948c2ecf20Sopenharmony_ciDate: September 2019 2958c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 2968c2ecf20Sopenharmony_ciDescription: Number of checkpoint operations performed on demand. Available when 2978c2ecf20Sopenharmony_ci CONFIG_F2FS_STAT_FS=y. 2988c2ecf20Sopenharmony_ci 2998c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/cp_background_calls 3008c2ecf20Sopenharmony_ciDate: September 2019 3018c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 3028c2ecf20Sopenharmony_ciDescription: Number of checkpoint operations performed in the background to 3038c2ecf20Sopenharmony_ci free segments. Available when CONFIG_F2FS_STAT_FS=y. 3048c2ecf20Sopenharmony_ci 3058c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_foreground_calls 3068c2ecf20Sopenharmony_ciDate: September 2019 3078c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 3088c2ecf20Sopenharmony_ciDescription: Number of garbage collection operations performed on demand. 3098c2ecf20Sopenharmony_ci Available when CONFIG_F2FS_STAT_FS=y. 3108c2ecf20Sopenharmony_ci 3118c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/gc_background_calls 3128c2ecf20Sopenharmony_ciDate: September 2019 3138c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 3148c2ecf20Sopenharmony_ciDescription: Number of garbage collection operations triggered in background. 3158c2ecf20Sopenharmony_ci Available when CONFIG_F2FS_STAT_FS=y. 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/moved_blocks_foreground 3188c2ecf20Sopenharmony_ciDate: September 2019 3198c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 3208c2ecf20Sopenharmony_ciDescription: Number of blocks moved by garbage collection in foreground. 3218c2ecf20Sopenharmony_ci Available when CONFIG_F2FS_STAT_FS=y. 3228c2ecf20Sopenharmony_ci 3238c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/moved_blocks_background 3248c2ecf20Sopenharmony_ciDate: September 2019 3258c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 3268c2ecf20Sopenharmony_ciDescription: Number of blocks moved by garbage collection in background. 3278c2ecf20Sopenharmony_ci Available when CONFIG_F2FS_STAT_FS=y. 3288c2ecf20Sopenharmony_ci 3298c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/avg_vblocks 3308c2ecf20Sopenharmony_ciDate: September 2019 3318c2ecf20Sopenharmony_ciContact: "Hridya Valsaraju" <hridya@google.com> 3328c2ecf20Sopenharmony_ciDescription: Average number of valid blocks. 3338c2ecf20Sopenharmony_ci Available when CONFIG_F2FS_STAT_FS=y. 3348c2ecf20Sopenharmony_ci 3358c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/mounted_time_sec 3368c2ecf20Sopenharmony_ciDate: February 2020 3378c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 3388c2ecf20Sopenharmony_ciDescription: Show the mounted time in secs of this partition. 3398c2ecf20Sopenharmony_ci 3408c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/data_io_flag 3418c2ecf20Sopenharmony_ciDate: April 2020 3428c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 3438c2ecf20Sopenharmony_ciDescription: Give a way to attach REQ_META|FUA to data writes 3448c2ecf20Sopenharmony_ci given temperature-based bits. Now the bits indicate: 3458c2ecf20Sopenharmony_ci 3468c2ecf20Sopenharmony_ci +-------------------+-------------------+ 3478c2ecf20Sopenharmony_ci | REQ_META | REQ_FUA | 3488c2ecf20Sopenharmony_ci +------+------+-----+------+------+-----+ 3498c2ecf20Sopenharmony_ci | 5 | 4 | 3 | 2 | 1 | 0 | 3508c2ecf20Sopenharmony_ci +------+------+-----+------+------+-----+ 3518c2ecf20Sopenharmony_ci | Cold | Warm | Hot | Cold | Warm | Hot | 3528c2ecf20Sopenharmony_ci +------+------+-----+------+------+-----+ 3538c2ecf20Sopenharmony_ci 3548c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/node_io_flag 3558c2ecf20Sopenharmony_ciDate: June 2020 3568c2ecf20Sopenharmony_ciContact: "Jaegeuk Kim" <jaegeuk@kernel.org> 3578c2ecf20Sopenharmony_ciDescription: Give a way to attach REQ_META|FUA to node writes 3588c2ecf20Sopenharmony_ci given temperature-based bits. Now the bits indicate: 3598c2ecf20Sopenharmony_ci 3608c2ecf20Sopenharmony_ci +-------------------+-------------------+ 3618c2ecf20Sopenharmony_ci | REQ_META | REQ_FUA | 3628c2ecf20Sopenharmony_ci +------+------+-----+------+------+-----+ 3638c2ecf20Sopenharmony_ci | 5 | 4 | 3 | 2 | 1 | 0 | 3648c2ecf20Sopenharmony_ci +------+------+-----+------+------+-----+ 3658c2ecf20Sopenharmony_ci | Cold | Warm | Hot | Cold | Warm | Hot | 3668c2ecf20Sopenharmony_ci +------+------+-----+------+------+-----+ 3678c2ecf20Sopenharmony_ci 3688c2ecf20Sopenharmony_ciWhat: /sys/fs/f2fs/<disk>/iostat_period_ms 3698c2ecf20Sopenharmony_ciDate: April 2020 3708c2ecf20Sopenharmony_ciContact: "Daeho Jeong" <daehojeong@google.com> 3718c2ecf20Sopenharmony_ciDescription: Give a way to change iostat_period time. 3secs by default. 3728c2ecf20Sopenharmony_ci The new iostat trace gives stats gap given the period. 373