Thank you Daniel, but in order to do this I must have kernel support ,
right?
dev2:~# lxc-checkconfig | grep memory
Cgroup memory controller: disabled
I think I need this property enabled
Thanks in advance
Jorge E. Espada
Phone: +54 9 341 5692435
On Tue, Sep 7, 2010 at 3:00 PM, Daniel Lezcano daniel.lezc...@free.frwrote:
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