Home
last modified time | relevance | path

Searched hist:cdfc41c134d48c1923066bcfa6630b94588ad6bc (Results 1 – 2 of 2) sorted by relevance

/linux/fs/f2fs/
H A Dnode.hdiff cdfc41c134d48c1923066bcfa6630b94588ad6bc Wed Mar 19 05:31:37 CET 2014 Jaegeuk Kim <jaegeuk.kim@samsung.com> f2fs: throttle the memory footprint with a sysfs entry

This patch introduces ram_thresh, a sysfs entry, which controls the memory
footprint used by the free nid list and the nat cache.

Previously, the free nid list was controlled by MAX_FREE_NIDS, while the nat
cache was managed by NM_WOUT_THRESHOLD.
However, this approach cannot be applied dynamically according to the system.

So, this patch adds ram_thresh that users can specify the threshold, which is
in order of 1 / 1024.
For example, if the total ram size is 4GB and the value is set to 10 by default,
f2fs tries to control the number of free nids and nat caches not to consume over
10 * (4GB / 1024) = 10MB.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
H A Dsuper.cdiff cdfc41c134d48c1923066bcfa6630b94588ad6bc Wed Mar 19 05:31:37 CET 2014 Jaegeuk Kim <jaegeuk.kim@samsung.com> f2fs: throttle the memory footprint with a sysfs entry

This patch introduces ram_thresh, a sysfs entry, which controls the memory
footprint used by the free nid list and the nat cache.

Previously, the free nid list was controlled by MAX_FREE_NIDS, while the nat
cache was managed by NM_WOUT_THRESHOLD.
However, this approach cannot be applied dynamically according to the system.

So, this patch adds ram_thresh that users can specify the threshold, which is
in order of 1 / 1024.
For example, if the total ram size is 4GB and the value is set to 10 by default,
f2fs tries to control the number of free nids and nat caches not to consume over
10 * (4GB / 1024) = 10MB.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>