mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Albert D. Cahalan" <acahalan@cs.uml.edu>
To: Andries.Brouwer@cwi.nl
Cc: linux-kernel@vger.kernel.org, tip@internetwork-ag.de
Subject: Re: [Q] cannot fork w/ 1000s of procs (but still mem avail.)
Date: Thu, 25 Oct 2001 01:04:31 -0400 (EDT)	[thread overview]
Message-ID: <200110250504.f9P54VX94424@saturn.cs.uml.edu> (raw)
In-Reply-To: <UTC200110102054.UAA09813.aeb@cwi.nl> from "Andries.Brouwer@cwi.nl" at Oct 10, 2001 08:54:22 PM

It would be nice to do as follows:

1. have a process limit, with a default based on memory size
2. have a pid limit, 2x the above + 300, rounded up to 9999, 99999, etc.

So if we require 32 kB per process, then...

  0    to  11 MB  -->  3-digit
 12 MB to 155 MB  -->  4-digit
156 MB to 1.6 GB  -->  5-digit   (max kernel memory on x86)
1.7 GB to  16 GB  -->  6-digit

The 15-bit limit isn't so bad though, as you can see from the
above. On x86, you get 1 PID for every 28 kB of kernel memory.
You will have some other uses for kernel memory too, if we may
assume that this box has some real work to do. So more likely,
you can't really have anywhere near that many processes anyway.

Thus there isn't any good reason to break the old user apps.

  reply	other threads:[~2001-10-25  5:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-10 20:54 Andries.Brouwer
2001-10-25  5:04 ` Albert D. Cahalan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-10-09 16:08 Till Immanuel Patzschke
2001-10-09 17:10 ` Rik van Riel

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=200110250504.f9P54VX94424@saturn.cs.uml.edu \
    --to=acahalan@cs.uml.edu \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tip@internetwork-ag.de \
    /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®