Namjae Jeon | b59d0ba | 2013-08-04 23:09:40 +0900 | [diff] [blame] | 1 | What: /sys/fs/f2fs/<disk>/gc_max_sleep_time |
| 2 | Date: July 2013 |
| 3 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 4 | Description: Controls the maximum sleep time for gc_thread. Time |
| 5 | is in milliseconds. |
Namjae Jeon | b59d0ba | 2013-08-04 23:09:40 +0900 | [diff] [blame] | 6 | |
| 7 | What: /sys/fs/f2fs/<disk>/gc_min_sleep_time |
| 8 | Date: July 2013 |
| 9 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 10 | Description: Controls the minimum sleep time for gc_thread. Time |
| 11 | is in milliseconds. |
Namjae Jeon | b59d0ba | 2013-08-04 23:09:40 +0900 | [diff] [blame] | 12 | |
| 13 | What: /sys/fs/f2fs/<disk>/gc_no_gc_sleep_time |
| 14 | Date: July 2013 |
| 15 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 16 | Description: Controls the default sleep time for gc_thread. Time |
| 17 | is in milliseconds. |
Namjae Jeon | d2dc095 | 2013-08-04 23:10:15 +0900 | [diff] [blame] | 18 | |
| 19 | What: /sys/fs/f2fs/<disk>/gc_idle |
| 20 | Date: July 2013 |
| 21 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 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. |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 26 | |
| 27 | What: /sys/fs/f2fs/<disk>/reclaim_segments |
| 28 | Date: October 2013 |
| 29 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 30 | Description: This parameter controls the number of prefree segments to be |
| 31 | reclaimed. If the number of prefree segments is larger than |
| 32 | the number of segments in the proportion to the percentage |
| 33 | over total volume size, f2fs tries to conduct checkpoint to |
| 34 | reclaim the prefree segments to free segments. |
| 35 | By default, 5% over total # of segments. |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 36 | |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 37 | What: /sys/fs/f2fs/<disk>/main_blkaddr |
Jaegeuk Kim | a4db59a | 2019-11-22 11:53:10 -0800 | [diff] [blame] | 38 | Date: November 2019 |
| 39 | Contact: "Ramon Pantin" <pantin@google.com> |
| 40 | Description: |
| 41 | Shows first block address of MAIN area. |
| 42 | |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 43 | What: /sys/fs/f2fs/<disk>/ipu_policy |
| 44 | Date: November 2013 |
| 45 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 46 | Description: Controls the in-place-update policy. |
| 47 | updates in f2fs. User can set: |
| 48 | 0x01: F2FS_IPU_FORCE, 0x02: F2FS_IPU_SSR, |
| 49 | 0x04: F2FS_IPU_UTIL, 0x08: F2FS_IPU_SSR_UTIL, |
| 50 | 0x10: F2FS_IPU_FSYNC, 0x20: F2FS_IPU_ASYNC, |
| 51 | 0x40: F2FS_IPU_NOCACHE. |
| 52 | Refer segment.h for details. |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 53 | |
| 54 | What: /sys/fs/f2fs/<disk>/min_ipu_util |
| 55 | Date: November 2013 |
| 56 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 57 | Description: Controls the FS utilization condition for the in-place-update |
| 58 | policies. It is used by F2FS_IPU_UTIL and F2FS_IPU_SSR_UTIL policies. |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 59 | |
Jaegeuk Kim | c1ce1b0 | 2014-09-10 16:53:02 -0700 | [diff] [blame] | 60 | What: /sys/fs/f2fs/<disk>/min_fsync_blocks |
| 61 | Date: September 2014 |
| 62 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 63 | Description: Controls the dirty page count condition for the in-place-update |
| 64 | policies. |
Jaegeuk Kim | c1ce1b0 | 2014-09-10 16:53:02 -0700 | [diff] [blame] | 65 | |
Jaegeuk Kim | 853137c | 2018-08-09 17:53:34 -0700 | [diff] [blame] | 66 | What: /sys/fs/f2fs/<disk>/min_seq_blocks |
| 67 | Date: August 2018 |
| 68 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 69 | Description: Controls the dirty page count condition for batched sequential |
| 70 | writes in writepages. |
Jaegeuk Kim | 853137c | 2018-08-09 17:53:34 -0700 | [diff] [blame] | 71 | |
Chao Yu | b32d73a | 2017-10-28 16:52:29 +0800 | [diff] [blame] | 72 | What: /sys/fs/f2fs/<disk>/min_hot_blocks |
| 73 | Date: March 2017 |
| 74 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 75 | Description: Controls the dirty page count condition for redefining hot data. |
Chao Yu | b32d73a | 2017-10-28 16:52:29 +0800 | [diff] [blame] | 76 | |
Chao Yu | a2a12b6 | 2017-10-28 16:52:33 +0800 | [diff] [blame] | 77 | What: /sys/fs/f2fs/<disk>/min_ssr_sections |
| 78 | Date: October 2017 |
| 79 | Contact: "Chao Yu" <yuchao0@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 80 | Description: Controls the free section threshold to trigger SSR allocation. |
| 81 | If this is large, SSR mode will be enabled early. |
Chao Yu | a2a12b6 | 2017-10-28 16:52:33 +0800 | [diff] [blame] | 82 | |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 83 | What: /sys/fs/f2fs/<disk>/max_small_discards |
| 84 | Date: November 2013 |
| 85 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 86 | Description: Controls the issue rate of discard commands that consist of small |
| 87 | blocks less than 2MB. The candidates to be discarded are cached until |
| 88 | checkpoint is triggered, and issued during the checkpoint. |
| 89 | By default, it is disabled with 0. |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 90 | |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 91 | What: /sys/fs/f2fs/<disk>/discard_granularity |
| 92 | Date: July 2017 |
| 93 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 94 | Description: Controls discard granularity of inner discard thread. Inner thread |
Chao Yu | 969d1b1 | 2017-08-07 23:09:56 +0800 | [diff] [blame] | 95 | will not issue discards with size that is smaller than granularity. |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 96 | The unit size is one block(4KB), now only support configuring |
| 97 | in range of [1, 512]. Default value is 4(=16KB). |
Chao Yu | 969d1b1 | 2017-08-07 23:09:56 +0800 | [diff] [blame] | 98 | |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 99 | What: /sys/fs/f2fs/<disk>/umount_discard_timeout |
| 100 | Date: January 2019 |
| 101 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 102 | Description: Set timeout to issue discard commands during umount. |
| 103 | Default: 5 secs |
Jaegeuk Kim | 03f2c02 | 2019-01-14 10:42:11 -0800 | [diff] [blame] | 104 | |
Jaegeuk Kim | 3bac380 | 2014-01-09 21:00:06 +0900 | [diff] [blame] | 105 | What: /sys/fs/f2fs/<disk>/max_victim_search |
| 106 | Date: January 2014 |
| 107 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 108 | Description: Controls the number of trials to find a victim segment |
| 109 | when conducting SSR and cleaning operations. The default value |
| 110 | is 4096 which covers 8GB block address range. |
Jaegeuk Kim | cdfc41c | 2014-03-19 13:31:37 +0900 | [diff] [blame] | 111 | |
Chao Yu | 3465557 | 2018-10-25 16:19:28 +0800 | [diff] [blame] | 112 | What: /sys/fs/f2fs/<disk>/migration_granularity |
| 113 | Date: October 2018 |
| 114 | Contact: "Chao Yu" <yuchao0@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 115 | Description: Controls migration granularity of garbage collection on large |
| 116 | section, it can let GC move partial segment{s} of one section |
| 117 | in one GC cycle, so that dispersing heavy overhead GC to |
| 118 | multiple lightweight one. |
Chao Yu | 3465557 | 2018-10-25 16:19:28 +0800 | [diff] [blame] | 119 | |
Jaegeuk Kim | 9179682 | 2014-03-19 13:40:09 +0900 | [diff] [blame] | 120 | What: /sys/fs/f2fs/<disk>/dir_level |
| 121 | Date: March 2014 |
| 122 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 123 | Description: Controls the directory level for large directory. If a |
| 124 | directory has a number of files, it can reduce the file lookup |
| 125 | latency by increasing this dir_level value. Otherwise, it |
| 126 | needs to decrease this value to reduce the space overhead. |
| 127 | The default value is 0. |
Jaegeuk Kim | 9179682 | 2014-03-19 13:40:09 +0900 | [diff] [blame] | 128 | |
Jaegeuk Kim | cdfc41c | 2014-03-19 13:31:37 +0900 | [diff] [blame] | 129 | What: /sys/fs/f2fs/<disk>/ram_thresh |
| 130 | Date: March 2014 |
| 131 | Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 132 | Description: Controls the memory footprint used by free nids and cached |
| 133 | nat entries. By default, 1 is set, which indicates |
| 134 | 10 MB / 1 GB RAM. |
Jaegeuk Kim | bba681c | 2015-01-26 17:41:23 -0800 | [diff] [blame] | 135 | |
Chao Yu | 6f6d9fe | 2017-06-12 09:44:26 +0800 | [diff] [blame] | 136 | What: /sys/fs/f2fs/<disk>/batched_trim_sections |
Jaegeuk Kim | bba681c | 2015-01-26 17:41:23 -0800 | [diff] [blame] | 137 | Date: February 2015 |
| 138 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 139 | Description: Controls the trimming rate in batch mode. |
| 140 | <deprecated> |
Jaegeuk Kim | 60b99b4 | 2015-10-05 14:49:57 -0700 | [diff] [blame] | 141 | |
| 142 | What: /sys/fs/f2fs/<disk>/cp_interval |
| 143 | Date: October 2015 |
| 144 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 145 | Description: Controls the checkpoint timing, set to 60 seconds by default. |
Chao Yu | ea1a29a0 | 2015-10-12 17:08:48 +0800 | [diff] [blame] | 146 | |
Jaegeuk Kim | d0239e1 | 2016-01-08 16:57:48 -0800 | [diff] [blame] | 147 | What: /sys/fs/f2fs/<disk>/idle_interval |
| 148 | Date: January 2016 |
| 149 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 150 | Description: Controls the idle timing of system, if there is no FS operation |
| 151 | during given interval. |
| 152 | Set to 5 seconds by default. |
Sahitya Tummala | a7d10cf | 2018-09-19 14:18:47 +0530 | [diff] [blame] | 153 | |
| 154 | What: /sys/fs/f2fs/<disk>/discard_idle_interval |
| 155 | Date: September 2018 |
| 156 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 157 | Contact: "Sahitya Tummala" <stummala@codeaurora.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 158 | Description: Controls the idle timing of discard thread given |
| 159 | this time interval. |
| 160 | Default is 5 secs. |
Sahitya Tummala | a7d10cf | 2018-09-19 14:18:47 +0530 | [diff] [blame] | 161 | |
| 162 | What: /sys/fs/f2fs/<disk>/gc_idle_interval |
| 163 | Date: September 2018 |
| 164 | Contact: "Chao Yu" <yuchao0@huawei.com> |
| 165 | Contact: "Sahitya Tummala" <stummala@codeaurora.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 166 | Description: Controls the idle timing for gc path. Set to 5 seconds by default. |
Jaegeuk Kim | d0239e1 | 2016-01-08 16:57:48 -0800 | [diff] [blame] | 167 | |
Chao Yu | b32d73a | 2017-10-28 16:52:29 +0800 | [diff] [blame] | 168 | What: /sys/fs/f2fs/<disk>/iostat_enable |
| 169 | Date: August 2017 |
| 170 | Contact: "Chao Yu" <yuchao0@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 171 | Description: Controls to enable/disable IO stat. |
Chao Yu | b32d73a | 2017-10-28 16:52:29 +0800 | [diff] [blame] | 172 | |
Chao Yu | ea1a29a0 | 2015-10-12 17:08:48 +0800 | [diff] [blame] | 173 | What: /sys/fs/f2fs/<disk>/ra_nid_pages |
| 174 | Date: October 2015 |
| 175 | Contact: "Chao Yu" <chao2.yu@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 176 | Description: Controls the count of nid pages to be readaheaded. |
| 177 | When building free nids, F2FS reads NAT blocks ahead for |
| 178 | speed up. Default is 0. |
Chao Yu | 2304cb0 | 2016-01-18 18:32:58 +0800 | [diff] [blame] | 179 | |
| 180 | What: /sys/fs/f2fs/<disk>/dirty_nats_ratio |
| 181 | Date: January 2016 |
| 182 | Contact: "Chao Yu" <chao2.yu@samsung.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 183 | Description: Controls dirty nat entries ratio threshold, if current |
| 184 | ratio exceeds configured threshold, checkpoint will |
| 185 | be triggered for flushing dirty nat entries. |
Shuoran Liu | 8f1dbbb | 2016-01-27 09:57:30 +0800 | [diff] [blame] | 186 | |
| 187 | What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes |
| 188 | Date: January 2016 |
| 189 | Contact: "Shuoran Liu" <liushuoran@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 190 | Description: Shows total written kbytes issued to disk. |
Chao Yu | 5641289 | 2017-06-12 22:30:44 +0800 | [diff] [blame] | 191 | |
Eric Biggers | 9ac19fa | 2018-04-23 10:26:30 -0700 | [diff] [blame] | 192 | What: /sys/fs/f2fs/<disk>/features |
Chao Yu | b32d73a | 2017-10-28 16:52:29 +0800 | [diff] [blame] | 193 | Date: July 2017 |
| 194 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 195 | Description: Shows all enabled features in current device. |
Chao Yu | b32d73a | 2017-10-28 16:52:29 +0800 | [diff] [blame] | 196 | |
Chao Yu | 5641289 | 2017-06-12 22:30:44 +0800 | [diff] [blame] | 197 | What: /sys/fs/f2fs/<disk>/inject_rate |
| 198 | Date: May 2016 |
| 199 | Contact: "Sheng Yong" <shengyong1@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 200 | Description: Controls the injection rate of arbitrary faults. |
Chao Yu | 5641289 | 2017-06-12 22:30:44 +0800 | [diff] [blame] | 201 | |
| 202 | What: /sys/fs/f2fs/<disk>/inject_type |
| 203 | Date: May 2016 |
| 204 | Contact: "Sheng Yong" <shengyong1@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 205 | Description: Controls the injection type of arbitrary faults. |
| 206 | |
| 207 | What: /sys/fs/f2fs/<disk>/dirty_segments |
| 208 | Date: October 2017 |
| 209 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
| 210 | Description: Shows the number of dirty segments. |
Chao Yu | daeb433 | 2017-06-26 16:24:41 +0800 | [diff] [blame] | 211 | |
| 212 | What: /sys/fs/f2fs/<disk>/reserved_blocks |
| 213 | Date: June 2017 |
| 214 | Contact: "Chao Yu" <yuchao0@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 215 | Description: Controls target reserved blocks in system, the threshold |
| 216 | is soft, it could exceed current available user space. |
Yunlong Song | 80d4214 | 2017-10-27 20:45:05 +0800 | [diff] [blame] | 217 | |
| 218 | What: /sys/fs/f2fs/<disk>/current_reserved_blocks |
| 219 | Date: October 2017 |
| 220 | Contact: "Yunlong Song" <yunlong.song@huawei.com> |
| 221 | Contact: "Chao Yu" <yuchao0@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 222 | Description: Shows current reserved blocks in system, it may be temporarily |
| 223 | smaller than target_reserved_blocks, but will gradually |
| 224 | increase to target_reserved_blocks when more free blocks are |
| 225 | freed by user later. |
Jaegeuk Kim | d9872a6 | 2017-08-06 22:09:00 -0700 | [diff] [blame] | 226 | |
| 227 | What: /sys/fs/f2fs/<disk>/gc_urgent |
| 228 | Date: August 2017 |
| 229 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 230 | Description: Do background GC agressively when set. When gc_urgent = 1, |
| 231 | background thread starts to do GC by given gc_urgent_sleep_time |
| 232 | interval. It is set to 0 by default. |
Jaegeuk Kim | d9872a6 | 2017-08-06 22:09:00 -0700 | [diff] [blame] | 233 | |
| 234 | What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time |
| 235 | Date: August 2017 |
| 236 | Contact: "Jaegeuk Kim" <jaegeuk@kernel.org> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 237 | Description: Controls sleep time of GC urgent mode. Set to 500ms by default. |
Sheng Yong | f6df8f2 | 2017-11-22 18:23:38 +0800 | [diff] [blame] | 238 | |
| 239 | What: /sys/fs/f2fs/<disk>/readdir_ra |
| 240 | Date: November 2017 |
| 241 | Contact: "Sheng Yong" <shengyong1@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 242 | Description: Controls readahead inode block in readdir. Enabled by default. |
| 243 | |
| 244 | What: /sys/fs/f2fs/<disk>/gc_pin_file_thresh |
| 245 | Date: January 2018 |
| 246 | Contact: Jaegeuk Kim <jaegeuk@kernel.org> |
| 247 | Description: This indicates how many GC can be failed for the pinned |
| 248 | file. If it exceeds this, F2FS doesn't guarantee its pinning |
| 249 | state. 2048 trials is set by default. |
Chao Yu | 846ae67 | 2018-02-26 22:04:13 +0800 | [diff] [blame] | 250 | |
| 251 | What: /sys/fs/f2fs/<disk>/extension_list |
| 252 | Date: Feburary 2018 |
| 253 | Contact: "Chao Yu" <yuchao0@huawei.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 254 | Description: Used to control configure extension list: |
| 255 | - Query: cat /sys/fs/f2fs/<disk>/extension_list |
| 256 | - Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list |
| 257 | - Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list |
| 258 | - [h] means add/del hot file extension |
| 259 | - [c] means add/del cold file extension |
Daniel Rosenberg | 4d3aed7 | 2019-05-29 17:49:06 -0700 | [diff] [blame] | 260 | |
| 261 | What: /sys/fs/f2fs/<disk>/unusable |
| 262 | Date April 2019 |
| 263 | Contact: "Daniel Rosenberg" <drosen@google.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 264 | Description: If checkpoint=disable, it displays the number of blocks that |
| 265 | are unusable. |
| 266 | If checkpoint=enable it displays the enumber of blocks that |
| 267 | would be unusable if checkpoint=disable were to be set. |
Daniel Rosenberg | 5aba543 | 2019-07-23 16:05:28 -0700 | [diff] [blame] | 268 | |
| 269 | What: /sys/fs/f2fs/<disk>/encoding |
| 270 | Date July 2019 |
| 271 | Contact: "Daniel Rosenberg" <drosen@google.com> |
Hridya Valsaraju | f5fa7c8 | 2020-01-22 10:49:20 -0800 | [diff] [blame] | 272 | Description: Displays name and version of the encoding set for the filesystem. |
| 273 | If no encoding is set, displays (none) |
Hridya Valsaraju | fc7100e | 2020-01-22 10:51:16 -0800 | [diff] [blame] | 274 | |
| 275 | What: /sys/fs/f2fs/<disk>/free_segments |
| 276 | Date: September 2019 |
| 277 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 278 | Description: Number of free segments in disk. |
| 279 | |
| 280 | What: /sys/fs/f2fs/<disk>/cp_foreground_calls |
| 281 | Date: September 2019 |
| 282 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 283 | Description: Number of checkpoint operations performed on demand. Available when |
| 284 | CONFIG_F2FS_STAT_FS=y. |
| 285 | |
| 286 | What: /sys/fs/f2fs/<disk>/cp_background_calls |
| 287 | Date: September 2019 |
| 288 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 289 | Description: Number of checkpoint operations performed in the background to |
| 290 | free segments. Available when CONFIG_F2FS_STAT_FS=y. |
| 291 | |
| 292 | What: /sys/fs/f2fs/<disk>/gc_foreground_calls |
| 293 | Date: September 2019 |
| 294 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 295 | Description: Number of garbage collection operations performed on demand. |
| 296 | Available when CONFIG_F2FS_STAT_FS=y. |
| 297 | |
| 298 | What: /sys/fs/f2fs/<disk>/gc_background_calls |
| 299 | Date: September 2019 |
| 300 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 301 | Description: Number of garbage collection operations triggered in background. |
| 302 | Available when CONFIG_F2FS_STAT_FS=y. |
| 303 | |
| 304 | What: /sys/fs/f2fs/<disk>/moved_blocks_foreground |
| 305 | Date: September 2019 |
| 306 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 307 | Description: Number of blocks moved by garbage collection in foreground. |
| 308 | Available when CONFIG_F2FS_STAT_FS=y. |
| 309 | |
| 310 | What: /sys/fs/f2fs/<disk>/moved_blocks_background |
| 311 | Date: September 2019 |
| 312 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 313 | Description: Number of blocks moved by garbage collection in background. |
| 314 | Available when CONFIG_F2FS_STAT_FS=y. |
| 315 | |
| 316 | What: /sys/fs/f2fs/<disk>/avg_vblocks |
| 317 | Date: September 2019 |
| 318 | Contact: "Hridya Valsaraju" <hridya@google.com> |
| 319 | Description: Average number of valid blocks. |
| 320 | Available when CONFIG_F2FS_STAT_FS=y. |