From: John Levon <levon@movementarian.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: PATCH: tidy for the max_thread stuff from the kernel list
Date: Wed, 9 Oct 2002 01:59:31 +0100 [thread overview]
Message-ID: <20021009005931.GA86803@compsoc.man.ac.uk> (raw)
In-Reply-To: <E17yzhk-0004vR-00@the-village.bc.nu>
On Tue, Oct 08, 2002 at 08:07:40PM +0100, Alan Cox wrote:
> /*
> - * we need to allow at least 10 threads to boot a system
> + * we need to allow at least 20 threads to boot a system
> */
> - init_task.rlim[RLIMIT_NPROC].rlim_cur = max(10, max_threads/2);
> - init_task.rlim[RLIMIT_NPROC].rlim_max = max(10, max_threads/2);
> + if(max_threads < 20)
> + max_threads = 20;
> +
> + init_task.rlim[RLIMIT_NPROC].rlim_cur = max_threads/2;
> + init_task.rlim[RLIMIT_NPROC].rlim_max = max_threads/2;
Colour me dense, but the comment says 20, and you set rlim_max to 20/2.
Can this possibly be right ?
john
--
"I will eat a rubber tire to the music of The Flight of the Bumblebee"
prev parent reply other threads:[~2002-10-09 0:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-08 19:07 Alan Cox
2002-10-09 0:59 ` John Levon [this message]
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=20021009005931.GA86803@compsoc.man.ac.uk \
--to=levon@movementarian.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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®