9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] [PATCH] kernel: make conf.nproc configurable. all kernels now default to 100 + ((conf.npage*BY2PG)/MB)*5
Date: Mon, 14 Jun 2021 19:18:16 +0200	[thread overview]
Message-ID: <7113E70C01D7084972602F13901ED0EF@felloff.net> (raw)
In-Reply-To: <3B7CD4D57FAF1705F3A5E6363CAADE67@eigenstate.org>

also just increasing nproc will have performance degradation in
some places. the kernel in some places will just iterate over
all process slots for some queries, like sending to a note
group or finding the processes that use a segment.

if that stucrure could be more dynamic we might not even need
to have such low nproc defaults. but it is here because keeping
it small keeps these operations fast.

there are also limiting factors like that we need to allocate
KSTACK bytes of memory for each process. and buffers when they
do i/o... which might be more limited by kernel KZERO address
window.



--
cinap

      reply	other threads:[~2021-06-14 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07  9:01 james palmer
2021-06-14  1:55 ` ori
2021-06-14 17:18   ` cinap_lenrek [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=7113E70C01D7084972602F13901ED0EF@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9front@9front.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;
as well as URLs for NNTP newsgroup(s).