When using qemu-KVM in openstack to support a Windows Guest I noticed On highload hypervisor tap interface of net-highload guest drops many TX packets. The below shows an example of what this looks like from the hypervisor.
This was causing the guest to have high jitter and stability problems, after some investigation it was clear that increasing the the txqueuelen on the tap interface resolved the dropped packets problem and the jitter and stability problems in the guest. This was then added to udev using the below so that new created interfaces and existing interfaces would get an increased txqueuelen.
1234567891011
# cat /etc/udev/rules.d/60-tap.rules
KERNEL=="tap*", RUN+="/sbin/ip link set %k txqueuelen 10000"
#
I used the below to reload udev
udevadm control --reload-rules
I then used the below to apply the rules to already created interfaces:
udevadm trigger --attr-match=subsystem=net