All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Zealey <mark@zealos.org>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.2.x process limits (NR_TASKS)?
Date: Thu, 18 Oct 2001 20:13:21 +0100	[thread overview]
Message-ID: <20011018201321.B3187@itsolve.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.33.0110181139380.30308-100000@tigger.unnerving.org> <3BCF27D5.CE4C53DE@didntduck.org>
In-Reply-To: <3BCF27D5.CE4C53DE@didntduck.org>; from bgerst@didntduck.org on Thu, Oct 18, 2001 at 03:04:53PM -0400

On Thu, Oct 18, 2001 at 03:04:53PM -0400, Brian Gerst wrote:

> Gregory Ade wrote:
> > 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > We're running into what appears to be a 256-process-per-user limit on one
> > of our webservers, due to the number of processes running as a specific
> > user for our application.  I'd like to increase the process limit, and
> > *THINK* that to do so i need to increase NR_TASKS in
> > /usr/src/linux/include/linux/tasks.h.
> > 
> > Is this correct?  What other things do I need to watch out for when making
> > this modification?
> > 
> > Also, where can this limit be changed in 2.4.x?
> > 
> > Thanks ahead of time.
> > 
> 
> 2.2.x has a hard limit of 512 tasks on the x86 because it uses hardware
> task switching.  2.4.x allows an unlimited number of tasks, and is
> configurable via /proc/sys/kernel/threads-max and ulimit.

eh? why? The GDT can hold up to 2 ** 16 bytes (limit is 16-bit). Each entry is 8
bytes, that means that there are 8192 possible 'slots' in the GDT. Each process
has 2 entries, an LDT and a task struct entry. Why is the limit 512? couldn't it
be about 4000? (Some entries are needed for APM and other things...)

-- 

Mark Zealey (aka JALH on irc.openprojects.net: #zealos and many more)
mark@zealos.org
mark@itsolve.co.uk

UL++++>$ G!>(GCM/GCS/GS/GM) dpu? s:-@ a16! C++++>$ P++++>+++++$ L+++>+++++$
!E---? W+++>$ N- !o? !w--- O? !M? !V? !PS !PE--@ PGP+? r++ !t---?@ !X---?
!R- b+ !tv b+ DI+ D+? G+++ e>+++++ !h++* r!-- y--

(www.geekcode.com)

  reply	other threads:[~2001-10-18 19:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-18 18:42 2.2.x process limits (NR_TASKS)? Gregory Ade
2001-10-18 19:04 ` Brian Gerst
2001-10-18 19:13   ` Mark Zealey [this message]
2001-10-18 19:38     ` Brian Gerst
2001-10-21 15:42   ` Alan Cox
2001-10-18 19:29 ` Miquel van Smoorenburg

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=20011018201321.B3187@itsolve.co.uk \
    --to=mark@zealos.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.