WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Problem of netfront by network-attach/detach

To: "Kasai Takanori" <kasai.takanori@xxxxxxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Problem of netfront by network-attach/detach
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Wed, 27 Dec 2006 18:34:45 +0900
Delivery-date: Wed, 27 Dec 2006 01:36:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: (Your message of "Fri, 22 Dec 2006 18:49:31 +0900") <14d701c725ae$7c09c220$dab2220a@VF03007L>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <14d701c725ae$7c09c220$dab2220a@VF03007L>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

This issue is caused by 
netif_release_rx_bufs@drivers/xen/netfront/netfront.c

         if (np->copying_receiver) {
                 printk("%s: fix me for copying receiver.\n", __FUNCTION__);
                 return;
         }

This code makes memory leaking.
for example, GrantTable is allocated 256 but freed 192(by seeing 
gnttab_free_count).
This makes 64table leaking for every network-attach/detach operation.

To fix this issue, we need to fix copying receiver.
Is there any suggestion on this?

Thanks
Atsushi SAKAI


>Hi All,
>
>We tested the xm network-attach/detach command.
>It repeats network-attach/detach command for DomU and pv-on-hvm on HVM Domain.
>(network-attach → network-detach → network-attach → network-detach → ...)
>
>If network-attach/detach command is repeated 13 times, the following errors
>occur.
>
>### netfront can't alloc rx grant refs
>vif vif-13: 12 creating netdev
>vif vif-13: 12 xenbus_dev_probe on device/vif/13
>
>After that, the same problem occurred.
>
>The environment is as follows.
>・xen-unstable.hg : cs 13129
>     DomU and pv-on-hvm on HVM Domain
>
>Thanks
>
>--
>Takanori Kasai
>
>
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-devel
>







_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>