linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Albert Cahalan <albert@users.sf.net>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: PID_MAX_DEFAULT
Date: 14 Jul 2003 00:17:02 -0400	[thread overview]
Message-ID: <1058156222.751.1407.camel@cube> (raw)

A few things have changed since PID_MAX_DEFAULT
was set to 0x8000. It's now adjustable via the
/proc/sys/kernel/pid_max file. An app, /bin/ps,
now reads this file to determine column width
for PID, PPID, PGID, SESS, LWP, and so on.

The common-case Linux box is best served by a
value that keeps /bin/ps PID columns narrow,
allowing for more space elsewhere. The following
patch gives 4-digit PID values as a default.

diff -Naurd old/include/linux/threads.h new/include/linux/threads.h
--- old/include/linux/threads.h	2003-07-12 19:01:14.000000000 -0400
+++ new/include/linux/threads.h	2003-07-12 19:03:34.000000000 -0400
@@ -25,7 +25,7 @@
 /*
  * This controls the default maximum pid allocated to a process
  */
-#define PID_MAX_DEFAULT 0x8000
+#define PID_MAX_DEFAULT 10000
 
 /*
  * A maximum of 4 million PIDs should be enough for a while:




                 reply	other threads:[~2003-07-14  4:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1058156222.751.1407.camel@cube \
    --to=albert@users.sf.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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;
as well as URLs for NNTP newsgroup(s).