Commit 7d1031b3 authored by Ze Zuo's avatar Ze Zuo
Browse files

mm: support pagecache limit

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8NIKC



--------------------------------

Add /pros/sys/vm/cache_limit_mbytes to set page cache limit. This
interface set the upper limit of page cache, if usage of page cache
is over cache_limit_mbytes, it will trigger memory reclaim, the
reclaim size and reclaim interval are decided by interfaces
/proc/sys/vm/cache_reclaim_s and /proc/sys/vm/cache_reclaim_weight,
these two intefaces are introduced in previous patch.

Signed-off-by: default avatarZe Zuo <zuoze1@huawei.com>
parent 621647ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment