From: Ilya Dryomov <idryomov@gmail.com>
To: ceph-devel@vger.kernel.org
Cc: Hannes Reinecke <hare@suse.de>
Subject: [PATCH 5/5] rbd: enable multiple blk-mq queues
Date: Thu, 13 Feb 2020 20:26:06 +0100 [thread overview]
Message-ID: <20200213192606.31194-6-idryomov@gmail.com> (raw)
In-Reply-To: <20200213192606.31194-1-idryomov@gmail.com>
From: Hannes Reinecke <hare@suse.de>
Allocate one queue per CPU and get a performance boost from
higher parallelism.
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
drivers/block/rbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 9ff4355fe48a..a4e7b494344c 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -4970,7 +4970,7 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
rbd_dev->tag_set.queue_depth = rbd_dev->opts->queue_depth;
rbd_dev->tag_set.numa_node = NUMA_NO_NODE;
rbd_dev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
- rbd_dev->tag_set.nr_hw_queues = 1;
+ rbd_dev->tag_set.nr_hw_queues = num_present_cpus();
rbd_dev->tag_set.cmd_size = sizeof(struct rbd_img_request);
err = blk_mq_alloc_tag_set(&rbd_dev->tag_set);
--
2.19.2
prev parent reply other threads:[~2020-02-13 19:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-13 19:26 [PATCH 0/5] rbd: enable multiple blk-mq queues Ilya Dryomov
2020-02-13 19:26 ` [PATCH 1/5] rbd: kill img_request kref Ilya Dryomov
2020-02-13 19:26 ` [PATCH 2/5] rbd: get rid of img_request_layered_clear() Ilya Dryomov
2020-02-13 19:26 ` [PATCH 3/5] rbd: acquire header_rwsem just once in rbd_queue_workfn() Ilya Dryomov
2020-02-13 19:26 ` [PATCH 4/5] rbd: embed image request in blk-mq pdu Ilya Dryomov
2020-02-13 19:26 ` Ilya Dryomov [this message]
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=20200213192606.31194-6-idryomov@gmail.com \
--to=idryomov@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=hare@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.