Commit 5361bef3 authored by Liu Shixin's avatar Liu Shixin
Browse files

memcg: add restrict to swap to cgroup1

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


CVE: NA

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

The memsw can't limit the usage of swap space. Add memory.swap.max
interface to limit the difference value of memsw.usage and memory.usage.
Since a page may occupy both swap entry and a swap cache page, this value
is not exactly equal to swap.usage.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 9bbb63c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment