pidns: Make pid accounting and pid_max per namespace
yuzhou at mogujie.com
Fri Oct 9 10:29:20 UTC 2015
I started multiple docker containers in centos6.6(linux-2.6.32-504.16.2),
and there's one bad program was running in one container.
This program produced many child threads continuously without free, so more and
more pid numbers were consumed by this program, until hitting the pix_max limit (32768
default in my system ).
What's worse is that containers and host share the pid numbers resource, so new program
cannot be produced any more in host and other containers.
And, I clone the upstream kernel source from
This problem is still there, I'm not sure.
IMO, we should isolate the pid accounting and pid_max between pid namespaces,
and make them per pidns.
Below post had request for making pid_max per pidns.
More information about the Containers