From: Vivek Goyal <vgoyal@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] xfs: Do background CIL flushes via a workqueue
Date: Tue, 27 Mar 2012 11:57:59 -0400 [thread overview]
Message-ID: <20120327155759.GB28707@redhat.com> (raw)
In-Reply-To: <20120327143127.GA11434@infradead.org>
On Tue, Mar 27, 2012 at 10:31:27AM -0400, Christoph Hellwig wrote:
> Vivek, does CFQ still need any hints for this sort of handoff?
>
Christoph, I don't understand the issue enough to comment on it.
Had a quick look at the patch. Looks like some action (writing log), has
been moved to a worker thread. And in some cases (log force triggered
flush, whatever it is), we seem to prefer to do it from the submitter's
context.
> > To avoid potential issues with "smart" IO schedulers, don't use the
> > workqueue for log force triggered flushes. Instead, do them directly
> > so that the log IO is done directly by the process issuing the log
> > force and so doesn't get stuck on IO elevator queue idling
> > incorrectly delaying the log IO from the workqueue.
Dave, can you explain a bit more that how CFQ idling in the above case.
You seem to be saying that if we do more idling if this operation is
done from worker thread context. I don't udnerstand why.
In general, one can run into issues with CFQ if there are two processes
doing IO and they are dependent on each other for completion of IO. CFQ
will not know about this dependency and might end up waiting for IO from
one process while next IO will come from next process now.
So I am not sure why "smart" IO schedulers will run into issues if we
use a worker thread to do log IO. Also not sure, why same thing is right
thing to do when it is not forced flush.
Thanks
Vivek
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-03-27 15:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 9:46 [PATCH] xfs: Do background CIL flushes via a workqueue Dave Chinner
2012-03-27 14:31 ` Christoph Hellwig
2012-03-27 15:57 ` Vivek Goyal [this message]
2012-03-27 16:03 ` Christoph Hellwig
2012-03-27 16:19 ` Vivek Goyal
2012-03-27 17:03 ` Christoph Hellwig
2012-03-27 17:18 ` Vivek Goyal
2012-03-27 17:23 ` Vivek Goyal
2012-03-29 8:52 ` Dave Chinner
2012-03-29 8:51 ` Dave Chinner
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=20120327155759.GB28707@redhat.com \
--to=vgoyal@redhat.com \
--cc=hch@infradead.org \
--cc=xfs@oss.sgi.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