Commit 3c2c69bf authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

cgroup: make memory.{swappiness, use_hierarchy} special properties

In all kernels, memory.use_hierarchy must be written before there are child
cgroups. In 3.11, memory.swappiness must be written before there are child
cgroups, so let's consider it a "special" property for all kernels.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
CC: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9803bd2c
...@@ -934,6 +934,8 @@ static const char *special_props[] = { ...@@ -934,6 +934,8 @@ static const char *special_props[] = {
"cpuset.cpus", "cpuset.cpus",
"cpuset.mems", "cpuset.mems",
"memory.kmem.limit_in_bytes", "memory.kmem.limit_in_bytes",
"memory.swappiness",
"memory.use_hierarchy",
NULL, NULL,
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment