public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal@redhat.com>
To: Tobias Oetiker <tobi@oetiker.ch>
Cc: linux-kernel@vger.kernel.org
Subject: Re: io-controller: file system meta data operations
Date: Wed, 16 Sep 2009 10:49:46 -0400	[thread overview]
Message-ID: <20090916144946.GB5221@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0909161445440.11232@sebohet.brgvxre.pu>

On Wed, Sep 16, 2009 at 02:58:52PM +0200, Tobias Oetiker wrote:
> Hi Vivek,
> 
> I am trying to optimize user-experience on a busy NFS server.
> 
> I think much could be achieved if the following was true.
> 
>   get a response to file system meta data operations (opendir,
>   readdir, stat, mkdir, unlink) within 200 ms even under heavy
>   read/write strain ...
> 
> In the course of my research I also tried the io-controller patches.
> 
> My test setup consists of several tar processes keeping a disk busy
> by packing and unpacking Linux kernels.
> 
> I was able to bring read and write bandwidth into balance by
> putting the reading and writing tars in to different cgroups.
> 
> Unfortunately this did not seem to help my goal since meta data
> operations do not seem to get treated differently from normal
> operations (or maybe even worse?)
> 
> Is there a way to get io-controller to help me with this?

Hi tobi,

Is it better with vanilla CFQ (without io controller). I see that CFQ
preempts the ongoing process if it receives a meta data request and that
way it provides faster response.

If yes, then similar thing should work for IO controller also. Wait there
is one issue though. If a file system request gets backlogged in a group
while a different group was being served, then preemption will not happen
and that's probably the reason you are not seeing better latencies.

I think there are two ways to handle this in IO controller.

- Put the meta data requesting processes at the front of the service tree
  in respective group. This will make sure that even if there are other
  sequential readers or heavy writers in the group, this request gets
  served quickly.

I will write a small patch for this. I think that should help you.

Thanks
Vivek

  reply	other threads:[~2009-09-16 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16 12:58 io-controller: file system meta data operations Tobias Oetiker
2009-09-16 14:49 ` Vivek Goyal [this message]
2009-09-16 15:03   ` Tobias Oetiker
2009-09-16 17:30     ` Vivek Goyal

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=20090916144946.GB5221@redhat.com \
    --to=vgoyal@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tobi@oetiker.ch \
    /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