From: Jens Axboe <jens.axboe@oracle.com>
To: Wu Fengguang <fengguang.wu@intel.com>
Cc: Jos Houtman <jos@hyves.nl>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/7] Per-bdi writeback flusher threads
Date: Wed, 8 Apr 2009 08:20:57 +0200 [thread overview]
Message-ID: <20090408062056.GP5178@kernel.dk> (raw)
In-Reply-To: <20090408004410.GA18679@localhost>
On Wed, Apr 08 2009, Wu Fengguang wrote:
> [CC Jens]
>
> On Tue, Apr 07, 2009 at 10:03:38PM +0800, Jos Houtman wrote:
> >
> > I tried the write-back branch from the 2.6-block tree.
> >
> > And I can atleast confirm that it works, atleast in relation to the
> > writeback not keeping up when the device was congested before it wrote a
> > 1024 pages.
> >
> > See: http://lkml.org/lkml/2009/3/22/83 for a bit more information.
>
> Hi Jos, you said that this simple patch solved the problem, however you
> mentioned somehow suboptimal performance. Can you elaborate that? So
> that I can push or improve it.
>
> Thanks,
> Fengguang
> ---
> fs/fs-writeback.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- mm.orig/fs/fs-writeback.c
> +++ mm/fs/fs-writeback.c
> @@ -325,7 +325,8 @@ __sync_single_inode(struct inode *inode,
> * soon as the queue becomes uncongested.
> */
> inode->i_state |= I_DIRTY_PAGES;
> - if (wbc->nr_to_write <= 0) {
> + if (wbc->nr_to_write <= 0 ||
> + wbc->encountered_congestion) {
> /*
> * slice used up: queue for next turn
> */
>
> > But the second problem seen in that thread, a write-starve-read problem does
> > not seem to solved. In this problem the writes of the writeback algorithm
> > starve the ongoing reads, no matter what io-scheduler is picked.
What kind of SSD drive are you using? Does it support queuing or not?
--
Jens Axboe
next prev parent reply other threads:[~2009-04-08 6:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 14:03 [PATCH 0/7] Per-bdi writeback flusher threads Jos Houtman
2009-04-08 0:44 ` Wu Fengguang
2009-04-08 6:20 ` Jens Axboe [this message]
2009-04-08 8:57 ` Jos Houtman
2009-04-08 9:13 ` Jens Axboe
2009-04-09 11:37 ` Jos Houtman
-- strict thread matches above, loose matches on Subject: below --
2009-03-12 14:33 Jens Axboe
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=20090408062056.GP5178@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=fengguang.wu@intel.com \
--cc=jos@hyves.nl \
--cc=linux-kernel@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