[CRIU] [PATCH 1/2] cgroup: make memory.{swappiness, use_hierarchy} special properties

Tycho Andersen tycho.andersen at canonical.com
Tue Jul 12 17:53:19 PDT 2016


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: Tycho Andersen <tycho.andersen at canonical.com>
CC: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/cgroup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/criu/cgroup.c b/criu/cgroup.c
index 72d80c4..b35878b 100644
--- a/criu/cgroup.c
+++ b/criu/cgroup.c
@@ -934,6 +934,8 @@ static const char *special_props[] = {
 	"cpuset.cpus",
 	"cpuset.mems",
 	"memory.kmem.limit_in_bytes",
+	"memory.swappiness",
+	"memory.use_hierarchy",
 	NULL,
 };
 
-- 
2.7.4



More information about the CRIU mailing list