diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-08-04 10:10:15 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-06 09:00:18 -0400 |
commit | d2dc095f4280ad5fdea33769e8e119fd16648426 (patch) | |
tree | f97a7bd3a06822c463e678770fb63dab52d0bc94 /Documentation | |
parent | b59d0bae6ca30c496f298881616258f9cde0d9c6 (diff) |
f2fs: add sysfs entries to select the gc policy
Add sysfs entry gc_idle to control the gc policy. Where
gc_idle = 1 corresponds to selecting a cost benefit approach,
while gc_idle = 2 corresponds to selecting a greedy approach
to garbage collection. The selection is mutually exclusive one
approach will work at any point. If gc_idle = 0, then this
option is disabled.
Cc: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Reviewed-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
[Jaegeuk Kim: change the select_gc_type() flow slightly]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/sysfs-fs-f2fs | 6 | ||||
-rw-r--r-- | Documentation/filesystems/f2fs.txt | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs b/Documentation/ABI/testing/sysfs-fs-f2fs index 98e53a09530a..31942efcaf0e 100644 --- a/Documentation/ABI/testing/sysfs-fs-f2fs +++ b/Documentation/ABI/testing/sysfs-fs-f2fs | |||
@@ -18,3 +18,9 @@ Contact: "Namjae Jeon" <namjae.jeon@samsung.com> | |||
18 | Description: | 18 | Description: |
19 | Controls the default sleep time for gc_thread. Time | 19 | Controls the default sleep time for gc_thread. Time |
20 | is in milliseconds. | 20 | is in milliseconds. |
21 | |||
22 | What: /sys/fs/f2fs/<disk>/gc_idle | ||
23 | Date: July 2013 | ||
24 | Contact: "Namjae Jeon" <namjae.jeon@samsung.com> | ||
25 | Description: | ||
26 | Controls the victim selection policy for garbage collection. | ||
diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index 5daf3bb2eef9..3cd27bed6349 100644 --- a/Documentation/filesystems/f2fs.txt +++ b/Documentation/filesystems/f2fs.txt | |||
@@ -158,6 +158,12 @@ Files in /sys/fs/f2fs/<devname> | |||
158 | time for the garbage collection thread. Time is | 158 | time for the garbage collection thread. Time is |
159 | in milliseconds. | 159 | in milliseconds. |
160 | 160 | ||
161 | gc_idle This parameter controls the selection of victim | ||
162 | policy for garbage collection. Setting gc_idle = 0 | ||
163 | (default) will disable this option. Setting | ||
164 | gc_idle = 1 will select the Cost Benefit approach | ||
165 | & setting gc_idle = 2 will select the greedy aproach. | ||
166 | |||
161 | ================================================================================ | 167 | ================================================================================ |
162 | USAGE | 168 | USAGE |
163 | ================================================================================ | 169 | ================================================================================ |