All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: blkif.h: document linux xen-block multi-page ring implementation
@ 2015-05-12 10:58 Bob Liu
  2015-05-15  9:26 ` Roger Pau Monné
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Bob Liu @ 2015-05-12 10:58 UTC (permalink / raw)
  To: xen-devel; +Cc: justing, Bob Liu, roger.pau, david.vrabel

After commit 1b1586eeeb8c ("xenbus_client: Extend interface to
support multi-page ring"), Linux xenbus driver can support multi-page ring.

Based on this interface, we got some impressive improvements by using multi-page
ring in xen-block driver. If using 64 pages as the ring, the IOPS increased
about 15 times for the throughput testing.

The Linux implementation reuses two 'DEPRECATED' nodes('max-ring-pages' and
'num-ring-pages), so that nothing would be broken.
Also removed the power of 2 limit and updated the default/max value accordingly.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
---
 xen/include/public/io/blkif.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/xen/include/public/io/blkif.h b/xen/include/public/io/blkif.h
index 6baf7fb..0e34ae6 100644
--- a/xen/include/public/io/blkif.h
+++ b/xen/include/public/io/blkif.h
@@ -189,11 +189,11 @@
  *
  * max-ring-pages
  *      Values:         <uint32_t>
- *      Default Value:  1
- *      Notes:          DEPRECATED, 2, 3
+ *      Default Value:  32
+ *      Notes:          2, 3
  *
  *      The maximum supported size of the request ring buffer in units of
- *      machine pages.  The value must be a power of 2.
+ *      machine pages.
  *
  *------------------------- Backend Device Properties -------------------------
  *
@@ -302,11 +302,11 @@
  * num-ring-pages
  *      Values:         <uint32_t>
  *      Default Value:  1
- *      Maximum Value:  MAX(max-ring-pages,(0x1 << max-ring-page-order))
- *      Notes:          DEPRECATED, 2, 3
+ *      Maximum Value:  max-ring-pages
+ *      Notes:          2, 3
  *
  *      The size of the frontend allocated request ring buffer in units of
- *      machine pages.  The value must be a power of 2.
+ *      machine pages.
  *
  * feature-persistent
  *      Values:         0/1 (boolean)
-- 
1.7.10.4

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

end of thread, other threads:[~2015-05-15 16:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12 10:58 [PATCH] xen: blkif.h: document linux xen-block multi-page ring implementation Bob Liu
2015-05-15  9:26 ` Roger Pau Monné
2015-05-15  9:51 ` David Vrabel
2015-05-15 10:39   ` Bob Liu
2015-05-15 10:45     ` David Vrabel
2015-05-15 15:22 ` Konrad Rzeszutek Wilk
2015-05-15 15:30   ` Paul Durrant
2015-05-15 15:38   ` Jan Beulich
2015-05-15 15:54     ` Konrad Rzeszutek Wilk
2015-05-15 16:02       ` Paul Durrant

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.