mm: memcontrol: allow to disable kmem accounting for cgroup2
authorVladimir Davydov <[email protected]>
Wed, 20 Jan 2016 23:02:38 +0000 (15:02 -0800)
committerLinus Torvalds <[email protected]>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commit04823c833b3eaef7816e28e3727124394f6bb3c3
tree2fd7291cb5605b74a834aa44f91a754ae860238a
parent52c29b04823cb1bab2805336b80866325fe2bc3f
mm: memcontrol: allow to disable kmem accounting for cgroup2

Kmem accounting might incur overhead that some users can't put up with.
Besides, the implementation is still considered unstable.  So let's
provide a way to disable it for those users who aren't happy with it.

To disable kmem accounting for cgroup2, pass cgroup.memory=nokmem at
boot time.

Signed-off-by: Vladimir Davydov <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/kernel-parameters.txt
mm/memcontrol.c