From: ebiederm@xmission.com (Eric W. Biederman)
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pid: Don't hash pid 0.
Date: Sun, 29 Jan 2006 03:04:23 -0700 [thread overview]
Message-ID: <m1mzhf8i54.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20060129003338.28675b78.akpm@osdl.org> (Andrew Morton's message of "Sun, 29 Jan 2006 00:33:38 -0800")
Andrew Morton <akpm@osdl.org> writes:
> ebiederm@xmission.com (Eric W. Biederman) wrote:
>>
>> pid 0 is never exported to userspace, so hashing it servers no useful
>> purpose.
>
> uh-huh.
>
>> Explicitly not hashing pid 0 allows struct pid to be marked as not
>> hashed, and it allows us to avoid checks if for pid 0 when searching
>> for processes to signal if pid 0 does not have a special meaning.
>
> Were you planning on sending a patch to avoid those checks? Because right
> now, this patch looks like a net loss.
Yes.
I just asked for comments on linux-kernel.
Before I go further I feel honor bound to explain my biases.
.....
I am stuck out in no man land on clusters without customary OS services.
Because of their distributed nature I have applications I cannot swap,
can barely suspend, and cannot migrate to other cpus.
To solve that problem it looks to me like I need multiple namespace support
in the OS so when I migrate an application I can capture all of the OS
state the application depends on.
With respect to namespaces I have done some proof of concept implementations
and now that I know that what I want is possible I am working on a production
quality implementation.
I am starting with working my way towards multiple instances of a PID
namespace in the kernel.
What you have seen are the first couple of cleanups to get the worst
of the offenders from being a hinderance.
The next step is to fix the problem of pid reference wrap around,
inside the kernel. At least this looks to be a promising direction
to solve a rare case and lay the foundation that I will need for
multiple instances of the pid namespace.
I am doing my best to work with all interested parties and to provide
a good solution that works for everyone and not just me. Taking
everything in small obviously correct patches as I go.
Eric
next prev parent reply other threads:[~2006-01-29 10:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-29 6:31 Eric W. Biederman
2006-01-29 8:33 ` Andrew Morton
2006-01-29 10:04 ` Eric W. Biederman [this message]
2006-01-30 9:29 ` Jan Engelhardt
2006-01-30 9:44 ` Yuki Cuss
2006-01-30 9:49 ` Jan Engelhardt
2006-01-30 9:58 ` Nigel Cunningham
2006-01-30 10:59 Oleg Nesterov
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=m1mzhf8i54.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.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
Powered by JetHome