diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-19 01:17:21 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-20 09:10:10 -0400 |
commit | 58c410351eba3d24f741c85a0eb9eaf15c94047d (patch) | |
tree | 0d6f328aa1c7645a8ba92bc80c91cfd425ca3c91 /Documentation/filesystems | |
parent | 9179682591c231cc77840d4e75929cc1fa573365 (diff) |
f2fs: change reclaim rate in percentage
It is more reasonable to determine the reclaiming rate of prefree segments
according to the volume size, which is set to 5% by default.
For example, if the volume is 128GB, the prefree segments are reclaimed
when the number reaches to 6.4GB.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/f2fs.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index f415b9fc4cc8..2f6d0218dd22 100644 --- a/Documentation/filesystems/f2fs.txt +++ b/Documentation/filesystems/f2fs.txt | |||
@@ -169,9 +169,11 @@ Files in /sys/fs/f2fs/<devname> | |||
169 | 169 | ||
170 | reclaim_segments This parameter controls the number of prefree | 170 | reclaim_segments This parameter controls the number of prefree |
171 | segments to be reclaimed. If the number of prefree | 171 | segments to be reclaimed. If the number of prefree |
172 | segments is larger than this number, f2fs tries to | 172 | segments is larger than the number of segments |
173 | conduct checkpoint to reclaim the prefree segments | 173 | in the proportion to the percentage over total |
174 | to free segments. By default, 100 segments, 200MB. | 174 | volume size, f2fs tries to conduct checkpoint to |
175 | reclaim the prefree segments to free segments. | ||
176 | By default, 5% over total # of segments. | ||
175 | 177 | ||
176 | max_small_discards This parameter controls the number of discard | 178 | max_small_discards This parameter controls the number of discard |
177 | commands that consist small blocks less than 2MB. | 179 | commands that consist small blocks less than 2MB. |