Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1277939

Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

From Bob Liu <bob.liu@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support
Date 2015-11-26 03:30 +0100
Message-ID <qyUtP-6iR-1@gated-at.bofh.it> (permalink)
References <quzxD-6X7-5@gated-at.bofh.it> <qyNVo-22H-27@gated-at.bofh.it> <qyPku-2Rv-11@gated-at.bofh.it> <qyQzU-3OH-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/26/2015 06:12 AM, Konrad Rzeszutek Wilk wrote:
> On Wed, Nov 25, 2015 at 03:56:03PM -0500, Konrad Rzeszutek Wilk wrote:
>> On Wed, Nov 25, 2015 at 02:25:07PM -0500, Konrad Rzeszutek Wilk wrote:
>>>>   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/blkback: make pool of persistent grants and free pages per-queue
>>>
>>> OK, got to those as well. I have put them in 'devel/for-jens-4.5' and
>>> are going to test them overnight before pushing them out.
>>>
>>> I see two bugs in the code that we MUST deal with:
>>>
>>>  - print_stats () is going to show zero values.
>>>  - the sysfs code (VBD_SHOW) aren't converted over to fetch data
>>>    from all the rings.
>>
>> - kthread_run can't handle the two "name, i" arguments. I see:
>>
>> root      5101     2  0 20:47 ?        00:00:00 [blkback.3.xvda-]
>> root      5102     2  0 20:47 ?        00:00:00 [blkback.3.xvda-]
> 
> And doing save/restore:
> 
> xl save <id> /tmp/A;
> xl restore /tmp/A;
> 
> ends up us loosing the proper state and not getting the ring setup back.
> I see this is backend:
> 
> [ 2719.448600] vbd vbd-22-51712: -1 guest requested 0 queues, exceeding the maximum of 3.
> 
> And XenStore agrees:
> tool = ""
>  xenstored = ""
> local = ""
>  domain = ""
>   0 = ""
>    domid = "0"
>    name = "Domain-0"
>    device-model = ""
>     0 = ""
>      state = "running"
>    error = ""
>     backend = ""
>      vbd = ""
>       2 = ""
>        51712 = ""
>         error = "-1 guest requested 0 queues, exceeding the maximum of 3."
> 
> .. which also leads to a memory leak as xen_blkbk_remove never gets
> called.

I think which was already fix by your patch:
[PATCH RFC 2/2] xen/blkback: Free resources if connect_ring failed.

P.S. I didn't see your git tree updated with these patches.

-- 
Regards,
-Bob
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2015-11-25 20:30 +0100
  Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2015-11-25 22:00 +0100
    Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2015-11-25 23:20 +0100
      Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Bob Liu <bob.liu@oracle.com> - 2015-11-26 03:30 +0100
        Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2015-11-26 04:00 +0100
          Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Bob Liu <bob.liu@oracle.com> - 2015-11-26 08:10 +0100
            Re: [PATCH v5 00/10] xen-block: multi hardware-queues/rings support Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2015-11-26 17:30 +0100

csiph-web