cgroup: Add kernel param to enable memory group
authorPhil Elwell <phil@raspberrypi.org>
Mon, 18 Sep 2017 11:01:46 +0000 (12:01 +0100)
committerpopcornmix <popcornmix@gmail.com>
Tue, 19 Sep 2017 11:01:03 +0000 (12:01 +0100)
commitba742b52e5099b3ed964e78f227dc96460b5cdc0
tree1f1dddfc87cac9ccbb202bb56dd5576d67a6436d
parent95b592469ab55bf730ac0c6433077f53a11b5551
cgroup: Add kernel param to enable memory group

cgroup support is useful, but enabling the "memory" cgroup has a 32-byte
overhead per page. Arrange that "memory" cgroup is disabled by default
unless the "cgroup_memory" parameter is set to a true value.

See: https://github.com/raspberrypi/issues/1950

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/cgroup.c