[lxc-devel] LXC-Cgroup memory controller

jorge espada espada.jorge at gmail.com
Tue Sep 7 18:59:18 UTC 2010


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.lezcano at free.fr>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20100907/fc4b6dc5/attachment.html>


More information about the lxc-devel mailing list