Commit 0f6fb357 authored by Nanyong Sun's avatar Nanyong Sun Committed by Ma Wupeng
Browse files

memcg: support ksm merge any mode per cgroup

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


CVE: NA

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

Add control file "memory.ksm" to enable ksm per cgroup.
Echo to 1 will set all tasks currently in the cgroup to ksm merge
any mode, which means ksm gets enabled for all vma's of a process.
Meanwhile echo to 0 will disable ksm for them and unmerge the
merged pages.
Cat the file will show the above state and ksm related profits
of this cgroup.

Signed-off-by: default avatarNanyong Sun <sunnanyong@huawei.com>
parent 351ceedb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment