All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislav Kinsbursky <skinsbursky@parallels.com>
To: "bfields@fieldses.org" <bfields@fieldses.org>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
	"devel@openvz.org" <devel@openvz.org>
Subject: NFSd threads amount policy in containers context
Date: Mon, 26 Nov 2012 20:09:01 +0400	[thread overview]
Message-ID: <50B3941D.9030202@parallels.com> (raw)

Hello.
I would like to discuss how to control NFSd threads amount from container environment (is this particular case it means start of NFS server in network namespace 
different to init_net).

So, I see three possible policies (let's assume, that there are two containers - one requested 3 NFSd threads and another one - 4 NFSd threads):
1) start as many threads, as requested. I.e 7 threads for specified case (simplest case, but probably this is to much - 100 containers will start ~800 threads 
by default).
2) start maximum number of requested threads. I.e. 4 threads for specified case (if NFSd server in container, requested 4 threads, will be stopped, then 3 
thread will left working; will require some way to manage - rb tree of sorted list).
3) There could be some other (more flexible) policy: combine second one with running of one more thread for each second and further network namespace, started 
NFS server. I.e.:
1 net ns: 3 threads request = 3 threads started
2 net ns: 4 threads request = 4 + 1 (per-net thread: 1 net ns) = 5 threads started
3 net ns: 8 threads request = 8 + 2 (per-net threads: 2 net ns) = 10 threads started

Bruce and community, what do you think about all this?

-- 
Best regards,
Stanislav Kinsbursky

             reply	other threads:[~2012-11-26 16:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26 16:09 Stanislav Kinsbursky [this message]
2012-11-26 22:08 ` NFSd threads amount policy in containers context bfields
2012-11-27  8:04   ` Stanislav Kinsbursky
2012-11-27 14:31     ` bfields

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=50B3941D.9030202@parallels.com \
    --to=skinsbursky@parallels.com \
    --cc=bfields@fieldses.org \
    --cc=devel@openvz.org \
    --cc=linux-nfs@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.