1What: /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. 21 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. 27 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 47What: /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 54What: /sys/fs/f2fs/<disk>/min_seq_blocks 55Date: August 2018 56Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 57Description: 58 Controls the dirty page count condition for batched sequential 59 writes in ->writepages. 60 61 62What: /sys/fs/f2fs/<disk>/min_hot_blocks 63Date: March 2017 64Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 65Description: 66 Controls the dirty page count condition for redefining hot data. 67 68What: /sys/fs/f2fs/<disk>/min_ssr_sections 69Date: October 2017 70Contact: "Chao Yu" <yuchao0@huawei.com> 71Description: 72 Controls the fee section threshold to trigger SSR allocation. 73 74What: /sys/fs/f2fs/<disk>/max_small_discards 75Date: November 2013 76Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 77Description: 78 Controls the issue rate of small discard commands. 79 80What: /sys/fs/f2fs/<disk>/discard_granularity 81Date: July 2017 82Contact: "Chao Yu" <yuchao0@huawei.com> 83Description: 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 87 of [1, 512]. 88 89What: /sys/fs/f2fs/<disk>/max_victim_search 90Date: January 2014 91Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 92Description: 93 Controls the number of trials to find a victim segment. 94 95What: /sys/fs/f2fs/<disk>/migration_granularity 96Date: October 2018 97Contact: "Chao Yu" <yuchao0@huawei.com> 98Description: 99 Controls migration granularity of garbage collection on large 100 section, it can let GC move partial segment{s} of one section 101 in one GC cycle, so that dispersing heavy overhead GC to 102 multiple lightweight one. 103 104What: /sys/fs/f2fs/<disk>/dir_level 105Date: March 2014 106Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 107Description: 108 Controls the directory level for large directory. 109 110What: /sys/fs/f2fs/<disk>/ram_thresh 111Date: March 2014 112Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 113Description: 114 Controls the memory footprint used by f2fs. 115 116What: /sys/fs/f2fs/<disk>/batched_trim_sections 117Date: February 2015 118Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 119Description: 120 Controls the trimming rate in batch mode. 121 <deprecated> 122 123What: /sys/fs/f2fs/<disk>/cp_interval 124Date: October 2015 125Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 126Description: 127 Controls the checkpoint timing. 128 129What: /sys/fs/f2fs/<disk>/idle_interval 130Date: January 2016 131Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 132Description: 133 Controls the idle timing for all paths other than 134 discard and gc path. 135 136What: /sys/fs/f2fs/<disk>/discard_idle_interval 137Date: September 2018 138Contact: "Chao Yu" <yuchao0@huawei.com> 139Contact: "Sahitya Tummala" <stummala@codeaurora.org> 140Description: 141 Controls the idle timing for discard path. 142 143What: /sys/fs/f2fs/<disk>/gc_idle_interval 144Date: September 2018 145Contact: "Chao Yu" <yuchao0@huawei.com> 146Contact: "Sahitya Tummala" <stummala@codeaurora.org> 147Description: 148 Controls the idle timing for gc path. 149 150What: /sys/fs/f2fs/<disk>/iostat_enable 151Date: August 2017 152Contact: "Chao Yu" <yuchao0@huawei.com> 153Description: 154 Controls to enable/disable IO stat. 155 156What: /sys/fs/f2fs/<disk>/ra_nid_pages 157Date: October 2015 158Contact: "Chao Yu" <chao2.yu@samsung.com> 159Description: 160 Controls the count of nid pages to be readaheaded. 161 162What: /sys/fs/f2fs/<disk>/dirty_nats_ratio 163Date: January 2016 164Contact: "Chao Yu" <chao2.yu@samsung.com> 165Description: 166 Controls dirty nat entries ratio threshold, if current 167 ratio exceeds configured threshold, checkpoint will 168 be triggered for flushing dirty nat entries. 169 170What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes 171Date: January 2016 172Contact: "Shuoran Liu" <liushuoran@huawei.com> 173Description: 174 Shows total written kbytes issued to disk. 175 176What: /sys/fs/f2fs/<disk>/features 177Date: July 2017 178Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 179Description: 180 Shows all enabled features in current device. 181 182What: /sys/fs/f2fs/<disk>/inject_rate 183Date: May 2016 184Contact: "Sheng Yong" <shengyong1@huawei.com> 185Description: 186 Controls the injection rate. 187 188What: /sys/fs/f2fs/<disk>/inject_type 189Date: May 2016 190Contact: "Sheng Yong" <shengyong1@huawei.com> 191Description: 192 Controls the injection type. 193 194What: /sys/fs/f2fs/<disk>/reserved_blocks 195Date: June 2017 196Contact: "Chao Yu" <yuchao0@huawei.com> 197Description: 198 Controls target reserved blocks in system, the threshold 199 is soft, it could exceed current available user space. 200 201What: /sys/fs/f2fs/<disk>/current_reserved_blocks 202Date: October 2017 203Contact: "Yunlong Song" <yunlong.song@huawei.com> 204Contact: "Chao Yu" <yuchao0@huawei.com> 205Description: 206 Shows current reserved blocks in system, it may be temporarily 207 smaller than target_reserved_blocks, but will gradually 208 increase to target_reserved_blocks when more free blocks are 209 freed by user later. 210 211What: /sys/fs/f2fs/<disk>/gc_urgent 212Date: August 2017 213Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 214Description: 215 Do background GC agressively 216 217What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time 218Date: August 2017 219Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 220Description: 221 Controls sleep time of GC urgent mode 222 223What: /sys/fs/f2fs/<disk>/readdir_ra 224Date: November 2017 225Contact: "Sheng Yong" <shengyong1@huawei.com> 226Description: 227 Controls readahead inode block in readdir. 228 229What: /sys/fs/f2fs/<disk>/extension_list 230Date: Feburary 2018 231Contact: "Chao Yu" <yuchao0@huawei.com> 232Description: 233 Used to control configure extension list: 234 - Query: cat /sys/fs/f2fs/<disk>/extension_list 235 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list 236 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list 237 - [h] means add/del hot file extension 238 - [c] means add/del cold file extension 239