9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Maximal number of processes
Date: Fri, 10 Jan 2014 09:00:45 -0500	[thread overview]
Message-ID: <377f011e7a1ee2d06d0c80725a918a08@brasstown.quanstro.net> (raw)
In-Reply-To: <b1e6d4033de5ab04793ad89741c538cb@brasstown.quanstro.net>

> launching 32000 processes was not possible.  the kernel got stuck.

sloppy statement.  it's not clear if the kernel was really stuck or just
hit something exponential.

> here's one thing that's not immediately obvious, even when running the
> kernel.  conv.nmach must be less than 0x7fffffff/(1000*1000) = 2147
> to prevent reprioritize from doing silly things:
>
> 	/*
> 	 *  fairshare = 1.000 * conf.nproc * 1.000/load,
> 	 * except the decimal point is moved three places
> 	 * on both load and fairshare.
> 	 */
> 	fairshare = (conf.nmach*1000*1000)/load;

and, look.  the comment's wrong.  never read the comments!

- erik



  reply	other threads:[~2014-01-10 14:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08  8:28 Pavel Klinkovský
2014-01-08 10:15 ` erik quanstrom
2014-01-08 15:23 ` Steven Stallion
2014-01-08 16:55   ` erik quanstrom
2014-01-09  8:08   ` Pavel Klinkovský
2014-01-09  9:45     ` Bruce Ellis
2014-01-09 16:36       ` Pavel Klinkovský
2014-01-10  9:11     ` Charles Forsyth
2014-01-10  9:15       ` Charles Forsyth
2014-01-10  9:38         ` Bruce Ellis
2014-01-10 13:48         ` erik quanstrom
2014-01-10 14:00           ` erik quanstrom [this message]
2014-01-10 14:24             ` Pavel Klinkovský

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=377f011e7a1ee2d06d0c80725a918a08@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).