Thank you Daniel, but in order to do this I must have kernel support , right? <div><div>dev2:~# lxc-checkconfig | grep memory</div><div>Cgroup memory controller: disabled</div><div>I think I need this property enabled</div>
<div><br></div><div>Thanks in advance</div><br>Jorge E. Espada<br>Phone: +54 9 341 5692435<br>
<br><br><div class="gmail_quote">On Tue, Sep 7, 2010 at 3:00 PM, Daniel Lezcano <span dir="ltr"><<a href="mailto:daniel.lezcano@free.fr">daniel.lezcano@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 09/07/2010 05:22 PM, jorge espada wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Guys I wanna know if it possible to set up a memory controller for each<br>
container..if so..how can I do? any examples?<br>
Thanks<br>
   <br>
</blockquote>
<br></div>
When you start a container, there is a cgroup created automatically where all the processes of the container will belong.<br>
<br>
In order to modify a cgroup subsystem value use the lxc-cgroup -n <name> <subsys_name> <value><br>
<br>
For example : lxc-cgroup -n foo memory.max_usage_in_bytes 268435456<br>
<br>
Or specify it in the configuration file to automatically set it up when the container starts.<br>
<br>
 lxc.cgroup.memory.max_usage_in_bytes = 268435456<br><font color="#888888">
<br>
  -- Daniel<br>
</font></blockquote></div><br></div>