Commit 52dd2cea authored by Lu Jialin's avatar Lu Jialin
Browse files

memcg: Export memcg.{min/low/high} from cgroupv2 to cgroupv1

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



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

Export memcg.min and memcg.low from cgroupv2 to cgroupv1, in order to
reduce the negtive impact between cgroups when the system memory is
insufficient.

Export memory.high from cgroupv2 to cgroupv1. Therefore, when the usage
of the memcg is larger than memory.high, some pages will be reclaimed
before return to userland, which will throttle the process.

Only export memory.{min/low/high} numbers in mem_cgroup_legacy_files and
declare related functions in front of mem_cgroup_legacy_files.
There is no need to other changes.

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