kernel_optimize_test/fs/f2fs
Jaegeuk Kim cdfc41c134 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>
2014-03-20 22:10:09 +09:00
..
acl.c f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00
acl.h f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00
checkpoint.c f2fs: call f2fs_wait_on_page_writeback instead of native function 2014-03-20 22:10:04 +09:00
data.c f2fs: introduce nr_pages_to_write for segment alignment 2014-03-18 16:37:53 +09:00
debug.c f2fs: implement a lock-free stat_show 2014-02-24 16:00:41 +09:00
dir.c f2fs: call f2fs_wait_on_page_writeback instead of native function 2014-03-20 22:10:04 +09:00
f2fs.h f2fs: throttle the memory footprint with a sysfs entry 2014-03-20 22:10:09 +09:00
file.c f2fs: call f2fs_wait_on_page_writeback instead of native function 2014-03-20 22:10:04 +09:00
gc.c f2fs: remove the unused ctor argument of f2fs_kmem_cache_create() 2014-03-10 18:45:14 +09:00
gc.h f2fs: add a sysfs entry to control max_victim_search 2014-01-08 13:45:08 +09:00
hash.c f2fs: unify string length declarations and usage 2012-12-28 11:27:53 +09:00
inline.c f2fs: remove the needless parameter of f2fs_wait_on_page_writeback 2014-01-14 17:45:54 +09:00
inode.c f2fs: introduce get_dirty_dents for readability 2014-03-18 12:34:30 +09:00
Kconfig f2fs: introduce CONFIG_F2FS_CHECK_FS for BUG_ON control 2013-10-29 15:43:01 +09:00
Makefile f2fs: key functions to handle inline data 2013-12-26 20:40:09 +09:00
namei.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-01-28 08:38:04 -08:00
node.c f2fs: throttle the memory footprint with a sysfs entry 2014-03-20 22:10:09 +09:00
node.h f2fs: throttle the memory footprint with a sysfs entry 2014-03-20 22:10:09 +09:00
recovery.c f2fs: call f2fs_wait_on_page_writeback instead of native function 2014-03-20 22:10:04 +09:00
segment.c f2fs: avoid to return incorrect errno of read_normal_summaries 2014-03-18 09:29:53 +09:00
segment.h f2fs: introduce nr_pages_to_write for segment alignment 2014-03-18 16:37:53 +09:00
super.c f2fs: throttle the memory footprint with a sysfs entry 2014-03-20 22:10:09 +09:00
xattr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-01-28 08:38:04 -08:00
xattr.h f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00