<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/02/13 02:33,
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users-request@lists.sourceforge.net">lxc-users-request@lists.sourceforge.net</a> wrote:<br>
</div>
<blockquote
cite="mid:mailman.160121.1359639216.2177.lxc-users@lists.sourceforge.net"
type="cite">
<pre wrap="">On 2013-01-31 07:41, Gary Ballantyne wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> </span>*# echo '64M' > /sys/fs/cgroup/memory/lxc/memory.limit_in_bytes*
<span class="moz-txt-citetags">> </span># cat /sys/fs/cgroup/memory/lxc/memory.limit_in_bytes (return 67108864)
</pre>
</blockquote>
<pre wrap="">Dear Gary,
what's the value of '<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>sys/fs/cgroup/memory/lxc<span class="moz-txt-tag">/</span></i>'? If it's not '1', all cgroup settings in "lxc" will not be used as a template for the container "lxc/foo".
It might be much simpler to add lxc config entries like 'lxc.cgroup.memory.limit_in_bytes = 64M' to your container configuration.
And to limit use of swap, to my knowledge you also have to limit 'memory.memsw...'. But i may be wrong, on my LXC environmet i don't use swap at all.
greetings
Guido
</pre>
</blockquote>
Thanks Guido<br>
<br>
Did you mean the value of
/sys/fs/cgroup/memory/lxc/cgroup.clone_children? That guy is '1'.<br>
<br>
Modifying the container configuration certainly works --- but I'd
like to limit the total RAM available to all containers, rather than
limit each individual container. I tried setting
lxc.cgroup.memory.limit_in_bytes to various values (-1, 1G) to see
if the container would pick up
/sys/fs/cgroup/memory/lxc/memory.limit_in_bytes --- but no luck.<br>
<br>
</body>
</html>