I'm running into a issue with memory.limit_in_bytes. I use cgcreate
to create a memory cgroup and everything is fine until I save the
running config with cgsnapshot. It seems that cgconfigparser will not
let you load in a cgsnapshot file when the memory of the sub group is
the maximum/default even though cgcreate was able to create it. If
you decrease the size it works. Maybe the output below will help
explain. I'm running a compiled 0.38 from sourceforge. Is this a
known issue?
root@sylar ~ $cgclear
root@sylar ~ $umount cgroups
root@sylar ~ $mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroups /sys/fs/cgroup
root@sylar ~ $df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 8362320 3994980 3947912 51% /
udev 3805680 12 3805668 1% /dev
tmpfs 1525896 272 1525624 1% /run
none 5120 0 5120 0% /run/lock
none 3814740 0 3814740 0% /run/shm
cgroups 3814740 0 3814740 0% /sys/fs/cgroup
root@sylar ~ $cat cgconfig.conf
mount {
memory = /cgroup;
}
root@sylar ~ $cgconfigparser -l cgconfig.conf
root@sylar ~ $ls /cgroup
cgroup.clone_children memory.force_empty
memory.memsw.limit_in_bytes memory.numa_stat
memory.swappiness release_agent
cgroup.event_control memory.limit_in_bytes
memory.memsw.max_usage_in_bytes memory.oom_control
memory.usage_in_bytes tasks
cgroup.procs memory.max_usage_in_bytes
memory.memsw.usage_in_bytes memory.soft_limit_in_bytes
memory.use_hierarchy
memory.failcnt memory.memsw.failcnt
memory.move_charge_at_immigrate memory.stat
notify_on_release
root@sylar ~ $cgcreate -g memory:/memtest
root@sylar ~ $ls /cgroup/memtest/
cgroup.clone_children memory.force_empty
memory.memsw.limit_in_bytes memory.numa_stat
memory.swappiness tasks
cgroup.event_control memory.limit_in_bytes
memory.memsw.max_usage_in_bytes memory.oom_control
memory.usage_in_bytes
cgroup.procs memory.max_usage_in_bytes
memory.memsw.usage_in_bytes memory.soft_limit_in_bytes
memory.use_hierarchy
memory.failcnt memory.memsw.failcnt
memory.move_charge_at_immigrate memory.stat
notify_on_release
root@sylar ~ $cat /cgroup/memtest/memory.limit_in_bytes
9223372036854775807
root@sylar ~ $cat cgsnapshot_whitelist.conf
memory.limit_in_bytes
root@sylar ~ $cgsnapshot -w cgsnapshot_whitelist.conf -t > cgconfig.new
root@sylar ~ $cat cgconfig.new
# Configuration file generated by cgsnapshot
mount {
memory = /cgroup;
}
group memtest {
memory {
memory.limit_in_bytes="9223372036854775807";
}
}
root@sylar ~ $cgconfigparser -l cgconfig.new
cgconfigparser; error loading cgconfig.new: This kernel does not
support this feature
root@sylar ~ $vi cgconfig.new
# Configuration file generated by cgsnapshot
mount {
memory = /cgroup;
}
group memtest {
memory {
memory.limit_in_bytes="9123372036854775807";
}
}
root@sylar ~ $cgconfigparser -l cgconfig.new
root@sylar ~ $
Thanks,
--
Dusty
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel