cgroup gotchas

May. 15, 2015

hljs.initHighlightingOnLoad();

FYI:

cgconfigparser may send you the error message:

/usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: This kernel does not support this feature

However, your kernel is probably supporting cgroups, you might as well have a configuration / syntax error in cgconfig.conf

An example is:

group webusers {perm {task {uid=root;gid=root;}admin {uid=root;gid=root;}}memory {memory.limit_in_bytes=1G;}cpu {cpu.shares=UNDEF;}}

Here the cpu.shares value is UNDEF, which is not valid, change this to for example 200, and you are good to go.

memory.memsw.limit

in

bytes missing/unable to set:

root@server:/boot# grep CONFIG

MEMCG

SWAP_ENABLED config-3.13.0-53-generic

CONFIG

MEMCG

SWAP_ENABLED is not set

Rebuild your kernel.

comments powered by Disqus