Linux NFS development
 help / color / mirror / Atom feed
From: Mark Hills <mark.hills@framestore.com>
To: linux-nfs@vger.kernel.org
Subject: NFS server QoS ideas
Date: Wed, 24 Sep 2014 15:56:38 +0100 (BST)	[thread overview]
Message-ID: <alpine.LFD.2.01.1409241248320.7614@sys880.ldn.framestore.com> (raw)

I am looking at possibilities to implement QoS (quality of service) in an 
NFS server -- for a multiuser HPC environment, on NFSv3.

The desire is for a fully loaded server to process requests in some kind 
of "fair share" (like round robin) or priorities based on some attribute; 
eg. uid at the client, request type + origin, or even directory etc.

Criteria could be fairly blunt and specific to our use case to begin with.

I've looked at the code with the following ideas for where to start.

It seems the implementation depends a lot on which attributes to 
share/schedule on:

1) by client IP:

   make use the existing structures

   enhance the svc_xprt_enqueue/dequeue process to schedule svc_xprt
   as these are already per-client

2) by client uid or other RPC attribute:

   have svc_recv make multiple calls to svc_handle_xprt

   buffer the requests into multiple queues held at svc_pool (re-use 
   xpt_deferred?)

3) by NFS operation, file handle etc.:

   most awkward, as there is not buffering of requests at the NFS level
   or shared between threads

   perhaps do as (2) but with a function in svc_program to return
   scheduling criteria

It looks like I need to consider the behaviour when there are multiple 
svc_pool (ie. NUMA)

This is the first time I've looked into this code, I'm interested in any 
comments/criticisms or alternatives.

Thanks

-- 
Mark

             reply	other threads:[~2014-09-24 14:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-24 14:56 Mark Hills [this message]
2014-09-25  0:12 ` NFS server QoS ideas Benjamin Coddington
2014-09-30 16:30   ` Mark Hills

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=alpine.LFD.2.01.1409241248320.7614@sys880.ldn.framestore.com \
    --to=mark.hills@framestore.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox