Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270525AbTGNEKY (ORCPT ); Mon, 14 Jul 2003 00:10:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270535AbTGNEKY (ORCPT ); Mon, 14 Jul 2003 00:10:24 -0400 Received: from sccrmhc12.comcast.net ([204.127.202.56]:51379 "EHLO sccrmhc12.comcast.net") by vger.kernel.org with ESMTP id S270525AbTGNEKU (ORCPT ); Mon, 14 Jul 2003 00:10:20 -0400 Subject: PID_MAX_DEFAULT From: Albert Cahalan To: linux-kernel Cc: Linus Torvalds Content-Type: text/plain Organization: Message-Id: <1058156222.751.1407.camel@cube> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 14 Jul 2003 00:17:02 -0400 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 31 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: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/