linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/10] xen-block: multi hardware-queues/rings support
@ 2015-11-02  4:21 Bob Liu
  2015-11-02  4:21 ` [PATCH v4 01/10] xen/blkif: document blkif multi-queue/ring extension Bob Liu
                   ` (10 more replies)
  0 siblings, 11 replies; 27+ messages in thread
From: Bob Liu @ 2015-11-02  4:21 UTC (permalink / raw)
  To: xen-devel
  Cc: linux-kernel, roger.pau, konrad.wilk, felipe.franciosi, axboe,
	avanzini.arianna, rafal.mielniczuk, jonathan.davies,
	david.vrabel, Bob Liu

Note: These patches were based on original work of Arianna's internship for
GNOME's Outreach Program for Women.

After using blk-mq api, a guest has more than one(nr_vpus) software request
queues associated with each block front. These queues can be mapped over several
rings(hardware queues) to the backend, making it very easy for us to run
multiple threads on the backend for a single virtual disk.

By having different threads issuing requests at the same time, the performance
of guest can be improved significantly.

Test was done based on null_blk driver:
dom0: v4.3-rc7 16vcpus 10GB "modprobe null_blk"
domU: v4.3-rc7 16vcpus 10GB

[test]
rw=read
direct=1
ioengine=libaio
bs=4k
time_based
runtime=30
filename=/dev/xvdb
numjobs=16
iodepth=64
iodepth_batch=64
iodepth_batch_complete=64
group_reporting

	domU(orig)	4 queues 	8 queues 	16 queues
iops:        690k 	1024k(+30%) 	    800k 	750k

After patch 9 and 10:
	domU(orig)	4 queues 	8 queues 	16 queues
iops:        690k 	1600k(+100%) 	   1450k 	1320k

Chart: https://www.dropbox.com/s/agrcy2pbzbsvmwv/iops.png?dl=0

Also see huge improvements for write and real SSD storage.

---
v4:
 * Rebase to v4.3-rc7
 * Comments from Roger

v3:
 * Rebased to v4.2-rc8

Bob Liu (10):
  xen/blkif: document blkif multi-queue/ring extension
  xen/blkfront: separate per ring information out of device info
  xen/blkfront: pseudo support for multi hardware queues/rings
  xen/blkfront: split per device io_lock
  xen/blkfront: negotiate number of queues/rings to be used with backend
  xen/blkback: separate ring information out of struct xen_blkif
  xen/blkback: pseudo support for multi hardware queues/rings
  xen/blkback: get the number of hardware queues/rings from blkfront
  xen/blkfront: make persistent grants per-queue
  xen/blkback: make pool of persistent grants and free pages per-queue

 drivers/block/xen-blkback/blkback.c | 386 ++++++++++---------
 drivers/block/xen-blkback/common.h  |  78 ++--
 drivers/block/xen-blkback/xenbus.c  | 359 ++++++++++++------
 drivers/block/xen-blkfront.c        | 718 ++++++++++++++++++++++--------------
 include/xen/interface/io/blkif.h    |  48 +++
 5 files changed, 971 insertions(+), 618 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2015-11-05 19:50 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-02  4:21 [PATCH v4 00/10] xen-block: multi hardware-queues/rings support Bob Liu
2015-11-02  4:21 ` [PATCH v4 01/10] xen/blkif: document blkif multi-queue/ring extension Bob Liu
2015-11-02  4:21 ` [PATCH v4 02/10] xen/blkfront: separate per ring information out of device info Bob Liu
2015-11-02  4:49   ` kbuild test robot
2015-11-02  5:33     ` Bob Liu
2015-11-02  4:21 ` [PATCH v4 03/10] xen/blkfront: pseudo support for multi hardware queues/rings Bob Liu
     [not found]   ` <20151103194436.GE28527@char.us.oracle.com>
2015-11-04  1:01     ` Bob Liu
2015-11-02  4:21 ` [PATCH v4 04/10] xen/blkfront: split per device io_lock Bob Liu
     [not found]   ` <20151103200902.GF28527@char.us.oracle.com>
2015-11-04  1:07     ` Bob Liu
2015-11-04  1:51       ` Konrad Rzeszutek Wilk
2015-11-02  4:21 ` [PATCH v4 05/10] xen/blkfront: negotiate number of queues/rings to be used with backend Bob Liu
     [not found]   ` <20151103204029.GH28527@char.us.oracle.com>
2015-11-04  1:11     ` Bob Liu
2015-11-04  1:53       ` Konrad Rzeszutek Wilk
2015-11-02  4:21 ` [PATCH v4 06/10] xen/blkback: separate ring information out of struct xen_blkif Bob Liu
2015-11-02  4:21 ` [PATCH v4 07/10] xen/blkback: pseudo support for multi hardware queues/rings Bob Liu
2015-11-05  2:30   ` Konrad Rzeszutek Wilk
2015-11-05  3:02     ` Bob Liu
2015-11-05  3:24       ` Konrad Rzeszutek Wilk
2015-11-02  4:21 ` [PATCH v4 08/10] xen/blkback: get the number of hardware queues/rings from blkfront Bob Liu
2015-11-05  2:37   ` Konrad Rzeszutek Wilk
2015-11-02  4:21 ` [PATCH v4 09/10] xen/blkfront: make persistent grants per-queue Bob Liu
2015-11-05  2:39   ` Konrad Rzeszutek Wilk
2015-11-02  4:21 ` [PATCH v4 10/10] xen/blkback: make pool of persistent grants and free pages per-queue Bob Liu
2015-11-05  2:43   ` Konrad Rzeszutek Wilk
2015-11-05  2:46     ` Bob Liu
2015-11-05 19:50       ` Konrad Rzeszutek Wilk
2015-11-02 11:19 ` [Xen-devel] [PATCH v4 00/10] xen-block: multi hardware-queues/rings support Julien Grall

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).