mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@bug.ucw.cz>
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.rutgers.edu
Subject: Re: size of pid_t (was: Re: NR_TASKS as config option)
Date: Sun, 13 Jun 1999 21:48:10 +0200	[thread overview]
Message-ID: <19990613214810.A548@bug.ucw.cz> (raw)
In-Reply-To: <UTC199906131847.UAA26622.aeb@eland.cwi.nl>; from Andries.Brouwer@cwi.nl on Sun, Jun 13, 1999 at 08:47:08PM +0200

Hi!

>         I'd actually like to see a 64-bit pid_t.
>         First of all, I've already once being bitten
>         by a bug caused by a re-used PID...
> 
> Yes, eventually we'll have to.
> But a 32-bit pid_t is not so bad:
> With a hundred new processes spawned every second
> a 32-bit pid_t will wrap only after about 500 days.

Everyone should assume PID's are being reused! If you have buggy apps
which assume pid's not to be reused, then just watch your proc and
reboot when you are coming to 2G-th process ;-). (Ok, there's one bug
in kernel w.r.t. pid wrapparound - in console and it allows console
user to send arbitrary signals to newly created processes.)

What is bad is that clusters pretty much need 32bit pids... 

> Conclusion:
> - a 64-bit pid_t is most convenient for the kernel, but
>   gives trouble with libc.
> - a 32-bit pid_t is what we have today, but we use only
>   15 bits because of SYSV IPC (or perhaps other reasons
>   I am unaware of).

And becuase /proc internals. But please please go and change it.

								Pavel
-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~1999-06-14 19:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-13 18:47 Andries.Brouwer
1999-06-13 19:48 ` Pavel Machek [this message]
1999-06-15  0:43   ` Mike Touloumtzis
1999-06-14  9:08 ` Matthew Wilcox
1999-06-14  9:22 ` Ralf Baechle

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=19990613214810.A548@bug.ucw.cz \
    --to=pavel@bug.ucw.cz \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.rutgers.edu \
    /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

all inboxes | Powered by JetHome®