From: Jeff Moyer <jmoyer@redhat.com>
To: Dave Chinner <david@fromorbit.com>
Cc: Jens Axboe <axboe@kernel.dk>, Ming Lei <tom.leiming@gmail.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Roger Pau Monn?? <roger.pau@citrix.com>,
Alasdair Kergon <agk@redhat.com>,
Mike Snitzer <snitzer@redhat.com>, Neil Brown <neilb@suse.de>,
"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Chris Mason <clm@fb.com>, Josef Bacik <jbacik@fb.com>,
David Sterba <dsterba@suse.cz>, Theodore Ts'o <tytso@mit.edu>,
Andreas Dilger <adilger.kernel@dilger.ca>,
Jaegeuk Kim <jaegeuk@kernel.org>,
Changman Lee <cm224.lee@samsung.com>,
Steven Whitehouse <swhiteho@redhat.com>,
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>,
Andrew Morton <akpm@linux-foundation.org>,
Rik van Riel <riel@redhat.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Mel Gorman <mgorman@suse.de>,
Trond Myklebust <trond.myklebust@primarydata.com>,
Anna Schumaker <anna.schumaker@netapp.com>,
xfs@oss.sgi.com, Christoph Hellwig <hch@lst.de>,
Weston Andros Adamson <dros@primarydata.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Sagi Grimberg <sagig@mellanox.com>, Tejun Heo <tj@kernel.org>,
Fabian Frederick <fabf@skynet.be>,
Matthew Wilcox <matthew.r.wilcox@intel.com>,
Ming Lei <ming.lei@canonical.com>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Wang Sheng-Hui <shhuiw@gmail.com>, Michal Hocko <mhocko@suse.cz>,
Joe Perches <joe@perches.com>, Miklos Szeredi <mszeredi@suse.cz>,
Namjae Jeon <namjae.jeon@samsung.com>,
Mark Rustad <mark.d.rustad@intel.com>,
Jianyu Zhan <nasa4836@gmail.com>,
Fengguang Wu <fengguang.wu@intel.com>,
Vladimir Davydov <vdavydov@parallels.com>,
Vlastimil Babka <vbabka@suse.cz>,
Suleiman Souhlal <suleiman@google.com>,
linux-kernel@vger.kernel.org, dm-devel@redhat.com,
xen-devel@lists.xenproject.org, linux-raid@vger.kernel.org,
linux-scsi@vger.kernel.org, target-devel@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-aio@kvack.org,
linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com,
linux-nfs@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH 2/2][v2] blk-plug: don't flush nested plug lists
Date: Fri, 10 Apr 2015 17:50:06 -0400 [thread overview]
Message-ID: <x498udzlkkx.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20150408230203.GG15810@dastard> (Dave Chinner's message of "Thu, 9 Apr 2015 09:02:03 +1000")
Dave Chinner <david@fromorbit.com> writes:
> On Tue, Apr 07, 2015 at 02:55:13PM -0400, Jeff Moyer wrote:
>> The way the on-stack plugging currently works, each nesting level
>> flushes its own list of I/Os. This can be less than optimal (read
>> awful) for certain workloads. For example, consider an application
>> that issues asynchronous O_DIRECT I/Os. It can send down a bunch of
>> I/Os together in a single io_submit call, only to have each of them
>> dispatched individually down in the bowels of the dirct I/O code.
>> The reason is that there are blk_plug-s instantiated both at the upper
>> call site in do_io_submit and down in do_direct_IO. The latter will
>> submit as little as 1 I/O at a time (if you have a small enough I/O
>> size) instead of performing the batching that the plugging
>> infrastructure is supposed to provide.
>
> I'm wondering what impact this will have on filesystem metadata IO
> that needs to be issued immediately. e.g. we are doing writeback, so
> there is a high level plug in place and we need to page in btree
> blocks to do extent allocation. We do readahead at this point,
> but it looks like this change will prevent the readahead from being
> issued by the unplug in xfs_buf_iosubmit().
I'm not ignoring you, Dave, I'm just doing some more investigation and
testing. It's taking longer than I had hoped.
-Jeff
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2015-04-10 21:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1428347694-17704-1-git-send-email-jmoyer@redhat.com>
[not found] ` <1428347694-17704-2-git-send-email-jmoyer@redhat.com>
2015-04-07 18:55 ` [PATCH 2/2][v2] blk-plug: don't flush nested plug lists Jeff Moyer
2015-04-08 16:13 ` Christoph Hellwig
2015-04-08 23:02 ` Dave Chinner
2015-04-09 0:54 ` Dave Chinner
2015-04-10 21:50 ` Jeff Moyer [this message]
2015-04-11 4:11 ` [f2fs-dev] " nick
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=x498udzlkkx.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=adilger.kernel@dilger.ca \
--cc=agk@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=anna.schumaker@netapp.com \
--cc=axboe@kernel.dk \
--cc=clm@fb.com \
--cc=cluster-devel@redhat.com \
--cc=cm224.lee@samsung.com \
--cc=david@fromorbit.com \
--cc=dm-devel@redhat.com \
--cc=dros@primarydata.com \
--cc=dsterba@suse.cz \
--cc=fabf@skynet.be \
--cc=fengguang.wu@intel.com \
--cc=hannes@cmpxchg.org \
--cc=hch@lst.de \
--cc=jaegeuk@kernel.org \
--cc=jbacik@fb.com \
--cc=joe@perches.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-aio@kvack.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mark.d.rustad@intel.com \
--cc=martin.petersen@oracle.com \
--cc=matthew.r.wilcox@intel.com \
--cc=mgorman@suse.de \
--cc=mhocko@suse.cz \
--cc=mikulas@artax.karlin.mff.cuni.cz \
--cc=ming.lei@canonical.com \
--cc=mszeredi@suse.cz \
--cc=nab@linux-iscsi.org \
--cc=namjae.jeon@samsung.com \
--cc=nasa4836@gmail.com \
--cc=neilb@suse.de \
--cc=riel@redhat.com \
--cc=roger.pau@citrix.com \
--cc=sagig@mellanox.com \
--cc=shhuiw@gmail.com \
--cc=snitzer@redhat.com \
--cc=suleiman@google.com \
--cc=swhiteho@redhat.com \
--cc=target-devel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=tom.leiming@gmail.com \
--cc=trond.myklebust@primarydata.com \
--cc=tytso@mit.edu \
--cc=vbabka@suse.cz \
--cc=vdavydov@parallels.com \
--cc=viro@zeniv.linux.org.uk \
--cc=xen-devel@lists.xenproject.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;
as well as URLs for NNTP newsgroup(s).