<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 13, 2017 at 3:56 PM, Phillips, Julian <span dir="ltr"><<a href="mailto:julian.phillips@roke.co.uk" target="_blank">julian.phillips@roke.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div class="m_-2590340876100748932WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m trying to setup LXD (2.0.9) on Ubuntu 16.04 to run 32 Centos 6 containers, but I seem to be running into a process limit?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">After building the containers, if I run “lxc exec container -- su - user” then I get “can not fork user shell: Resource temporarily unavailable”. The only thing I can see that might be related is that /sys/fs/cgroups/pids/lxc/pids.<wbr>current
is a bit over 1024, which sounds like I might be hitting a 1024 limit. However /sys/fs/cgroups/pids/lxc/pids.<wbr>max is “max”, and I don’t know what else might apply. Does anyone know if there is a limit I need to change somewhere to allow LXD to run more than
1024 processes at once?<u></u><u></u></p>
<p class="MsoNormal"><u></u></p></div></div></blockquote><div><br></div><div>I was able to run 2k processes on unpriv ubuntu containers just fine. Perhaps it's simply ulimit from the container os side (i.e. centos)? I'm using lxd from xenial-backports, in case it matters.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>