<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head><body lang="EN-GB" link="blue" vlink="purple"><div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">It appears that the issue was due to the centos image imposing a 1024 softlimit on the number of processes.  I wouldn’t expect limits configured inside a container
 to cause affects across containers, but at least I have been able to increase the limit in all the containers and can now run as many processes as needed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
    <br />
    <br />

<p style="margin-top:2em;font-family:arial,sans-serif;font-size:9pt">Follow Us: <a href="http://www.linkedin.com/company/roke-manor-research" title="LinkedIn" target="_blank">LinkedIn</a> | <a href="http://plus.google.com/+rokemanor" title="Google+" target="_blank">Google+</a> | <a href="https://twitter.com/rokemanor" title="Twitter" target="_blank">Twitter</a> | <a href="https://www.facebook.com/rokemanor" title="Facebook" target="_blank">Facebook</a></p>

<p style="font-family:arial,sans-serif;font-size:9pt; color:#808080">Roke Manor Research Limited, Romsey, Hampshire, SO51 0ZN, United Kingdom. Part of the Chemring Group. Registered in England & Wales. Registered No: 00267550. The information contained in this e-mail and any attachments is proprietary to Roke Manor Research Limited and must not be passed to any third party without permission. This communication is for information only and shall not create or change any contractual relationship.<br /><a href="http://www.roke.co.uk/?utm_source=Roke&utm_medium=Email&utm_content=Company%20Signature&utm_campaign=Roke" title="Website" target="_blank">www.roke.co.uk</a></p>

<hr style="font-family:arial,sans-serif;font-size:9pt" />



<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Phillips, Julian
<br>
<b>Sent:</b> 14 June 2017 10:36<br>
<b>To:</b> LXC users mailing-list<br>
<b>Subject:</b> RE: [lxc-users] Unable to fork - LXD process limit?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">It’s 1024 total across all containers.  Yesterday I was able to cause the same problem with only two containers (both CentOS 6.8 un-customized).  I started
 1024 processes in container 2, and was unable to run “su - user” in container 1.  The only thing I did to the host after install was to update to 16.04.2 (install image was 16.04).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">(sorry for top posting …)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> lxc-users [mailto:lxc-users-bounces@lists.linuxcontainers.org]
<b>On Behalf Of </b>Stéphane Graber<br>
<b>Sent:</b> 13 June 2017 16:05<br>
<b>To:</b> LXC users mailing-list<br>
<b>Subject:</b> Re: [lxc-users] Unable to fork - LXD process limit?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On Tue, Jun 13, 2017 at 08:56:25AM +0000, Phillips, Julian wrote:<br>
> Hello,<br>
> <br>
> 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?<br>
> <br>
> 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.current is a bit over 1024,
 which sounds like I might be hitting a 1024 limit. However /sys/fs/cgroups/pids/lxc/pids.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?<br>
> <br>
> Yours hopefully,<br>
> Julian<br>
<br>
With 32 containers at 1024 processes, that's 32k which is the global<br>
pidmax for most Linux distributions.<br>
<br>
You may want to bump the value in /proc/sys/kernel/pid_max on the host<br>
to something significantly larger than its current value.<br>
<br>
<br>
-- <br>
Stéphane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com">http://www.ubuntu.com</a><o:p></o:p></p>
</div>




</body></html>