[lxc-users] Unable to fork - LXD process limit?

Stéphane Graber stgraber at ubuntu.com
Tue Jun 13 15:04:53 UTC 2017


On Tue, Jun 13, 2017 at 08:56:25AM +0000, Phillips, Julian wrote:
> Hello,
> 
> 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?
> 
> 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?
> 
> Yours hopefully,
> Julian

With 32 containers at 1024 processes, that's 32k which is the global
pidmax for most Linux distributions.

You may want to bump the value in /proc/sys/kernel/pid_max on the host
to something significantly larger than its current value.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170613/60e9a446/attachment.sig>


More information about the lxc-users mailing list