On 09/07/2010 05:22 PM, jorge espada wrote: > Hi Guys I wanna know if it possible to set up a memory controller for each > container..if so..how can I do? any examples? > Thanks >
When you start a container, there is a cgroup created automatically where all the processes of the container will belong. In order to modify a cgroup subsystem value use the lxc-cgroup -n <name> <subsys_name> <value> For example : lxc-cgroup -n foo memory.max_usage_in_bytes 268435456 Or specify it in the configuration file to automatically set it up when the container starts. lxc.cgroup.memory.max_usage_in_bytes = 268435456 -- Daniel ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel