[Openstack] URGENT: packet loss on openstack instance
It is still possible to update rx and tx queues length if your qemu and libvirt version is higher than the version recorded in . ï¼?You should possible to update directly in libvirt configuration if my memory is correctï¼?
We also have some similar use case which run audio/vedio serivcs. They are CPU consuming and have UDP small packets. Another possible tunning is using CPU pin for the vm. you can use numa awared cpu feature to get stable cpu performance ï¼?vm network dropped packets sometimes because of the vm cpu is too busyï¼?with numa cpu it works better performanceï¼?our way is similar with [a]. You need to create flavor with special metadata and dedicated Host Agg for numa awared VMs. Dedicated CPU is very good for media service. It makes the CPU performance stable.
Another packet loss case we get is because of vm kernel, some of our app are using 32bit OS, that cause memory issue, when traffic larger then 50kpps, it dropped a lot,sometimes,it even crash. In this case, 32bit os can actually use very limited memory, we have to add swap for the vm. Hope your app is using 64 bit OS. Because 32 bit could cause tons of trouble.
BTW,if you are using vrouter on L3, youâ??d better to move provider network(no vrouter). I did not tried DVR, but if you are running without DVR, the L3 node will be bottleneck very quick. Especially default iptables conntrack is 65535, you will reach to it and drop packet on L3, even after you tun that value, it still hard to more that 1Mpps for your network node.
If your App more than 200kpps per compute node, you may be better also have a look your physical network driver tx/rx configuration. Most of the HW default value for tx/rx queues number and length are very poor,you may start to get packet on eth interface on physical host when rx queue is full.
å?¨ 2018å¹´9æ??16æ?¥ï¼?21:18ï¼?Satish Patel <satish.txt at gmail.com<mailto:satish.txt at gmail.com>> å??é??ï¼?
Thank you for your reply,
We notice packet drops during high load, I did try txqueue and didn't help so I believe I am going to try miltiqueue.
For SRIOV I have to look if I have support in my nic.
We are using queens so I think queue size option not possible :(
We are using voip application and traffic is udp so our pps rate is 60k to 80k per vm instance.
I will share my result as soon as I try multiqueue.
Sent from my iPhone
On Sep 16, 2018, at 2:27 AM, Liping Mao (limao) <limao at cisco.com<mailto:limao at cisco.com>> wrote:
Did your packet loss happen always or it only happened when heavy load?
AFAIK, if you do not tun anything, the vm tap can process about 50kpps before the tap device start to drop packets.
If it happened in heavy load, couple of things you can try:
1) increase tap queue length, usually the default value is 500, you can try larger. (seems like you already tried)
2) Try to use virtio multi queues feature , see . Virtio use one queue for rx/tx in vm, with this feature you can get more queues. You can check
3) In rock version, you can use  to increase virtio queue size, the default queues size is 256/512, you may increase it to 1024, this would help to increase pps of the tap device.
If all these things can not get your network performance requirement, you may need to move to use dpdk / sriov stuff to get more vm performance.
I did not actually used them in our env, you may refer to 
ï»¿å?¨ 2018/9/16 13:07ï¼?â??Satish Patelâ??<satish.txt at gmail.com<mailto:satish.txt at gmail.com>> å??å?¥:
[root at compute-33 ~]# ifconfig tap5af7f525-5f | grep -i drop
RX errors 0 dropped 0 overruns 0 frame 0
TX errors 0 dropped 2528788837 overruns 0 carrier 0 collisions 0
Noticed tap interface dropping TX packets and even after increasing
txqueue from 1000 to 10000 nothing changed, still getting packet
On Sat, Sep 15, 2018 at 4:22 PM Satish Patel <satish.txt at gmail.com<mailto:satish.txt at gmail.com>> wrote:
I need some advice or suggestion to find out what is going on with my
network, we have notice high packet loss on openstack instance and not
sure what is going on, same time if i check on host machine and it has
zero packet loss.. this is what i did for test...
from instance: 50% packet loss
from compute host: 0% packet loss
I have disabled TSO/GSO/SG setting on physical compute node but still
getting packet loss.
We have 10G NIC on our network, look like something related to tap
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...