From: Jean Delvare <jdelvare@suse.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] fork_init: Update max_threads comment
Date: Mon, 2 Mar 2015 11:01:03 +0100 [thread overview]
Message-ID: <20150302110103.02ff7dae@endymion.delvare> (raw)
The comment explaining what value max_threads is set to is outdated.
The maximum memory consumption ratio for thread structures was 1/2
until February 2002, then it was briefly changed to 1/16 before being
set to 1/8 which we still use today. The comment was never updated
to reflect that change, it's about time.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
kernel/fork.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-4.0-rc1.orig/kernel/fork.c 2015-02-23 03:21:14.000000000 +0100
+++ linux-4.0-rc1/kernel/fork.c 2015-03-02 10:48:45.407215590 +0100
@@ -270,8 +270,8 @@ void __init fork_init(unsigned long memp
/*
* The default maximum number of threads is set to a safe
- * value: the thread structures can take up at most half
- * of memory.
+ * value: the thread structures can take up at most one
+ * eighth of the memory.
*/
max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE);
--
Jean Delvare
SUSE L3 Support
reply other threads:[~2015-03-02 10:01 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=20150302110103.02ff7dae@endymion.delvare \
--to=jdelvare@suse.de \
--cc=akpm@linux-foundation.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 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®