aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2016-01-20 18:02:41 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-20 20:09:18 -0500
commit489c2a20a414351fe0813a727c34600c0f7292ae (patch)
tree3e1417700db70366ac8d9a73b38958c3904732db /init
parent04823c833b3eaef7816e28e3727124394f6bb3c3 (diff)
mm: memcontrol: introduce CONFIG_MEMCG_LEGACY_KMEM
Let the user know that CONFIG_MEMCG_KMEM does not apply to the cgroup2 interface. This also makes legacy-only code sections stand out better. [arnd@arndb.de: mm: memcontrol: only manage socket pressure for CONFIG_INET] Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@suse.cz> Cc: Tejun Heo <tj@kernel.org> Acked-by: Vladimir Davydov <vdavydov@virtuozzo.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig10
1 files changed, 9 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 5b86082fa238..a0a15cec8daf 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -964,10 +964,13 @@ config MEMCG_SWAP_ENABLED
964 For those who want to have the feature enabled by default should 964 For those who want to have the feature enabled by default should
965 select this option (if, for some reason, they need to disable it 965 select this option (if, for some reason, they need to disable it
966 then swapaccount=0 does the trick). 966 then swapaccount=0 does the trick).
967config MEMCG_LEGACY_KMEM
968 bool
967config MEMCG_KMEM 969config MEMCG_KMEM
968 bool "Memory Resource Controller Kernel Memory accounting" 970 bool "Legacy Memory Resource Controller Kernel Memory accounting"
969 depends on MEMCG 971 depends on MEMCG
970 depends on SLUB || SLAB 972 depends on SLUB || SLAB
973 select MEMCG_LEGACY_KMEM
971 help 974 help
972 The Kernel Memory extension for Memory Resource Controller can limit 975 The Kernel Memory extension for Memory Resource Controller can limit
973 the amount of memory used by kernel objects in the system. Those are 976 the amount of memory used by kernel objects in the system. Those are
@@ -1071,6 +1074,11 @@ config CGROUP_FREEZER
1071 Provides a way to freeze and unfreeze all tasks in a 1074 Provides a way to freeze and unfreeze all tasks in a
1072 cgroup. 1075 cgroup.
1073 1076
1077 This option affects the ORIGINAL cgroup interface. The cgroup2 memory
1078 controller includes important in-kernel memory consumers per default.
1079
1080 If you're using cgroup2, say N.
1081
1074config CGROUP_HUGETLB 1082config CGROUP_HUGETLB
1075 bool "HugeTLB controller" 1083 bool "HugeTLB controller"
1076 depends on HUGETLB_PAGE 1084 depends on HUGETLB_PAGE