1 What: /sys/fs/f2fs/<disk>/gc_max_sle 1 What: /sys/fs/f2fs/<disk>/gc_max_sleep_time 2 Date: July 2013 2 Date: July 2013 3 Contact: "Namjae Jeon" <namjae.jeon@sams 3 Contact: "Namjae Jeon" <namjae.jeon@samsung.com> 4 Description: Controls the maximum sleep tim 4 Description: Controls the maximum sleep time for gc_thread. Time 5 is in milliseconds. 5 is in milliseconds. 6 6 7 What: /sys/fs/f2fs/<disk>/gc_min_sle 7 What: /sys/fs/f2fs/<disk>/gc_min_sleep_time 8 Date: July 2013 8 Date: July 2013 9 Contact: "Namjae Jeon" <namjae.jeon@sams 9 Contact: "Namjae Jeon" <namjae.jeon@samsung.com> 10 Description: Controls the minimum sleep tim 10 Description: Controls the minimum sleep time for gc_thread. Time 11 is in milliseconds. 11 is in milliseconds. 12 12 13 What: /sys/fs/f2fs/<disk>/gc_no_gc_s 13 What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time 14 Date: July 2013 14 Date: July 2013 15 Contact: "Namjae Jeon" <namjae.jeon@sams 15 Contact: "Namjae Jeon" <namjae.jeon@samsung.com> 16 Description: Controls the default sleep tim 16 Description: Controls the default sleep time for gc_thread. Time 17 is in milliseconds. 17 is in milliseconds. 18 18 19 What: /sys/fs/f2fs/<disk>/gc_idle 19 What: /sys/fs/f2fs/<disk>/gc_idle 20 Date: July 2013 20 Date: July 2013 21 Contact: "Namjae Jeon" <namjae.jeon@sams 21 Contact: "Namjae Jeon" <namjae.jeon@samsung.com> 22 Description: Controls the victim selection 22 Description: Controls the victim selection policy for garbage collection. 23 Setting gc_idle = 0(default) w 23 Setting gc_idle = 0(default) will disable this option. Setting: 24 24 25 =========== ================= 25 =========== =============================================== 26 gc_idle = 1 will select the C 26 gc_idle = 1 will select the Cost Benefit approach & setting 27 gc_idle = 2 will select the g 27 gc_idle = 2 will select the greedy approach & setting 28 gc_idle = 3 will select the a 28 gc_idle = 3 will select the age-threshold based approach. 29 =========== ================= 29 =========== =============================================== 30 30 31 What: /sys/fs/f2fs/<disk>/reclaim_se 31 What: /sys/fs/f2fs/<disk>/reclaim_segments 32 Date: October 2013 32 Date: October 2013 33 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 33 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 34 Description: This parameter controls the nu 34 Description: This parameter controls the number of prefree segments to be 35 reclaimed. If the number of pr 35 reclaimed. If the number of prefree segments is larger than 36 the number of segments in the 36 the number of segments in the proportion to the percentage 37 over total volume size, f2fs t 37 over total volume size, f2fs tries to conduct checkpoint to 38 reclaim the prefree segments t 38 reclaim the prefree segments to free segments. 39 By default, 5% over total # of 39 By default, 5% over total # of segments. 40 40 41 What: /sys/fs/f2fs/<disk>/main_blkad 41 What: /sys/fs/f2fs/<disk>/main_blkaddr 42 Date: November 2019 42 Date: November 2019 43 Contact: "Ramon Pantin" <pantin@google.c 43 Contact: "Ramon Pantin" <pantin@google.com> 44 Description: Shows first block address of M !! 44 Description: >> 45 Shows first block address of MAIN area. 45 46 46 What: /sys/fs/f2fs/<disk>/ipu_policy 47 What: /sys/fs/f2fs/<disk>/ipu_policy 47 Date: November 2013 48 Date: November 2013 48 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 49 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 49 Description: Controls the in-place-update p 50 Description: Controls the in-place-update policy. 50 updates in f2fs. User can set: 51 updates in f2fs. User can set: 51 52 52 ===== =============== ======== !! 53 ==== ================= 53 value policy descript !! 54 0x01 F2FS_IPU_FORCE 54 0x00 DISABLE disable !! 55 0x02 F2FS_IPU_SSR 55 0x01 FORCE all the !! 56 0x04 F2FS_IPU_UTIL 56 0x02 SSR if SSR m !! 57 0x08 F2FS_IPU_SSR_UTIL 57 0x04 UTIL if FS ut !! 58 0x10 F2FS_IPU_FSYNC 58 0x08 SSR_UTIL if SSR m !! 59 0x20 F2FS_IPU_ASYNC, 59 threshol !! 60 0x40 F2FS_IPU_NOCACHE 60 0x10 FSYNC activate !! 61 ==== ================= 61 flash st << 62 # of dir << 63 (=defaul << 64 0x20 ASYNC do IPU g << 65 0x40 NOCACHE disable << 66 0x80 HONOR_OPU_WRITE use OPU << 67 FI_OPU_W << 68 ===== =============== ======== << 69 62 70 Refer segment.h for details. 63 Refer segment.h for details. 71 64 72 What: /sys/fs/f2fs/<disk>/min_ipu_ut 65 What: /sys/fs/f2fs/<disk>/min_ipu_util 73 Date: November 2013 66 Date: November 2013 74 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 67 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 75 Description: Controls the FS utilization co 68 Description: Controls the FS utilization condition for the in-place-update 76 policies. It is used by F2FS_I 69 policies. It is used by F2FS_IPU_UTIL and F2FS_IPU_SSR_UTIL policies. 77 70 78 What: /sys/fs/f2fs/<disk>/min_fsync_ 71 What: /sys/fs/f2fs/<disk>/min_fsync_blocks 79 Date: September 2014 72 Date: September 2014 80 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 73 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 81 Description: Controls the dirty page count 74 Description: Controls the dirty page count condition for the in-place-update 82 policies. 75 policies. 83 76 84 What: /sys/fs/f2fs/<disk>/min_seq_bl 77 What: /sys/fs/f2fs/<disk>/min_seq_blocks 85 Date: August 2018 78 Date: August 2018 86 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 79 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 87 Description: Controls the dirty page count 80 Description: Controls the dirty page count condition for batched sequential 88 writes in writepages. 81 writes in writepages. 89 82 90 What: /sys/fs/f2fs/<disk>/min_hot_bl 83 What: /sys/fs/f2fs/<disk>/min_hot_blocks 91 Date: March 2017 84 Date: March 2017 92 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 85 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 93 Description: Controls the dirty page count 86 Description: Controls the dirty page count condition for redefining hot data. 94 87 95 What: /sys/fs/f2fs/<disk>/min_ssr_se 88 What: /sys/fs/f2fs/<disk>/min_ssr_sections 96 Date: October 2017 89 Date: October 2017 97 Contact: "Chao Yu" <yuchao0@huawei.com> 90 Contact: "Chao Yu" <yuchao0@huawei.com> 98 Description: Controls the free section thre 91 Description: Controls the free section threshold to trigger SSR allocation. 99 If this is large, SSR mode wil 92 If this is large, SSR mode will be enabled early. 100 93 101 What: /sys/fs/f2fs/<disk>/max_small_ 94 What: /sys/fs/f2fs/<disk>/max_small_discards 102 Date: November 2013 95 Date: November 2013 103 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 96 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 104 Description: Controls the issue rate of dis 97 Description: Controls the issue rate of discard commands that consist of small 105 blocks less than 2MB. The cand !! 98 blocks less than 2MB. The candidates to be discarded are cached until 106 checkpoint, and issued by issu !! 99 checkpoint is triggered, and issued during the checkpoint. 107 It is enabled by default. !! 100 By default, it is disabled with 0. 108 << 109 What: /sys/fs/f2fs/<disk>/max_ordere << 110 Date: October 2022 << 111 Contact: "Yangtao Li" <frank.li@vivo.com << 112 Description: Controls the maximum ordered d << 113 Set it to 16 by default. << 114 << 115 What: /sys/fs/f2fs/<disk>/max_discar << 116 Date: December 2021 << 117 Contact: "Konstantin Vyshetsky" <vkon@go << 118 Description: Controls the number of discard << 119 Higher number will allow the d << 120 faster, at the cost of higher << 121 << 122 What: /sys/fs/f2fs/<disk>/min_discar << 123 Date: December 2021 << 124 Contact: "Konstantin Vyshetsky" <vkon@go << 125 Description: Controls the interval the disc << 126 issuing discard requests when << 127 no I/O aware interruptions occ << 128 << 129 What: /sys/fs/f2fs/<disk>/mid_discar << 130 Date: December 2021 << 131 Contact: "Konstantin Vyshetsky" <vkon@go << 132 Description: Controls the interval the disc << 133 issuing discard requests when << 134 an I/O aware interruption occu << 135 << 136 What: /sys/fs/f2fs/<disk>/max_discar << 137 Date: December 2021 << 138 Contact: "Konstantin Vyshetsky" <vkon@go << 139 Description: Controls the interval the disc << 140 no discard operations to be is << 141 101 142 What: /sys/fs/f2fs/<disk>/discard_gr 102 What: /sys/fs/f2fs/<disk>/discard_granularity 143 Date: July 2017 103 Date: July 2017 144 Contact: "Chao Yu" <yuchao0@huawei.com> 104 Contact: "Chao Yu" <yuchao0@huawei.com> 145 Description: Controls discard granularity o 105 Description: Controls discard granularity of inner discard thread. Inner thread 146 will not issue discards with s 106 will not issue discards with size that is smaller than granularity. 147 The unit size is one block(4KB 107 The unit size is one block(4KB), now only support configuring 148 in range of [1, 512]. Default !! 108 in range of [1, 512]. Default value is 4(=16KB). 149 For small devices, default val << 150 109 151 What: /sys/fs/f2fs/<disk>/umount_dis 110 What: /sys/fs/f2fs/<disk>/umount_discard_timeout 152 Date: January 2019 111 Date: January 2019 153 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 112 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 154 Description: Set timeout to issue discard c 113 Description: Set timeout to issue discard commands during umount. 155 Default: 5 secs 114 Default: 5 secs 156 115 157 What: /sys/fs/f2fs/<disk>/pending_di << 158 Date: November 2021 << 159 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o << 160 Description: Shows the number of pending di << 161 << 162 What: /sys/fs/f2fs/<disk>/max_victim 116 What: /sys/fs/f2fs/<disk>/max_victim_search 163 Date: January 2014 117 Date: January 2014 164 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 118 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 165 Description: Controls the number of trials 119 Description: Controls the number of trials to find a victim segment 166 when conducting SSR and cleani 120 when conducting SSR and cleaning operations. The default value 167 is 4096 which covers 8GB block 121 is 4096 which covers 8GB block address range. 168 122 169 What: /sys/fs/f2fs/<disk>/migration_ 123 What: /sys/fs/f2fs/<disk>/migration_granularity 170 Date: October 2018 124 Date: October 2018 171 Contact: "Chao Yu" <yuchao0@huawei.com> 125 Contact: "Chao Yu" <yuchao0@huawei.com> 172 Description: Controls migration granularity 126 Description: Controls migration granularity of garbage collection on large 173 section, it can let GC move pa 127 section, it can let GC move partial segment{s} of one section 174 in one GC cycle, so that dispe 128 in one GC cycle, so that dispersing heavy overhead GC to 175 multiple lightweight one. 129 multiple lightweight one. 176 130 177 What: /sys/fs/f2fs/<disk>/dir_level 131 What: /sys/fs/f2fs/<disk>/dir_level 178 Date: March 2014 132 Date: March 2014 179 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 133 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 180 Description: Controls the directory level f 134 Description: Controls the directory level for large directory. If a 181 directory has a number of file 135 directory has a number of files, it can reduce the file lookup 182 latency by increasing this dir 136 latency by increasing this dir_level value. Otherwise, it 183 needs to decrease this value t 137 needs to decrease this value to reduce the space overhead. 184 The default value is 0. 138 The default value is 0. 185 139 186 What: /sys/fs/f2fs/<disk>/ram_thresh 140 What: /sys/fs/f2fs/<disk>/ram_thresh 187 Date: March 2014 141 Date: March 2014 188 Contact: "Jaegeuk Kim" <jaegeuk.kim@sams 142 Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> 189 Description: Controls the memory footprint 143 Description: Controls the memory footprint used by free nids and cached 190 nat entries. By default, 1 is 144 nat entries. By default, 1 is set, which indicates 191 10 MB / 1 GB RAM. 145 10 MB / 1 GB RAM. 192 146 >> 147 What: /sys/fs/f2fs/<disk>/batched_trim_sections >> 148 Date: February 2015 >> 149 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> >> 150 Description: Controls the trimming rate in batch mode. >> 151 <deprecated> >> 152 193 What: /sys/fs/f2fs/<disk>/cp_interva 153 What: /sys/fs/f2fs/<disk>/cp_interval 194 Date: October 2015 154 Date: October 2015 195 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 155 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 196 Description: Controls the checkpoint timing 156 Description: Controls the checkpoint timing, set to 60 seconds by default. 197 157 198 What: /sys/fs/f2fs/<disk>/idle_inter 158 What: /sys/fs/f2fs/<disk>/idle_interval 199 Date: January 2016 159 Date: January 2016 200 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 160 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 201 Description: Controls the idle timing of sy 161 Description: Controls the idle timing of system, if there is no FS operation 202 during given interval. 162 during given interval. 203 Set to 5 seconds by default. 163 Set to 5 seconds by default. 204 164 205 What: /sys/fs/f2fs/<disk>/discard_id 165 What: /sys/fs/f2fs/<disk>/discard_idle_interval 206 Date: September 2018 166 Date: September 2018 207 Contact: "Chao Yu" <yuchao0@huawei.com> 167 Contact: "Chao Yu" <yuchao0@huawei.com> 208 Contact: "Sahitya Tummala" <quic_stummal !! 168 Contact: "Sahitya Tummala" <stummala@codeaurora.org> 209 Description: Controls the idle timing of di 169 Description: Controls the idle timing of discard thread given 210 this time interval. 170 this time interval. 211 Default is 5 secs. 171 Default is 5 secs. 212 172 213 What: /sys/fs/f2fs/<disk>/gc_idle_in 173 What: /sys/fs/f2fs/<disk>/gc_idle_interval 214 Date: September 2018 174 Date: September 2018 215 Contact: "Chao Yu" <yuchao0@huawei.com> 175 Contact: "Chao Yu" <yuchao0@huawei.com> 216 Contact: "Sahitya Tummala" <quic_stummal !! 176 Contact: "Sahitya Tummala" <stummala@codeaurora.org> 217 Description: Controls the idle timing for g 177 Description: Controls the idle timing for gc path. Set to 5 seconds by default. 218 178 219 What: /sys/fs/f2fs/<disk>/iostat_ena 179 What: /sys/fs/f2fs/<disk>/iostat_enable 220 Date: August 2017 180 Date: August 2017 221 Contact: "Chao Yu" <yuchao0@huawei.com> 181 Contact: "Chao Yu" <yuchao0@huawei.com> 222 Description: Controls to enable/disable IO 182 Description: Controls to enable/disable IO stat. 223 183 224 What: /sys/fs/f2fs/<disk>/ra_nid_pag 184 What: /sys/fs/f2fs/<disk>/ra_nid_pages 225 Date: October 2015 185 Date: October 2015 226 Contact: "Chao Yu" <chao2.yu@samsung.com 186 Contact: "Chao Yu" <chao2.yu@samsung.com> 227 Description: Controls the count of nid page 187 Description: Controls the count of nid pages to be readaheaded. 228 When building free nids, F2FS 188 When building free nids, F2FS reads NAT blocks ahead for 229 speed up. Default is 0. 189 speed up. Default is 0. 230 190 231 What: /sys/fs/f2fs/<disk>/dirty_nats 191 What: /sys/fs/f2fs/<disk>/dirty_nats_ratio 232 Date: January 2016 192 Date: January 2016 233 Contact: "Chao Yu" <chao2.yu@samsung.com 193 Contact: "Chao Yu" <chao2.yu@samsung.com> 234 Description: Controls dirty nat entries rat 194 Description: Controls dirty nat entries ratio threshold, if current 235 ratio exceeds configured thres 195 ratio exceeds configured threshold, checkpoint will 236 be triggered for flushing dirt 196 be triggered for flushing dirty nat entries. 237 197 238 What: /sys/fs/f2fs/<disk>/lifetime_w 198 What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes 239 Date: January 2016 199 Date: January 2016 240 Contact: "Shuoran Liu" <liushuoran@huawe 200 Contact: "Shuoran Liu" <liushuoran@huawei.com> 241 Description: Shows total written kbytes iss 201 Description: Shows total written kbytes issued to disk. 242 202 243 What: /sys/fs/f2fs/<disk>/features 203 What: /sys/fs/f2fs/<disk>/features 244 Date: July 2017 204 Date: July 2017 245 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 205 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 246 Description: <deprecated: should use /sys/f !! 206 Description: Shows all enabled features in current device. 247 Shows all enabled features in << 248 Supported features: << 249 encryption, blkzoned, extra_at << 250 flexible_inline_xattr, quota_i << 251 verity, sb_checksum, casefold, << 252 << 253 What: /sys/fs/f2fs/<disk>/feature_li << 254 Date: June 2021 << 255 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o << 256 Description: Expand /sys/fs/f2fs/<disk>/fea << 257 Supported on-disk features: << 258 encryption, block_zoned (aka b << 259 project_quota (aka projquota), << 260 flexible_inline_xattr, quota_i << 261 verity, sb_checksum, casefold, << 262 Note that, pin_file is moved i << 263 << 264 What: /sys/fs/f2fs/features/ << 265 Date: July 2017 << 266 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o << 267 Description: Shows all enabled kernel featu << 268 Supported features: << 269 encryption, block_zoned, extra << 270 inode_checksum, flexible_inlin << 271 inode_crtime, lost_found, veri << 272 casefold, readonly, compressio << 273 atomic_write, pin_file, encryp << 274 207 275 What: /sys/fs/f2fs/<disk>/inject_rat 208 What: /sys/fs/f2fs/<disk>/inject_rate 276 Date: May 2016 209 Date: May 2016 277 Contact: "Sheng Yong" <shengyong1@huawei 210 Contact: "Sheng Yong" <shengyong1@huawei.com> 278 Description: Controls the injection rate of 211 Description: Controls the injection rate of arbitrary faults. 279 212 280 What: /sys/fs/f2fs/<disk>/inject_typ 213 What: /sys/fs/f2fs/<disk>/inject_type 281 Date: May 2016 214 Date: May 2016 282 Contact: "Sheng Yong" <shengyong1@huawei 215 Contact: "Sheng Yong" <shengyong1@huawei.com> 283 Description: Controls the injection type of 216 Description: Controls the injection type of arbitrary faults. 284 217 285 What: /sys/fs/f2fs/<disk>/dirty_segm 218 What: /sys/fs/f2fs/<disk>/dirty_segments 286 Date: October 2017 219 Date: October 2017 287 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 220 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 288 Description: Shows the number of dirty segm 221 Description: Shows the number of dirty segments. 289 222 290 What: /sys/fs/f2fs/<disk>/reserved_b 223 What: /sys/fs/f2fs/<disk>/reserved_blocks 291 Date: June 2017 224 Date: June 2017 292 Contact: "Chao Yu" <yuchao0@huawei.com> 225 Contact: "Chao Yu" <yuchao0@huawei.com> 293 Description: Controls target reserved block 226 Description: Controls target reserved blocks in system, the threshold 294 is soft, it could exceed curre 227 is soft, it could exceed current available user space. 295 228 296 What: /sys/fs/f2fs/<disk>/current_re 229 What: /sys/fs/f2fs/<disk>/current_reserved_blocks 297 Date: October 2017 230 Date: October 2017 298 Contact: "Yunlong Song" <yunlong.song@hu 231 Contact: "Yunlong Song" <yunlong.song@huawei.com> 299 Contact: "Chao Yu" <yuchao0@huawei.com> 232 Contact: "Chao Yu" <yuchao0@huawei.com> 300 Description: Shows current reserved blocks 233 Description: Shows current reserved blocks in system, it may be temporarily 301 smaller than target_reserved_b 234 smaller than target_reserved_blocks, but will gradually 302 increase to target_reserved_bl 235 increase to target_reserved_blocks when more free blocks are 303 freed by user later. 236 freed by user later. 304 237 305 What: /sys/fs/f2fs/<disk>/gc_urgent 238 What: /sys/fs/f2fs/<disk>/gc_urgent 306 Date: August 2017 239 Date: August 2017 307 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 240 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 308 Description: Do background GC aggressively !! 241 Description: Do background GC agressively when set. When gc_urgent = 1, 309 gc urgent high(1): does GC for !! 242 background thread starts to do GC by given gc_urgent_sleep_time 310 gc_urgent_sleep_time and ignor !! 243 interval. When gc_urgent = 2, F2FS will lower the bar of 311 GC approach and turns SSR mode !! 244 checking idle in order to process outstanding discard commands 312 gc urgent low(2): lowers the b !! 245 and GC a little bit aggressively. It is set to 0 by default. 313 order to process outstanding d << 314 little bit aggressively. uses << 315 gc urgent mid(3): does GC forc << 316 gc_urgent_sleep_time and execu << 317 uses cost benefit GC approach. << 318 246 319 What: /sys/fs/f2fs/<disk>/gc_urgent_ 247 What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time 320 Date: August 2017 248 Date: August 2017 321 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 249 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 322 Description: Controls sleep time of GC urge 250 Description: Controls sleep time of GC urgent mode. Set to 500ms by default. 323 251 324 What: /sys/fs/f2fs/<disk>/readdir_ra 252 What: /sys/fs/f2fs/<disk>/readdir_ra 325 Date: November 2017 253 Date: November 2017 326 Contact: "Sheng Yong" <shengyong1@huawei 254 Contact: "Sheng Yong" <shengyong1@huawei.com> 327 Description: Controls readahead inode block 255 Description: Controls readahead inode block in readdir. Enabled by default. 328 256 329 What: /sys/fs/f2fs/<disk>/gc_pin_fil 257 What: /sys/fs/f2fs/<disk>/gc_pin_file_thresh 330 Date: January 2018 258 Date: January 2018 331 Contact: Jaegeuk Kim <jaegeuk@kernel.org 259 Contact: Jaegeuk Kim <jaegeuk@kernel.org> 332 Description: This indicates how many GC can 260 Description: This indicates how many GC can be failed for the pinned 333 file. If it exceeds this, F2FS 261 file. If it exceeds this, F2FS doesn't guarantee its pinning 334 state. 2048 trials is set by d !! 262 state. 2048 trials is set by default. 335 263 336 What: /sys/fs/f2fs/<disk>/extension_ 264 What: /sys/fs/f2fs/<disk>/extension_list 337 Date: February 2018 !! 265 Date: Feburary 2018 338 Contact: "Chao Yu" <yuchao0@huawei.com> 266 Contact: "Chao Yu" <yuchao0@huawei.com> 339 Description: Used to control configure exte 267 Description: Used to control configure extension list: 340 - Query: cat /sys/fs/f2fs/<dis 268 - Query: cat /sys/fs/f2fs/<disk>/extension_list 341 - Add: echo '[h/c]extension' > 269 - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list 342 - Del: echo '[h/c]!extension' 270 - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list 343 - [h] means add/del hot file e 271 - [h] means add/del hot file extension 344 - [c] means add/del cold file 272 - [c] means add/del cold file extension 345 273 346 What: /sys/fs/f2fs/<disk>/unusable 274 What: /sys/fs/f2fs/<disk>/unusable 347 Date April 2019 275 Date April 2019 348 Contact: "Daniel Rosenberg" <drosen@goog 276 Contact: "Daniel Rosenberg" <drosen@google.com> 349 Description: If checkpoint=disable, it disp 277 Description: If checkpoint=disable, it displays the number of blocks that 350 are unusable. 278 are unusable. 351 If checkpoint=enable it displa !! 279 If checkpoint=enable it displays the enumber of blocks that 352 would be unusable if checkpoin 280 would be unusable if checkpoint=disable were to be set. 353 281 354 What: /sys/fs/f2fs/<disk>/encoding 282 What: /sys/fs/f2fs/<disk>/encoding 355 Date July 2019 283 Date July 2019 356 Contact: "Daniel Rosenberg" <drosen@goog 284 Contact: "Daniel Rosenberg" <drosen@google.com> 357 Description: Displays name and version of t 285 Description: Displays name and version of the encoding set for the filesystem. 358 If no encoding is set, display 286 If no encoding is set, displays (none) 359 287 360 What: /sys/fs/f2fs/<disk>/free_segme 288 What: /sys/fs/f2fs/<disk>/free_segments 361 Date: September 2019 289 Date: September 2019 362 Contact: "Hridya Valsaraju" <hridya@goog 290 Contact: "Hridya Valsaraju" <hridya@google.com> 363 Description: Number of free segments in dis 291 Description: Number of free segments in disk. 364 292 365 What: /sys/fs/f2fs/<disk>/cp_foregro 293 What: /sys/fs/f2fs/<disk>/cp_foreground_calls 366 Date: September 2019 294 Date: September 2019 367 Contact: "Hridya Valsaraju" <hridya@goog 295 Contact: "Hridya Valsaraju" <hridya@google.com> 368 Description: Number of checkpoint operation 296 Description: Number of checkpoint operations performed on demand. Available when 369 CONFIG_F2FS_STAT_FS=y. 297 CONFIG_F2FS_STAT_FS=y. 370 298 371 What: /sys/fs/f2fs/<disk>/cp_backgro 299 What: /sys/fs/f2fs/<disk>/cp_background_calls 372 Date: September 2019 300 Date: September 2019 373 Contact: "Hridya Valsaraju" <hridya@goog 301 Contact: "Hridya Valsaraju" <hridya@google.com> 374 Description: Number of checkpoint operation 302 Description: Number of checkpoint operations performed in the background to 375 free segments. Available when 303 free segments. Available when CONFIG_F2FS_STAT_FS=y. 376 304 377 What: /sys/fs/f2fs/<disk>/gc_foregro 305 What: /sys/fs/f2fs/<disk>/gc_foreground_calls 378 Date: September 2019 306 Date: September 2019 379 Contact: "Hridya Valsaraju" <hridya@goog 307 Contact: "Hridya Valsaraju" <hridya@google.com> 380 Description: Number of garbage collection o 308 Description: Number of garbage collection operations performed on demand. 381 Available when CONFIG_F2FS_STA 309 Available when CONFIG_F2FS_STAT_FS=y. 382 310 383 What: /sys/fs/f2fs/<disk>/gc_backgro 311 What: /sys/fs/f2fs/<disk>/gc_background_calls 384 Date: September 2019 312 Date: September 2019 385 Contact: "Hridya Valsaraju" <hridya@goog 313 Contact: "Hridya Valsaraju" <hridya@google.com> 386 Description: Number of garbage collection o 314 Description: Number of garbage collection operations triggered in background. 387 Available when CONFIG_F2FS_STA 315 Available when CONFIG_F2FS_STAT_FS=y. 388 316 389 What: /sys/fs/f2fs/<disk>/moved_bloc 317 What: /sys/fs/f2fs/<disk>/moved_blocks_foreground 390 Date: September 2019 318 Date: September 2019 391 Contact: "Hridya Valsaraju" <hridya@goog 319 Contact: "Hridya Valsaraju" <hridya@google.com> 392 Description: Number of blocks moved by garb 320 Description: Number of blocks moved by garbage collection in foreground. 393 Available when CONFIG_F2FS_STA 321 Available when CONFIG_F2FS_STAT_FS=y. 394 322 395 What: /sys/fs/f2fs/<disk>/moved_bloc 323 What: /sys/fs/f2fs/<disk>/moved_blocks_background 396 Date: September 2019 324 Date: September 2019 397 Contact: "Hridya Valsaraju" <hridya@goog 325 Contact: "Hridya Valsaraju" <hridya@google.com> 398 Description: Number of blocks moved by garb 326 Description: Number of blocks moved by garbage collection in background. 399 Available when CONFIG_F2FS_STA 327 Available when CONFIG_F2FS_STAT_FS=y. 400 328 401 What: /sys/fs/f2fs/<disk>/avg_vblock 329 What: /sys/fs/f2fs/<disk>/avg_vblocks 402 Date: September 2019 330 Date: September 2019 403 Contact: "Hridya Valsaraju" <hridya@goog 331 Contact: "Hridya Valsaraju" <hridya@google.com> 404 Description: Average number of valid blocks 332 Description: Average number of valid blocks. 405 Available when CONFIG_F2FS_STA 333 Available when CONFIG_F2FS_STAT_FS=y. 406 334 407 What: /sys/fs/f2fs/<disk>/mounted_ti 335 What: /sys/fs/f2fs/<disk>/mounted_time_sec 408 Date: February 2020 336 Date: February 2020 409 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 337 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 410 Description: Show the mounted time in secs 338 Description: Show the mounted time in secs of this partition. 411 339 412 What: /sys/fs/f2fs/<disk>/data_io_fl 340 What: /sys/fs/f2fs/<disk>/data_io_flag 413 Date: April 2020 341 Date: April 2020 414 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 342 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 415 Description: Give a way to attach REQ_META| 343 Description: Give a way to attach REQ_META|FUA to data writes 416 given temperature-based bits. 344 given temperature-based bits. Now the bits indicate: 417 345 418 +-------------------+--------- 346 +-------------------+-------------------+ 419 | REQ_META | REQ 347 | REQ_META | REQ_FUA | 420 +------+------+-----+------+-- 348 +------+------+-----+------+------+-----+ 421 | 5 | 4 | 3 | 2 | 349 | 5 | 4 | 3 | 2 | 1 | 0 | 422 +------+------+-----+------+-- 350 +------+------+-----+------+------+-----+ 423 | Cold | Warm | Hot | Cold | W 351 | Cold | Warm | Hot | Cold | Warm | Hot | 424 +------+------+-----+------+-- 352 +------+------+-----+------+------+-----+ 425 353 426 What: /sys/fs/f2fs/<disk>/node_io_fl 354 What: /sys/fs/f2fs/<disk>/node_io_flag 427 Date: June 2020 355 Date: June 2020 428 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 356 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 429 Description: Give a way to attach REQ_META| 357 Description: Give a way to attach REQ_META|FUA to node writes 430 given temperature-based bits. 358 given temperature-based bits. Now the bits indicate: 431 359 432 +-------------------+--------- 360 +-------------------+-------------------+ 433 | REQ_META | REQ 361 | REQ_META | REQ_FUA | 434 +------+------+-----+------+-- 362 +------+------+-----+------+------+-----+ 435 | 5 | 4 | 3 | 2 | 363 | 5 | 4 | 3 | 2 | 1 | 0 | 436 +------+------+-----+------+-- 364 +------+------+-----+------+------+-----+ 437 | Cold | Warm | Hot | Cold | W 365 | Cold | Warm | Hot | Cold | Warm | Hot | 438 +------+------+-----+------+-- 366 +------+------+-----+------+------+-----+ 439 367 440 What: /sys/fs/f2fs/<disk>/iostat_per 368 What: /sys/fs/f2fs/<disk>/iostat_period_ms 441 Date: April 2020 369 Date: April 2020 442 Contact: "Daeho Jeong" <daehojeong@googl 370 Contact: "Daeho Jeong" <daehojeong@google.com> 443 Description: Give a way to change iostat_pe 371 Description: Give a way to change iostat_period time. 3secs by default. 444 The new iostat trace gives sta 372 The new iostat trace gives stats gap given the period. 445 What: /sys/fs/f2fs/<disk>/max_io_byt 373 What: /sys/fs/f2fs/<disk>/max_io_bytes 446 Date: December 2020 374 Date: December 2020 447 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o 375 Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> 448 Description: This gives a control to limit 376 Description: This gives a control to limit the bio size in f2fs. 449 Default is zero, which will fo 377 Default is zero, which will follow underlying block layer limit, 450 whereas, if it has a certain b 378 whereas, if it has a certain bytes value, f2fs won't submit a 451 bio larger than that size. 379 bio larger than that size. 452 380 453 What: /sys/fs/f2fs/<disk>/stat/sb_st 381 What: /sys/fs/f2fs/<disk>/stat/sb_status 454 Date: December 2020 382 Date: December 2020 455 Contact: "Chao Yu" <yuchao0@huawei.com> 383 Contact: "Chao Yu" <yuchao0@huawei.com> 456 Description: Show status of f2fs superblock 384 Description: Show status of f2fs superblock in real time. 457 385 458 ====== ===================== = 386 ====== ===================== ================================= 459 value sb status macro d 387 value sb status macro description 460 0x1 SBI_IS_DIRTY d 388 0x1 SBI_IS_DIRTY dirty flag for checkpoint 461 0x2 SBI_IS_CLOSE s 389 0x2 SBI_IS_CLOSE specify unmounting 462 0x4 SBI_NEED_FSCK n 390 0x4 SBI_NEED_FSCK need fsck.f2fs to fix 463 0x8 SBI_POR_DOING r 391 0x8 SBI_POR_DOING recovery is doing or not 464 0x10 SBI_NEED_SB_WRITE n 392 0x10 SBI_NEED_SB_WRITE need to recover superblock 465 0x20 SBI_NEED_CP n 393 0x20 SBI_NEED_CP need to checkpoint 466 0x40 SBI_IS_SHUTDOWN s 394 0x40 SBI_IS_SHUTDOWN shutdown by ioctl 467 0x80 SBI_IS_RECOVERED r 395 0x80 SBI_IS_RECOVERED recovered orphan/data 468 0x100 SBI_CP_DISABLED C 396 0x100 SBI_CP_DISABLED CP was disabled last mount 469 0x200 SBI_CP_DISABLED_QUICK C 397 0x200 SBI_CP_DISABLED_QUICK CP was disabled quickly 470 0x400 SBI_QUOTA_NEED_FLUSH n 398 0x400 SBI_QUOTA_NEED_FLUSH need to flush quota info in CP 471 0x800 SBI_QUOTA_SKIP_FLUSH s 399 0x800 SBI_QUOTA_SKIP_FLUSH skip flushing quota in current CP 472 0x1000 SBI_QUOTA_NEED_REPAIR q 400 0x1000 SBI_QUOTA_NEED_REPAIR quota file may be corrupted 473 0x2000 SBI_IS_RESIZEFS r 401 0x2000 SBI_IS_RESIZEFS resizefs is in process 474 0x4000 SBI_IS_FREEZING f << 475 ====== ===================== = 402 ====== ===================== ================================= 476 403 477 What: /sys/fs/f2fs/<disk>/stat/cp_st << 478 Date: September 2022 << 479 Contact: "Chao Yu" <chao.yu@oppo.com> << 480 Description: Show status of f2fs checkpoint << 481 << 482 ============================== << 483 cp flag << 484 CP_UMOUNT_FLAG << 485 CP_ORPHAN_PRESENT_FLAG << 486 CP_COMPACT_SUM_FLAG << 487 CP_ERROR_FLAG << 488 CP_FSCK_FLAG << 489 CP_FASTBOOT_FLAG << 490 CP_CRC_RECOVERY_FLAG << 491 CP_NAT_BITS_FLAG << 492 CP_TRIMMED_FLAG << 493 CP_NOCRC_RECOVERY_FLAG << 494 CP_LARGE_NAT_BITMAP_FLAG << 495 CP_QUOTA_NEED_FSCK_FLAG << 496 CP_DISABLED_FLAG << 497 CP_DISABLED_QUICK_FLAG << 498 CP_RESIZEFS_FLAG << 499 ============================== << 500 << 501 What: /sys/fs/f2fs/<disk>/stat/issue << 502 Date: December 2023 << 503 Contact: "Zhiguo Niu" <zhiguo.niu@unisoc << 504 Description: Shows the number of issued dis << 505 << 506 What: /sys/fs/f2fs/<disk>/stat/queue << 507 Date: December 2023 << 508 Contact: "Zhiguo Niu" <zhiguo.niu@unisoc << 509 Description: Shows the number of queued dis << 510 << 511 What: /sys/fs/f2fs/<disk>/stat/undis << 512 Date: December 2023 << 513 Contact: "Zhiguo Niu" <zhiguo.niu@unisoc << 514 Description: Shows the total number of undi << 515 << 516 What: /sys/fs/f2fs/<disk>/ckpt_threa 404 What: /sys/fs/f2fs/<disk>/ckpt_thread_ioprio 517 Date: January 2021 405 Date: January 2021 518 Contact: "Daeho Jeong" <daehojeong@googl 406 Contact: "Daeho Jeong" <daehojeong@google.com> 519 Description: Give a way to change checkpoin 407 Description: Give a way to change checkpoint merge daemon's io priority. 520 Its default value is "be,3", w 408 Its default value is "be,3", which means "BE" I/O class and 521 I/O priority "3". We can selec 409 I/O priority "3". We can select the class between "rt" and "be", 522 and set the I/O priority withi 410 and set the I/O priority within valid range of it. "," delimiter 523 is necessary in between I/O cl 411 is necessary in between I/O class and priority number. 524 << 525 What: /sys/fs/f2fs/<disk>/ovp_segmen << 526 Date: March 2021 << 527 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o << 528 Description: Shows the number of overprovis << 529 << 530 What: /sys/fs/f2fs/<disk>/compr_writ << 531 Date: March 2021 << 532 Contact: "Daeho Jeong" <daehojeong@googl << 533 Description: Show the block count written a << 534 that when the compressed block << 535 decrease. If you write "0" her << 536 compr_written_block and compr_ << 537 << 538 What: /sys/fs/f2fs/<disk>/compr_save << 539 Date: March 2021 << 540 Contact: "Daeho Jeong" <daehojeong@googl << 541 Description: Show the saved block count wit << 542 that when the compressed block << 543 decrease. If you write "0" her << 544 compr_written_block and compr_ << 545 << 546 What: /sys/fs/f2fs/<disk>/compr_new_ << 547 Date: March 2021 << 548 Contact: "Daeho Jeong" <daehojeong@googl << 549 Description: Show the count of inode newly << 550 Note that when the compression << 551 doesn't decrease. If you write << 552 compr_new_inode to "0". << 553 << 554 What: /sys/fs/f2fs/<disk>/atgc_candi << 555 Date: May 2021 << 556 Contact: "Chao Yu" <yuchao0@huawei.com> << 557 Description: When ATGC is on, it controls c << 558 number of potential victim in << 559 range of [0, 100], by default << 560 << 561 What: /sys/fs/f2fs/<disk>/atgc_candi << 562 Date: May 2021 << 563 Contact: "Chao Yu" <yuchao0@huawei.com> << 564 Description: When ATGC is on, it controls c << 565 number of potential victim in << 566 initialized as 10 (sections). << 567 << 568 What: /sys/fs/f2fs/<disk>/atgc_age_w << 569 Date: May 2021 << 570 Contact: "Chao Yu" <yuchao0@huawei.com> << 571 Description: When ATGC is on, it controls a << 572 in between aging and valid blo << 573 [0, 100], by default it was in << 574 << 575 What: /sys/fs/f2fs/<disk>/atgc_age_t << 576 Date: May 2021 << 577 Contact: "Chao Yu" <yuchao0@huawei.com> << 578 Description: When ATGC is on, it controls a << 579 candidates whose age is not be << 580 initialized as 604800 seconds << 581 << 582 What: /sys/fs/f2fs/<disk>/atgc_enabl << 583 Date: Feb 2024 << 584 Contact: "Jinbao Liu" <liujinbao1@xiaomi << 585 Description: It represents whether ATGC is << 586 indicates that ATGC is on, and << 587 << 588 What: /sys/fs/f2fs/<disk>/gc_reclaim << 589 Date: July 2021 << 590 Contact: "Daeho Jeong" <daehojeong@googl << 591 Description: Show how many segments have be << 592 GC mode (0: GC normal, 1: GC i << 593 3: GC idle AT, 4: GC urgent hi << 594 You can re-initialize this val << 595 << 596 What: /sys/fs/f2fs/<disk>/gc_segment << 597 Date: July 2021 << 598 Contact: "Daeho Jeong" <daehojeong@googl << 599 Description: You can control for which gc m << 600 Refer to the description of th << 601 << 602 What: /sys/fs/f2fs/<disk>/seq_file_r << 603 Date: July 2021 << 604 Contact: "Daeho Jeong" <daehojeong@googl << 605 Description: You can control the multiplier << 606 between 2 (default) and 256 fo << 607 << 608 What: /sys/fs/f2fs/<disk>/max_fragme << 609 Date: August 2021 << 610 Contact: "Daeho Jeong" <daehojeong@googl << 611 Description: With "mode=fragment:block" mou << 612 f2fs will allocate 1..<max_fra << 613 in the length of 1..<max_fragm << 614 between 1..512 and the default << 615 << 616 What: /sys/fs/f2fs/<disk>/max_fragme << 617 Date: August 2021 << 618 Contact: "Daeho Jeong" <daehojeong@googl << 619 Description: With "mode=fragment:block" mou << 620 f2fs will allocate 1..<max_fra << 621 in the length of 1..<max_fragm << 622 between 1..512 and the default << 623 << 624 What: /sys/fs/f2fs/<disk>/gc_remaini << 625 Date: October 2022 << 626 Contact: "Yangtao Li" <frank.li@vivo.com << 627 Description: You can set the trial count li << 628 If GC thread gets to the limit << 629 By default, the value is zero, << 630 << 631 What: /sys/fs/f2fs/<disk>/max_roll_f << 632 Date: January 2022 << 633 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o << 634 Description: Controls max # of node block w << 635 recovery. This can limit the r << 636 << 637 What: /sys/fs/f2fs/<disk>/unusable_b << 638 Date: June 2022 << 639 Contact: "Jaegeuk Kim" <jaegeuk@kernel.o << 640 Description: Shows the number of unusable b << 641 the zone capacity reported by << 642 << 643 What: /sys/fs/f2fs/<disk>/current_at << 644 Date: July 2022 << 645 Contact: "Daeho Jeong" <daehojeong@googl << 646 Description: Show the total current atomic << 647 This is a read-only entry. << 648 << 649 What: /sys/fs/f2fs/<disk>/peak_atomi << 650 Date: July 2022 << 651 Contact: "Daeho Jeong" <daehojeong@googl << 652 Description: Show the peak value of total c << 653 If you write "0" here, you can << 654 << 655 What: /sys/fs/f2fs/<disk>/committed_ << 656 Date: July 2022 << 657 Contact: "Daeho Jeong" <daehojeong@googl << 658 Description: Show the accumulated total com << 659 If you write "0" here, you can << 660 << 661 What: /sys/fs/f2fs/<disk>/revoked_at << 662 Date: July 2022 << 663 Contact: "Daeho Jeong" <daehojeong@googl << 664 Description: Show the accumulated total rev << 665 If you write "0" here, you can << 666 << 667 What: /sys/fs/f2fs/<disk>/gc_mode << 668 Date: October 2022 << 669 Contact: "Yangtao Li" <frank.li@vivo.com << 670 Description: Show the current gc_mode as a << 671 This is a read-only entry. << 672 << 673 What: /sys/fs/f2fs/<disk>/discard_ur << 674 Date: November 2022 << 675 Contact: "Yangtao Li" <frank.li@vivo.com << 676 Description: When space utilization exceeds << 677 Does DISCARD forcibly in a per << 678 of discards is not 0 and set d << 679 Default: 80 << 680 << 681 What: /sys/fs/f2fs/<disk>/hot_data_a << 682 Date: November 2022 << 683 Contact: "Ping Xiong" <xiongping1@xiaomi << 684 Description: When DATA SEPARATION is on, it << 685 the data blocks as hot. By def << 686 (equals to 1GB). << 687 << 688 What: /sys/fs/f2fs/<disk>/warm_data_ << 689 Date: November 2022 << 690 Contact: "Ping Xiong" <xiongping1@xiaomi << 691 Description: When DATA SEPARATION is on, it << 692 the data blocks as warm. By de << 693 (equals to 10GB). << 694 << 695 What: /sys/fs/f2fs/<disk>/fault_rate << 696 Date: May 2016 << 697 Contact: "Sheng Yong" <shengyong@oppo.co << 698 Contact: "Chao Yu" <chao@kernel.org> << 699 Description: Enable fault injection in all << 700 specified injection rate. << 701 << 702 What: /sys/fs/f2fs/<disk>/fault_type << 703 Date: May 2016 << 704 Contact: "Sheng Yong" <shengyong@oppo.co << 705 Contact: "Chao Yu" <chao@kernel.org> << 706 Description: Support configuring fault inje << 707 enabled with fault_injection o << 708 is shown below, it supports si << 709 << 710 =========================== << 711 Type_Name << 712 =========================== << 713 FAULT_KMALLOC << 714 FAULT_KVMALLOC << 715 FAULT_PAGE_ALLOC << 716 FAULT_PAGE_GET << 717 FAULT_ALLOC_BIO << 718 FAULT_ALLOC_NID << 719 FAULT_ORPHAN << 720 FAULT_BLOCK << 721 FAULT_DIR_DEPTH << 722 FAULT_EVICT_INODE << 723 FAULT_TRUNCATE << 724 FAULT_READ_IO << 725 FAULT_CHECKPOINT << 726 FAULT_DISCARD << 727 FAULT_WRITE_IO << 728 FAULT_SLAB_ALLOC << 729 FAULT_DQUOT_INIT << 730 FAULT_LOCK_OP << 731 FAULT_BLKADDR_VALIDITY << 732 FAULT_BLKADDR_CONSISTENCE << 733 FAULT_NO_SEGMENT << 734 =========================== << 735 << 736 What: /sys/fs/f2fs/<disk>/discard_io << 737 Date: January 2023 << 738 Contact: "Yangtao Li" <frank.li@vivo.com << 739 Description: Controls background discard gr << 740 when is not in idle. Inner thr << 741 is smaller than granularity. T << 742 support configuring in range o << 743 Default: 512 << 744 << 745 What: /sys/fs/f2fs/<disk>/last_age_w << 746 Date: January 2023 << 747 Contact: "Ping Xiong" <xiongping1@xiaomi << 748 Description: When DATA SEPARATION is on, it << 749 << 750 What: /sys/fs/f2fs/<disk>/compress_w << 751 Date: February 2023 << 752 Contact: "Yangtao Li" <frank.li@vivo.com << 753 Description: When compress cache is on, it << 754 in order to limit caching comp << 755 than watermark, then deny cach << 756 range of (0, 100], by default << 757 << 758 What: /sys/fs/f2fs/<disk>/compress_p << 759 Date: February 2023 << 760 Contact: "Yangtao Li" <frank.li@vivo.com << 761 Description: When compress cache is on, it << 762 percent(compress pages / free_ << 763 If cached page percent exceed << 764 The value should be in range o << 765 as 20(%). << 766 << 767 What: /sys/fs/f2fs/<disk>/discard_io << 768 Date: November 2023 << 769 Contact: "Chao Yu" <chao@kernel.org> << 770 Description: It controls to enable/disable << 771 By default, the value is 1 whi << 772 << 773 What: /sys/fs/f2fs/<disk>/blkzone_al << 774 Date: July 2024 << 775 Contact: "Yuanhong Liao" <liaoyuanhong@v << 776 Description: The zone UFS we are currently << 777 conventional zones and sequent << 778 to prioritize for writes, with << 779 << 780 ======================== ==== << 781 value << 782 blkzone_alloc_policy = 0 Prio << 783 blkzone_alloc_policy = 1 Only << 784 blkzone_alloc_policy = 2 Prio << 785 ======================== ==== << 786 << 787 What: /sys/fs/f2fs/<disk>/migration_ << 788 Date: September 2024 << 789 Contact: "Daeho Jeong" <daehojeong@googl << 790 Description: Controls migration window gran << 791 section. it can control the sc << 792 in a unit of segment, while mi << 793 of segments which can be migra << 794 << 795 What: /sys/fs/f2fs/<disk>/reserved_s << 796 Date: September 2024 << 797 Contact: "Daeho Jeong" <daehojeong@googl << 798 Description: In order to fine tune GC behav << 799 reserved segments. << 800 << 801 What: /sys/fs/f2fs/<disk>/gc_no_zone << 802 Date: September 2024 << 803 Contact: "Daeho Jeong" <daehojeong@googl << 804 Description: If the percentage of free sect << 805 number, F2FS do not garbage co << 806 background GC thread. the defa << 807 << 808 What: /sys/fs/f2fs/<disk>/gc_boost_z << 809 Date: September 2024 << 810 Contact: "Daeho Jeong" <daehojeong@googl << 811 Description: If the percentage of free sect << 812 number, F2FS boosts garbage co << 813 background GC thread. the defa << 814 << 815 What: /sys/fs/f2fs/<disk>/gc_valid_t << 816 Date: September 2024 << 817 Contact: "Daeho Jeong" <daehojeong@googl << 818 Description: It controls the valid block ra << 819 for zoned deivces. The initial << 820 background GC thread from inti << 821 exceeding the ratio. <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.