blob: a07134c517e08c766c084693d58b5b9722e6a823 [file] [log] [blame]
Namjae Jeonb59d0ba2013-08-04 23:09:40 +09001What: /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.
Namjae Jeond2dc0952013-08-04 23:10:15 +090021
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.
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090027
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
Jaegeuk Kimc1ce1b02014-09-10 16:53:02 -070047What: /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
Chao Yuef216e62017-10-28 16:52:29 +080054What: /sys/fs/f2fs/<disk>/min_hot_blocks
55Date: March 2017
56Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
57Description:
58 Controls the dirty page count condition for redefining hot data.
59
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090060What: /sys/fs/f2fs/<disk>/max_small_discards
61Date: November 2013
62Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
63Description:
64 Controls the issue rate of small discard commands.
65
Chao Yuefe24da2017-08-07 23:09:56 +080066What: /sys/fs/f2fs/<disk>/discard_granularity
67Date: July 2017
68Contact: "Chao Yu" <yuchao0@huawei.com>
69Description:
70 Controls discard granularity of inner discard thread, inner thread
71 will not issue discards with size that is smaller than granularity.
72 The unit size is one block, now only support configuring in range
73 of [1, 512].
74
Jaegeuk Kim3bac3802014-01-09 21:00:06 +090075What: /sys/fs/f2fs/<disk>/max_victim_search
76Date: January 2014
77Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
78Description:
79 Controls the number of trials to find a victim segment.
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +090080
Jaegeuk Kim91796822014-03-19 13:40:09 +090081What: /sys/fs/f2fs/<disk>/dir_level
82Date: March 2014
83Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
84Description:
85 Controls the directory level for large directory.
86
Jaegeuk Kimcdfc41c2014-03-19 13:31:37 +090087What: /sys/fs/f2fs/<disk>/ram_thresh
88Date: March 2014
89Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>
90Description:
91 Controls the memory footprint used by f2fs.
Jaegeuk Kimbba681c2015-01-26 17:41:23 -080092
93What: /sys/fs/f2fs/<disk>/trim_sections
94Date: February 2015
95Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
96Description:
97 Controls the trimming rate in batch mode.
Jaegeuk Kim60b99b42015-10-05 14:49:57 -070098
99What: /sys/fs/f2fs/<disk>/cp_interval
100Date: October 2015
101Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
102Description:
103 Controls the checkpoint timing.
Chao Yuea1a29a02015-10-12 17:08:48 +0800104
Jaegeuk Kimd0239e12016-01-08 16:57:48 -0800105What: /sys/fs/f2fs/<disk>/idle_interval
106Date: January 2016
107Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
108Description:
109 Controls the idle timing.
110
Chao Yuef216e62017-10-28 16:52:29 +0800111What: /sys/fs/f2fs/<disk>/iostat_enable
112Date: August 2017
113Contact: "Chao Yu" <yuchao0@huawei.com>
114Description:
115 Controls to enable/disable IO stat.
116
Chao Yuea1a29a02015-10-12 17:08:48 +0800117What: /sys/fs/f2fs/<disk>/ra_nid_pages
118Date: October 2015
119Contact: "Chao Yu" <chao2.yu@samsung.com>
120Description:
121 Controls the count of nid pages to be readaheaded.
Chao Yu2304cb02016-01-18 18:32:58 +0800122
123What: /sys/fs/f2fs/<disk>/dirty_nats_ratio
124Date: January 2016
125Contact: "Chao Yu" <chao2.yu@samsung.com>
126Description:
127 Controls dirty nat entries ratio threshold, if current
128 ratio exceeds configured threshold, checkpoint will
129 be triggered for flushing dirty nat entries.
Shuoran Liu8f1dbbb2016-01-27 09:57:30 +0800130
131What: /sys/fs/f2fs/<disk>/lifetime_write_kbytes
132Date: January 2016
133Contact: "Shuoran Liu" <liushuoran@huawei.com>
134Description:
135 Shows total written kbytes issued to disk.
Chao Yu026bd9d2017-06-26 16:24:41 +0800136
Chao Yuef216e62017-10-28 16:52:29 +0800137What: /sys/fs/f2fs/<disk>/feature
138Date: July 2017
139Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
140Description:
141 Shows all enabled features in current device.
142
Chao Yu026bd9d2017-06-26 16:24:41 +0800143What: /sys/fs/f2fs/<disk>/inject_rate
144Date: May 2016
145Contact: "Sheng Yong" <shengyong1@huawei.com>
146Description:
147 Controls the injection rate.
148
149What: /sys/fs/f2fs/<disk>/inject_type
150Date: May 2016
151Contact: "Sheng Yong" <shengyong1@huawei.com>
152Description:
153 Controls the injection type.
154
155What: /sys/fs/f2fs/<disk>/reserved_blocks
156Date: June 2017
157Contact: "Chao Yu" <yuchao0@huawei.com>
158Description:
Yunlong Song68ab6f82017-10-27 20:45:05 +0800159 Controls target reserved blocks in system, the threshold
160 is soft, it could exceed current available user space.
161
162What: /sys/fs/f2fs/<disk>/current_reserved_blocks
163Date: October 2017
164Contact: "Yunlong Song" <yunlong.song@huawei.com>
165Contact: "Chao Yu" <yuchao0@huawei.com>
166Description:
167 Shows current reserved blocks in system, it may be temporarily
168 smaller than target_reserved_blocks, but will gradually
169 increase to target_reserved_blocks when more free blocks are
170 freed by user later.
Jaegeuk Kimbd2ffc22017-08-06 22:09:00 -0700171
172What: /sys/fs/f2fs/<disk>/gc_urgent
173Date: August 2017
174Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
175Description:
176 Do background GC agressively
177
178What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
179Date: August 2017
180Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
181Description:
182 Controls sleep time of GC urgent mode