Kasai Takanori
2006-Dec-22 09:49 UTC
[Xen-devel] Problem of netfront by network-attach/detach
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@lists.xensource.com
http://lists.xensource.com/xen-devel
Atsushi SAKAI
2006-Dec-27 09:34 UTC
Re: [Xen-devel] Problem of netfront by network-attach/detach
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@lists.xensource.com
>http://lists.xensource.com/xen-devel
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel