<div dir="ltr">Hi,<div><br></div><div>max_usage is the amount of memory that WAS used by the container at it's maximum(!) since it was started.</div><div><br></div><div>Regards,</div><div>Flo</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 1:34 PM, Mingjiang Shi <span dir="ltr"><<a href="mailto:mrjewes@gmail.com" target="_blank">mrjewes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you, Andreas. The file memory.limit_in_bytes is under /cgroup/memory/lxc/[container]. <div><br></div><div>By the way, what's the difference between memory.limit_in_bytes and memory.max_usage_in_bytes? On my system, the values are:</div>
<div><div>[root@devmachine lxc110]# cat memory.limit_in_bytes</div><div>9223372036854775807</div><div>[root@devmachine lxc110]# cat memory.max_usage_in_bytes</div><div>495345664</div></div><div><div><br></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 21, 2014 at 5:42 PM, Andreas Laut <span dir="ltr"><<a href="mailto:andreas.laut@spark5.de" target="_blank">andreas.laut@spark5.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>The memory limit is set through cgroup.<br>
You can change this through lxc-cgroup -n [Container]
memory.limit_in_bytes = XG <br>
Or echo into the /sys/fs/cgroup/lxc/[Container]
memory.limit_in_bytes<br>
(and change this in container config:
lxc.cgroup.memory.limit_in_bytes = XG)<br>
<br>
Regards,<br>
Andreas<br>
<br>
Am <a href="tel:21.03.2014%2010" value="+862103201410" target="_blank">21.03.2014 10</a>:28, schrieb Mingjiang Shi:<br>
</div>
<blockquote type="cite"><div><div>
<div dir="ltr">Hi there,
<div>My application in the container is running out of memory.
How to set the resource such as memory limits to a container
so that it gets more memory? I googled a lot but didn't find
straightforward tutorials. Thanks!<br clear="all">
<div><br>
</div>
-- <br>
Thanks<br>
-Mingjiang
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
lxc-users mailing list
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br>Thanks<br>-Mingjiang
</font></span></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>