Thankyou , I should be able to do it with the hooks. I have raised a feature request at BZ809172<br><br clear="all">Tim Hughes<br>mailto:<a href="mailto:thughes@thegoldfish.org" target="_blank">thughes@thegoldfish.org</a><br>
<br><br>
<br><br><div class="gmail_quote">On 2 April 2012 17:22, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Mon, Apr 02, 2012 at 05:15:55PM +0100, Tim Hughes wrote:<br>
> Hello,<br>
><br>
> We have been tuning our libvirt hosts and discovered that setting the<br>
> txqueuelen on vnetX devices to 2500 we can increase the network throughput<br>
> by a factor of almost 10. On an eth device it can be set by  hand/rc.local<br>
> with the following instructions<br>
> <a href="http://www.cyberciti.biz/faq/gentoo-centos-rhel-debian-fedora-increasing-txqueuelen/" target="_blank">http://www.cyberciti.biz/faq/gentoo-centos-rhel-debian-fedora-increasing-txqueuelen/</a><br>
> .  Because vnetX devices are named on a 'first free' basis and they come<br>
> and go with the guests the rc.local method is not going to work. I think<br>
> this needs to be done via libvirt or possibly udev, maybe with some kind of<br>
> hook. Ideally I would like to be able to set this automatically for all<br>
> vnetX devices when they are created or even better, on a per guest basis.<br>
<br>
</div></div>You can probably do this with a hook script:<br>
<br>
  <a href="http://libvirt.org/hooks.html" target="_blank">http://libvirt.org/hooks.html</a><br>
<br>
Please also file a BZ requesting that this tunable be directly supported<br>
by libvirt.<br>
<span class="HOEnZb"><font color="#888888"><br>
Daniel<br>
--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/%7Edanberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></div><br>