* PID_MAX_DEFAULT
@ 2003-07-14 4:17 Albert Cahalan
0 siblings, 0 replies; only message in thread
From: Albert Cahalan @ 2003-07-14 4:17 UTC (permalink / raw)
To: linux-kernel; +Cc: Linus Torvalds
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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-14 4:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 4:17 PID_MAX_DEFAULT Albert Cahalan
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).