Commit e415dc3b authored by Lu Jialin's avatar Lu Jialin
Browse files

memcg: enable memcg async reclaim

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



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

Introduce two memcg watermarks: warning watermark and safe watermark.
warning watermark = memory.high * memory.high_async_ratio / 100;
safe watermark = memory.high * (memory.high_async_ratio - 10) / 100;
Start memcg async reclaim when memcg usage is larger than warning watermark
but smaller than memory.high; the aim reclaim pages is the diff of memcg
usage and safe watermark. The default memory.high_async_ratio is 100; when
memory.high_async_ratio is 100, memcg async reclaim is disabled;

Signed-off-by: default avatarLu Jialin <lujialin4@huawei.com>
parent a4b08cbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment