Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Jens Axboe
On Thu, Apr 18 2013, Roger Pau Monné wrote: > On 18/04/13 16:26, Jens Axboe wrote: > >>> I've just set that to something that brings a performance benefit > >>> without having to map an insane number of persistent grants in > >>> blkback. > >>> > >>> Yes, the values are

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Roger Pau Monné
On 18/04/13 16:26, Jens Axboe wrote: >>> I've just set that to something that brings a performance benefit >>> without having to map an insane number of persistent grants in blkback. >>> >>> Yes, the values are correct, but the device request queue (rq) is only >>> able to

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Jens Axboe
On Thu, Apr 18 2013, Roger Pau Monné wrote: > On 18/04/13 14:43, Jens Axboe wrote: > > On Wed, Apr 17 2013, Konrad Rzeszutek Wilk wrote: > >> On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: > >>> On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: > >> Perhaps the xen-blkfront

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Roger Pau Monné
On 18/04/13 14:43, Jens Axboe wrote: > On Wed, Apr 17 2013, Konrad Rzeszutek Wilk wrote: >> On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: >>> On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: >> Perhaps the xen-blkfront part of the patch should be just split out to >>

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Jens Axboe
On Wed, Apr 17 2013, Konrad Rzeszutek Wilk wrote: > On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: > > On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: > > >>> Perhaps the xen-blkfront part of the patch should be just split out to > > >>> make > > >>> this easier? > > >>> > > >>>

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Jens Axboe
On Wed, Apr 17 2013, Konrad Rzeszutek Wilk wrote: On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: Perhaps the xen-blkfront part of the patch should be just split out to make this easier? Perhaps what we really

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Roger Pau Monné
On 18/04/13 14:43, Jens Axboe wrote: On Wed, Apr 17 2013, Konrad Rzeszutek Wilk wrote: On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: Perhaps the xen-blkfront part of the patch should be just split out to make this easier?

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Jens Axboe
On Thu, Apr 18 2013, Roger Pau Monné wrote: On 18/04/13 14:43, Jens Axboe wrote: On Wed, Apr 17 2013, Konrad Rzeszutek Wilk wrote: On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: Perhaps the xen-blkfront part of the patch

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Roger Pau Monné
On 18/04/13 16:26, Jens Axboe wrote: I've just set that to something that brings a performance benefit without having to map an insane number of persistent grants in blkback. Yes, the values are correct, but the device request queue (rq) is only able to provide read requests with 64 segments

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-18 Thread Jens Axboe
On Thu, Apr 18 2013, Roger Pau Monné wrote: On 18/04/13 16:26, Jens Axboe wrote: I've just set that to something that brings a performance benefit without having to map an insane number of persistent grants in blkback. Yes, the values are correct, but the device request queue (rq) is

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-17 Thread Konrad Rzeszutek Wilk
On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: > On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: > >>> Perhaps the xen-blkfront part of the patch should be just split out to > >>> make > >>> this easier? > >>> > >>> Perhaps what we really should have is just the 'max' value of

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-17 Thread Roger Pau Monné
On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: >>> Perhaps the xen-blkfront part of the patch should be just split out to make >>> this easier? >>> >>> Perhaps what we really should have is just the 'max' value of megabytes >>> we want to handle on the ring. >>> >>> As right now 32 ring requests

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-17 Thread Konrad Rzeszutek Wilk
> >> +struct blkif_x86_32_request_indirect { > >> + uint8_tindirect_op; > >> + uint16_t nr_segments; > > > > This needs to be documented. Is there are limit to what it can be? What if > > the frontend sets it to 1231231? > > This is checked in dispatch_rw_block_io: > > if

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-17 Thread Konrad Rzeszutek Wilk
+struct blkif_x86_32_request_indirect { + uint8_tindirect_op; + uint16_t nr_segments; This needs to be documented. Is there are limit to what it can be? What if the frontend sets it to 1231231? This is checked in dispatch_rw_block_io: if (unlikely(nseg == 0

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-17 Thread Roger Pau Monné
On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: Perhaps the xen-blkfront part of the patch should be just split out to make this easier? Perhaps what we really should have is just the 'max' value of megabytes we want to handle on the ring. As right now 32 ring requests * 32 segments = 4MB.

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-17 Thread Konrad Rzeszutek Wilk
On Wed, Apr 17, 2013 at 07:04:51PM +0200, Roger Pau Monné wrote: On 17/04/13 16:25, Konrad Rzeszutek Wilk wrote: Perhaps the xen-blkfront part of the patch should be just split out to make this easier? Perhaps what we really should have is just the 'max' value of megabytes we want to

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:43PM +0100, Roger Pau Monne wrote: > Indirect descriptors introduce a new block operation > (BLKIF_OP_INDIRECT) that passes grant references instead of segments > in the request. This grant references are filled with arrays of > blkif_request_segment_aligned, this way

Re: [PATCH v1 7/7] xen-block: implement indirect descriptors

2013-04-09 Thread Konrad Rzeszutek Wilk
On Wed, Mar 27, 2013 at 12:10:43PM +0100, Roger Pau Monne wrote: Indirect descriptors introduce a new block operation (BLKIF_OP_INDIRECT) that passes grant references instead of segments in the request. This grant references are filled with arrays of blkif_request_segment_aligned, this way we

[PATCH v1 7/7] xen-block: implement indirect descriptors

2013-03-27 Thread Roger Pau Monne
Indirect descriptors introduce a new block operation (BLKIF_OP_INDIRECT) that passes grant references instead of segments in the request. This grant references are filled with arrays of blkif_request_segment_aligned, this way we can send more segments in a request. The proposed implementation

[PATCH v1 7/7] xen-block: implement indirect descriptors

2013-03-27 Thread Roger Pau Monne
Indirect descriptors introduce a new block operation (BLKIF_OP_INDIRECT) that passes grant references instead of segments in the request. This grant references are filled with arrays of blkif_request_segment_aligned, this way we can send more segments in a request. The proposed implementation