From: Matt Mackall <mpm@selenic.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 4/8] base-small: shrink PID tables
Date: Mon, 31 Jan 2005 01:25:52 -0600 [thread overview]
Message-ID: <5.687457650@selenic.com> (raw)
In-Reply-To: <4.687457650@selenic.com>
CONFIG_BASE_SMALL reduce size of pidmap table for small machines
Signed-off-by: Matt Mackall <mpm@selenic.com>
Index: tq/include/linux/threads.h
===================================================================
--- tq.orig/include/linux/threads.h 2005-01-25 09:26:16.000000000 -0800
+++ tq/include/linux/threads.h 2005-01-26 15:16:55.000000000 -0800
@@ -7,7 +7,7 @@
* The default limit for the nr of threads is now in
* /proc/sys/kernel/threads-max.
*/
-
+
/*
* Maximum supported processors that can run under SMP. This value is
* set via configure setting. The maximum is equal to the size of the
@@ -25,11 +25,12 @@
/*
* This controls the default maximum pid allocated to a process
*/
-#define PID_MAX_DEFAULT 0x8000
+#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)
/*
* A maximum of 4 million PIDs should be enough for a while:
*/
-#define PID_MAX_LIMIT (sizeof(long) > 4 ? 4*1024*1024 : PID_MAX_DEFAULT)
+#define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
+ (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
#endif
next prev parent reply other threads:[~2005-01-31 7:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-31 7:25 [PATCH 0/8] base-small: CONFIG_BASE_SMALL for small systems Matt Mackall
2005-01-31 7:25 ` [PATCH 1/8] base-small: introduce the CONFIG_BASE_SMALL flag Matt Mackall
2005-01-31 7:25 ` [PATCH 2/8] base-small: shrink major_names hash Matt Mackall
2005-01-31 7:25 ` [PATCH 3/8] base-small: shrink chrdevs hash Matt Mackall
2005-01-31 7:25 ` Matt Mackall [this message]
2005-01-31 7:25 ` [PATCH 5/8] base-small: shrink UID hash Matt Mackall
2005-01-31 7:25 ` [PATCH 6/8] base-small: shrink futex queues Matt Mackall
2005-01-31 7:25 ` [PATCH 7/8] base-small: shrink timer hashes Matt Mackall
2005-01-31 7:25 ` [PATCH 8/8] base-small: shrink console buffer Matt Mackall
2005-02-01 0:55 ` [PATCH 0/8] base-small: CONFIG_BASE_SMALL for small systems Horst von Brand
2005-02-01 4:18 ` Matt Mackall
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=5.687457650@selenic.com \
--to=mpm@selenic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.