public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer@redhat.com>
To: Shaohua Li <shaohua.li@intel.com>
Cc: jaxboe@fusionio.com, vgoyal@redhat.com, czoccolo@gmail.com,
	guijianfeng@cn.fujitsu.com, linux-kernel@vger.kernel.org
Subject: Re: cfq-iosched preempt issues
Date: Wed, 02 Mar 2011 11:17:16 -0500	[thread overview]
Message-ID: <x49wrkh33ar.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20110302124341.GA23940@sli10-conroe.sh.intel.com> (Shaohua Li's message of "Wed, 2 Mar 2011 20:43:41 +0800")

Shaohua Li <shaohua.li@intel.com> writes:

> queue preemption is good for some workloads and not for others. With commit
> f8ae6e3eb825, the impact is amplified. I currently have two issues with it:
> 1. In a multi-threaded workload, each thread runs a random read/write (for
> example, mmap write) with iodepth 1. I found the queue depth gets smaller
> with commit f8ae6e3eb825. The reason is write gets preempted, so more threads
> are waitting for write, and on the other hand, there are less threads doing
> read. This will make the queue depth small, so performance drops a little.
> So in this case, speed up write can speed up read too, but we can't detect
> it.

I don't fully understand your workload.  What is the aio-stress or fio
command line/config file?

> 2. cfq_may_dispatch doesn't limit queue depth if the queue is the sole queue.
> What about if there are two queues, one sync and one async? If the sync queue's
> think time is small, we can treat it as the sole queue, because the sync queue
> will preempt async queue, so we don't need care about the async queue's latency.
> The issue exists before, but f8ae6e3eb825 amplifies it. Below is a patch for it.

I'm not sure I entirely agree with that reasoning.  Do you have real
workloads that are regressing due to this commit, or is it just these
cooked up benchmarks?

Cheers,
Jeff

  reply	other threads:[~2011-03-02 16:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02 12:43 cfq-iosched preempt issues Shaohua Li
2011-03-02 16:17 ` Jeff Moyer [this message]
2011-03-03  0:46   ` Shaohua Li
2011-03-02 20:21 ` Vivek Goyal
2011-03-02 21:05   ` Jeff Moyer
2011-03-02 21:27     ` Vivek Goyal
2011-03-02 21:47       ` Jeff Moyer
2011-03-03  1:05       ` Shaohua Li
2011-03-03  0:49   ` Shaohua Li

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=x49wrkh33ar.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer@redhat.com \
    --cc=czoccolo@gmail.com \
    --cc=guijianfeng@cn.fujitsu.com \
    --cc=jaxboe@fusionio.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaohua.li@intel.com \
    --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