public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Shaohua Li <shaohua.li@intel.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: Jens Axboe <jaxboe@fusionio.com>,
	lkml <linux-kernel@vger.kernel.org>,
	"czoccolo@gmail.com" <czoccolo@gmail.com>
Subject: Re: [patch 3/3]cfq-iosched: don't idle if a deep seek queue is slow
Date: Tue, 09 Nov 2010 10:31:24 +0800	[thread overview]
Message-ID: <1289269884.23014.210.camel@sli10-conroe> (raw)
In-Reply-To: <20101109022846.GA29847@redhat.com>

On Tue, 2010-11-09 at 10:28 +0800, Vivek Goyal wrote:
> On Tue, Nov 09, 2010 at 09:36:42AM +0800, Shaohua Li wrote:
> > On Mon, 2010-11-08 at 23:06 +0800, Jens Axboe wrote:
> > > On 2010-11-08 15:20, Vivek Goyal wrote:
> > > > On Mon, Nov 08, 2010 at 10:07:25AM +0800, Shaohua Li wrote:
> > > >> If a deep seek queue slowly deliver requests but disk is much faster, idle
> > > >> for the queue just wastes disk throughput. If the queue delevers all requests
> > > >> before half its slice is used, the patch disable idle for it.
> > > >> In my test, application delivers 32 requests one time, the disk can accept
> > > >> 128 requests at maxium and disk is fast. without the patch, the throughput
> > > >> is just around 30m/s, while with it, the speed is about 80m/s. The disk is
> > > >> a SSD, but is detected as a rotational disk. I can configure it as SSD, but
> > > >> I thought the deep seek queue logic should be fixed too, for example,
> > > >> considering a fast raid.
> > > >>
> > > > 
> > > > Hi Shaohua,
> > > > 
> > > > So looks like you are trying to cut down queue idling in the case when
> > > > device is fast and idling hurts. That's a noble goal, just that detetction
> > > > of this condition only for deep queues does not seem to cover lots of
> > > > cases. Manually one can set slice_idle=0 to handle this situation.
> > > > 
> > > > What about if you have lots of sequential queues (not deep) and they all
> > > > will still idle.
> > > > 
> > > > Secondly, what if driver is just buffering lots of requests in its device
> > > > queue and not necessarily device is processing the reuqests faster.
> > > 
> > > That is not a valid concern, a driver should never extract more than it
> > > can process (pretty much) immediately.
> > > 
> > > > So I think it is a good idea to cut down on idling if we can find that
> > > > underlying device is fast and idling on queue might hurt more. But
> > > > discovering this only using deep queues does not sound very appleaing to
> > > > me. This is help only a particular workload which is driving deep queues.
> > > > So if there was a generic mechanism to tackle this, that would be much
> > > > better.
> > > 
> > > Agree, we could use better metrics for this.
> > Agree we'd better have a better method to measure device speed, but this
> > seems not easy. Even in a fast device, a request might take long time to
> > finish when NCQ is enabled. Before we have generic mechanism, we still
> > need fix some particular cases.
> 
> Do you have a real workload for this case or it is just one of the synthetic
> workload simulated using fio?
No, no real workload. We do a lot of fio tests with different scripts,
this is from one of our tests.


      reply	other threads:[~2010-11-09  2:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08  2:07 [patch 3/3]cfq-iosched: don't idle if a deep seek queue is slow Shaohua Li
2010-11-08 14:20 ` Vivek Goyal
2010-11-08 15:06   ` Jens Axboe
2010-11-09  1:36     ` Shaohua Li
2010-11-09  2:28       ` Vivek Goyal
2010-11-09  2:31         ` Shaohua Li [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=1289269884.23014.210.camel@sli10-conroe \
    --to=shaohua.li@intel.com \
    --cc=czoccolo@gmail.com \
    --cc=jaxboe@fusionio.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vgoyal@redhat.com \
    /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