From: Pavel Emelyanov <xemul@parallels.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Tejun Heo <tj@kernel.org>, Oleg Nesterov <oleg@redhat.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pidns: Make pid_max per namespace
Date: Thu, 10 Mar 2011 12:35:32 +0300 [thread overview]
Message-ID: <4D789B64.9000603@parallels.com> (raw)
In-Reply-To: <20110307155823.22e47d73.akpm@linux-foundation.org>
On 03/08/2011 02:58 AM, Andrew Morton wrote:
> On Thu, 03 Mar 2011 11:39:17 +0300
> Pavel Emelyanov <xemul@parallels.com> wrote:
>
>> Rationale:
>>
>> On x86_64 with big ram people running containers set pid_max on host to
>> large values to be able to launch more containers. At the same time
>> containers running 32-bit software experience problems with large pids - ps
>> calls readdir/stat on proc entries and inode's i_ino happen to be too big
>> for the 32-bit API.
>>
>> Thus, the ability to limit the pid value inside container is required.
>>
>
> This is a behavioural change, isn't it? In current kernels a write to
> /proc/sys/kernel/pid_max will change the max pid on all processes.
> After this change, that write will only affect processes in the current
> namespace. Anyone who was depending on the old behaviour might run
> into problems?
Hardly. If the behavior of some two apps depends on its synchronous change,
these two might want to run in the same pid namespace.
> Also: documentation. Documentation/sysctl/kernel.txt would like an
> update. And perhaps also the pidns documentation which we forgot to
> create :(
OK, I'll fix the existing docs.
Thanks,
Pavel
next prev parent reply other threads:[~2011-03-10 9:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 8:39 [PATCH] pidns: Make pid_max per namespace Pavel Emelyanov
2011-03-07 23:58 ` Andrew Morton
2011-03-10 9:35 ` Pavel Emelyanov [this message]
2011-03-10 9:50 ` Andrew Morton
2011-03-10 10:06 ` Pavel Emelyanov
2011-03-10 10:44 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D789B64.9000603@parallels.com \
--to=xemul@parallels.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox