diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-03-19 14:17:21 +0900 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:21:23 +0200 |
commit | 5a5deec05fe0908528e4115c216b4d65f15bfb82 (patch) | |
tree | 9d81f49b3b260434e0651b1c37152db46f05dc72 /Documentation/filesystems | |
parent | 1dec0c8a6409ba5d1440a8d04d736c8f833a7ba1 (diff) | |
download | kernel_samsung_espresso10-5a5deec05fe0908528e4115c216b4d65f15bfb82.tar.gz kernel_samsung_espresso10-5a5deec05fe0908528e4115c216b4d65f15bfb82.tar.bz2 kernel_samsung_espresso10-5a5deec05fe0908528e4115c216b4d65f15bfb82.zip |
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 a920935dc97..a37f391bacd 100644 --- a/Documentation/filesystems/f2fs.txt +++ b/Documentation/filesystems/f2fs.txt @@ -167,9 +167,11 @@ Files in /sys/fs/f2fs/<devname> reclaim_segments This parameter controls the number of prefree segments to be reclaimed. If the number of prefree - segments is larger than this number, f2fs tries to - conduct checkpoint to reclaim the prefree segments - to free segments. By default, 100 segments, 200MB. + segments is larger than the number of segments + in the proportion to the percentage over total + volume size, f2fs tries to conduct checkpoint to + reclaim the prefree segments to free segments. + By default, 5% over total # of segments. ipu_policy This parameter controls the policy of in-place updates in f2fs. There are five policies: |