Hi, Thanks to the fast response. Indeed: #cat /sys/fs/cgroup/memory/memory.use_hierarchy 1 #cat /sys/fs/cgroup/memory/0/memory.use_hierarchy 1 However: #echo 0 > /sys/fs/cgroup/memory/memory.use_hierarchy bash: echo: write error: Device or resource busy #echo 0 > /sys/fs/cgroup/memory/0/memory.use_hierarchy bash: echo: write error: Invalid argument So it seems that use_hierarchy cannot be changed via writing to sysfs Any advice ? Regards, Kevin On Tue, Apr 15, 2014 at 5:49 AM, Li Zefan <lizefan@xxxxxxxxxx> wrote: > 于 2014/4/14 19:54, Kevin Wilson 写道: >> Hello, >> >> First I hope this mailing list is the proper one for asking the >> following question: >> I do the following, as root, on Fedora 20 with 3.12.7-300.fc20.x86_64 kernel: >> >> create a cgroup called "0" >> /sys/fs/cgroup/memory/0 >> >> run: >> >> echo "1" > /sys/fs/cgroup/memory/0/memory.oom_control >> bash: echo: write error: Invalid argument >> >> Why am I having this error ? >> >> According to the documentation: >> >> http://lxr.free-electrons.com/source/Documentation/cgroups/memory.txt >> this should work. >> > > Check if /sys/fs/cgroup/memory/memory/use_hierarchy is 1, if so the failure > is an expectecd bahavior. > > "This operation is only allowed to the top cgroup of a sub-hierarchy." > -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html