From: Ming Lei <ming.lei@redhat.com>
To: dm-devel@redhat.com, Mike Snitzer <snitzer@redhat.com>,
Jens Axboe <axboe@fb.com>
Cc: linux-block@vger.kernel.org,
Christoph Hellwig <hch@infradead.org>,
Bart Van Assche <bart.vanassche@sandisk.com>,
Laurence Oberman <loberman@redhat.com>,
Ming Lei <ming.lei@redhat.com>
Subject: [PATCH 0/5] dm-mpath: improve I/O schedule
Date: Sat, 16 Sep 2017 00:33:00 +0800 [thread overview]
Message-ID: <20170915163305.9350-1-ming.lei@redhat.com> (raw)
Hi,
We depend on I/O scheduler in dm-mpath layer, and underlying
I/O scheduler is bypassed basically.
I/O scheduler depends on queue busy condition to
trigger I/O merge, unfortunatley inside dm-mpath,
the underlying queue busy feedback is not accurate
enough, and we just allocate one request and dispatcch
it out to underlying queue, no matter if that queue
is busy or not. Then I/O merge is hard to trigger.
This patchset sets underlying queue's nr_request as
the queue's queue depth, so that queue busy is figured
out by checking if request is allocated successfully.
>From test result on mq-deadline, sequential I/O performance
is improved a lot, see test result in patch 5's commit log.
Any comments are welcome!
Thanks,
Ming
Ming Lei (5):
block: don't call blk_mq_delay_run_hw_queue() in case of
BLK_STS_RESOURCE
dm-mpath: return DM_MAPIO_REQUEUE in case of rq allocation failure
dm-mpath: remove annoying message of 'blk_get_request() returned -11'
block: export blk_update_nr_requests
dm-mpath: improve I/O schedule
block/blk-core.c | 4 +++-
block/blk-sysfs.c | 5 +----
block/blk.h | 2 --
drivers/md/dm-mpath.c | 30 +++++++++++++++++++++++++++---
drivers/md/dm-rq.c | 1 -
drivers/nvme/host/fc.c | 3 ---
drivers/scsi/scsi_lib.c | 4 ----
include/linux/blkdev.h | 1 +
8 files changed, 32 insertions(+), 18 deletions(-)
--
2.9.5
next reply other threads:[~2017-09-15 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-15 16:33 Ming Lei [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-15 16:44 [PATCH 0/5] dm-mpath: improve I/O schedule Ming Lei
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=20170915163305.9350-1-ming.lei@redhat.com \
--to=ming.lei@redhat.com \
--cc=axboe@fb.com \
--cc=bart.vanassche@sandisk.com \
--cc=dm-devel@redhat.com \
--cc=hch@infradead.org \
--cc=linux-block@vger.kernel.org \
--cc=loberman@redhat.com \
--cc=snitzer@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;
as well as URLs for NNTP newsgroup(s).