From: Shaohua Li <shaohua.li@intel.com>
To: Tejun Heo <htejun@gmail.com>
Cc: Jens Axboe <jaxboe@fusionio.com>,
lkml <linux-kernel@vger.kernel.org>,
"Shi, Alex" <alex.shi@intel.com>,
"Chen, Tim C" <tim.c.chen@intel.com>
Subject: Re: [RFC]block: add flush request at head
Date: Mon, 25 Apr 2011 09:01:59 +0800 [thread overview]
Message-ID: <1303693319.3981.272.camel@sli10-conroe> (raw)
In-Reply-To: <20110422225704.GA1576@mtj.dyndns.org>
On Sat, 2011-04-23 at 06:57 +0800, Tejun Heo wrote:
> Hello,
>
> On Mon, Apr 18, 2011 at 04:25:57PM +0800, Shaohua Li wrote:
> > then why requeue adds request at head? we could have the similar issue.
>
> SCSI doesn't seem to do it anymore but it used to cache scmd at
> rq->special over requeues so that it doesn't have to re-initialize
> requests across requeues, which means that unprepped request getting
> ahead of requeued ones may lead to deadlock due to resource
> starvation, so that's why requeue uses front queueing.
>
> The code changed over time and the above requirement might not be
> necessary at this point. I don't know. However, block layer doesn't
> have any method to enforce that requests can't hold any extra resource
> on requeue and having such difficult to trigger deadlock condition
> dormant is scary.
>
> What kind of benchmarking are we talking about on which kernel?
> blk-flush support has been revamped twice recently. 2.6.38 stripped
> out the block layer barrier thing and then it got re-reimplemented for
> 2.6.39 to support advanced flush merging. If the regression (for
> which benchmark btw?) was visible on the older reimplementation, I'd
> really like to know how it behaves on 2.6.39-rcX.
>
> If the problem is localized to 2.6.38, oh well, too bad, but I don't
> think we care too much. If some distro is basing their kernel on
> 2.6.38 and the flush regression is hurting them, backporting the new
> implementation from 2.6.39 shouldn't be too difficult after all. The
> reimplementation was almost self-contained.
>
> If the regression affects 2.6.39 implementation too, eh well, we need
> to think of something, but I'd really like to know what kind of
> workload we're talking about.
>
> > I'll look at this. Optimizing this one should fix the regression too. On
> > the other hand, adding flush request at head if it just follows a flush
> > still has its advantage, because drive cache is already flushed out.
>
> New implementation wouldn't issue two flushes back to back like that,
> it doesn't make any sense to begin with. Again, what have you been
> testing and how?
Hi Tejun,
this is a regression from 2.6.39-rc2 compared to 2.6.39-rc1, so this
isn't related to the flush rewritten. Workload is sysbench fileio,
please see the first mail at the thread for detail.
Thanks,
Shaohua
next prev parent reply other threads:[~2011-04-25 1:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 7:36 Shaohua Li
2011-04-18 8:08 ` Jens Axboe
2011-04-18 8:25 ` Shaohua Li
2011-04-22 22:57 ` Tejun Heo
2011-04-25 1:01 ` Shaohua Li [this message]
2011-04-25 8:21 ` Tejun Heo
2011-04-26 0:49 ` Shaohua Li
2011-04-26 11:29 ` Tejun Heo
2011-04-28 5:13 ` Shaohua Li
2011-04-18 9:26 ` Christoph Hellwig
2011-04-19 1:07 ` 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=1303693319.3981.272.camel@sli10-conroe \
--to=shaohua.li@intel.com \
--cc=alex.shi@intel.com \
--cc=htejun@gmail.com \
--cc=jaxboe@fusionio.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tim.c.chen@intel.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
all inboxes | Powered by JetHome®