frank2.net

Some error messages to take note of

Published by Frank Solli on

Some cgroup gotcha's to be aware of

Frank Solli

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.limitinbytes missing/unable to set:

root@server:/boot# grep CONFIGMEMCGSWAP_ENABLED config-3.13.0-53-generic

CONFIGMEMCGSWAP_ENABLED is not set

Rebuild your kernel.

Tags: cgroups.