enable cgroup memory controller
The current alpine kernel doesn’t support the cgroup memory
controller.
The memory controller isolates the memory behavior of a group of tasks
from the rest of the system.
Setting this option increases fixed memory overhead associated with each
page of memory in the system. To retain the old behavior, the cgroup
memory controller should be disabled by default by setting the kernel
boot parameter “cgroup_disable=memory”, which will avoid these
overheads.
Kernel configuration to enable it:
a. Enable CONFIG_CGROUPS
b. Enable CONFIG_RESOURCE_COUNTERS
c. Enable CONFIG_MEMCG
d. Enable CONFIG_MEMCG_SWAP (to use swap extension)
d. Enable CONFIG_MEMCG_KMEM (to use kmem extension)
Links:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Documentation/cgroups/memory.txt?id=refs/tags/v3.14.22
http://cateee.net/lkddb/web-lkddb/MEMCG.html
(from redmine: issue id 3504, created on 2014-11-11, closed on 2015-05-26)
- Relations:
- duplicates #3702 (closed)
- Changesets:
- Revision ea1a2b23 by Natanael Copa on 2015-04-10T08:42:41Z:
main/linux-grsec: enable cgroup memory controller for x86_64
fixes #3504