dropped pkts with Qemu on tap interace (RX)
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1
tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0
TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0
TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)Any ideas how to inspect this issue?
Greets,
Stefan
Quoted 5 lines · Stefan Priebe - Profihost AG
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"
Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Quoted 12 lines
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1 tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0 TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)
Quoted 8 lines
tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0 TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)Any ideas how to inspect this issue?
It seems both tap interfaces lose RX pkts, dropping pkts of RX means the host(backend) cann't receive packets from the guest as fast as the guest sends.
Are you running some symmetrical test on both guests?
Wei
Quoted 4 lines
Greets,
Stefan
Hi,
Am 02.01.2018 um 15:20 schrieb Wei Xu:
Quoted 15 lines · Stefan Priebe - Profihost AG
Quoted 5 lines
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"
Quoted 3 lines
Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?
Sure netdev part:
-netdev type=tap,id=net0,ifname=tap317i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device
virtio-net-pci,mac=EA:37:42:5C:F3:33,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
-netdev type=tap,id=net1,ifname=tap317i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4 -device
virtio-net-pci,mac=6A:8E:74:45:1A:0B,nedev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on,bootindex=301
Quoted 2 lines
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Mhm so you mean these might be two seperate ones?
Quoted 2 lines
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Sadly not as there's too much traffic on that part as rsync is syncing every 5 minutes through ssh.
Quoted 18 lines
Quoted 18 lines
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1 tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0 TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0 TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)
Quoted 4 lines
Quoted 1 line
Any ideas how to inspect this issue?
It seems both tap interfaces lose RX pkts, dropping pkts of RX means the host(backend) cann't receive packets from the guest as fast as the guest sends.
Inside the guest i see no dropped packets at all. It's only on the host and strangely on both taps at the same value? And both are connected to absolutely different networks.
Quoted 1 line
Are you running some symmetrical test on both guests?
No.
Stefan
Quoted 6 lines
Wei
Quoted 4 lines
Greets,
Stefan
Quoted 21 lines · Stefan Priebe - Profihost AG
Hi,
Am 02.01.2018 um 15:20 schrieb Wei Xu:Quoted 15 lines · Stefan Priebe - Profihost AG
Quoted 5 lines
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"Quoted 3 lines
Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?
Quoted 9 lines
Sure netdev part:
-netdev type=tap,id=net0,ifname=tap317i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device
virtio-net-pci,mac=EA:37:42:5C:F3:33,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
-netdev type=tap,id=net1,ifname=tap317i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4 -device
virtio-net-pci,mac=6A:8E:74:45:1A:0B,nedev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on,bootindex=301
According to what you have mentioned, the traffic is not heavy for the guests, the dropping shouldn't happen for regular case.
What is your hardware platform? and Which versions are you using for both guest/host kernel and qemu? Are there other VMs on the same host?
Quoted 6 lines
Quoted 4 lines
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Mhm so you mean these might be two seperate ones?
Yes.
Quoted 6 lines
Quoted 3 lines
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Sadly not as there's too much traffic on that part as rsync is syncing every 5 minutes through ssh.
You can do a tcpdump for the entire traffic from the guest and host and compare what kind of packets are dropped if the traffic is not overloaded.
Wei
Quoted 41 lines
Quoted 19 lines
Quoted 19 lines
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1 tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0 TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0 TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)Quoted 4 lines
Quoted 1 line
Any ideas how to inspect this issue?
It seems both tap interfaces lose RX pkts, dropping pkts of RX means the host(backend) cann't receive packets from the guest as fast as the guest sends.
Inside the guest i see no dropped packets at all. It's only on the host and strangely on both taps at the same value? And both are connected to absolutely different networks.
Quoted 1 line
Are you running some symmetrical test on both guests?
No.
Stefan
Quoted 6 lines
Wei
Quoted 4 lines
Greets,
Stefan
Am 02.01.2018 um 18:04 schrieb Wei Xu:
Quoted 22 lines · Stefan Priebe - Profihost AG
Quoted 21 lines
Hi,
Am 02.01.2018 um 15:20 schrieb Wei Xu:Quoted 18 lines · Stefan Priebe - Profihost AG
Quoted 5 lines
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?
Quoted 12 lines
Quoted 9 lines
Sure netdev part:
-netdev type=tap,id=net0,ifname=tap317i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device
virtio-net-pci,mac=EA:37:42:5C:F3:33,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
-netdev type=tap,id=net1,ifname=tap317i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4 -device
virtio-net-pci,mac=6A:8E:74:45:1A:0B,nedev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on,bootindex=301According to what you have mentioned, the traffic is not heavy for the guests, the dropping shouldn't happen for regular case.
The avg traffic is around 300kb/s.
Quoted 1 line
What is your hardware platform?
Dual Intel Xeon E5-2680 v4
Quoted 2 lines
and Which versions are you using for both
guest/host kernel
Kernel v4.4.103
Quoted 1 line
and qemu?
2.9.1
Quoted 1 line
Are there other VMs on the same host?
Yes.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Mhm so you mean these might be two seperate ones?
Yes.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Sadly not as there's too much traffic on that part as rsync is syncing every 5 minutes through ssh.
You can do a tcpdump for the entire traffic from the guest and host and compare what kind of packets are dropped if the traffic is not overloaded.
Are you sure? I don't get why the same amount and same kind of packets should be received by both tap which are connected to different bridges to different HW and physical interfaces.
Stefan
Quoted 43 lines
Wei
Quoted 41 lines
Quoted 19 lines
Quoted 19 lines
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1 tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0 TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0 TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)Quoted 4 lines
Quoted 1 line
Any ideas how to inspect this issue?
It seems both tap interfaces lose RX pkts, dropping pkts of RX means the host(backend) cann't receive packets from the guest as fast as the guest sends.
Inside the guest i see no dropped packets at all. It's only on the host and strangely on both taps at the same value? And both are connected to absolutely different networks.
Quoted 1 line
Are you running some symmetrical test on both guests?
No.
Stefan
Quoted 6 lines
Wei
Quoted 4 lines
Greets,
Stefan
Quoted 45 lines · Stefan Priebe - Profihost AG
Am 02.01.2018 um 18:04 schrieb Wei Xu:
Quoted 22 lines · Stefan Priebe - Profihost AG
Quoted 21 lines
Hi,
Am 02.01.2018 um 15:20 schrieb Wei Xu:Quoted 18 lines · Stefan Priebe - Profihost AG
Quoted 5 lines
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?Quoted 12 lines
Quoted 9 lines
Sure netdev part:
-netdev type=tap,id=net0,ifname=tap317i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device
virtio-net-pci,mac=EA:37:42:5C:F3:33,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
-netdev type=tap,id=net1,ifname=tap317i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4 -device
virtio-net-pci,mac=6A:8E:74:45:1A:0B,nedev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on,bootindex=301According to what you have mentioned, the traffic is not heavy for the guests, the dropping shouldn't happen for regular case.
The avg traffic is around 300kb/s.
Quoted 1 line
What is your hardware platform?
Dual Intel Xeon E5-2680 v4
Quoted 2 lines
and Which versions are you using for both
guest/host kernel
Quoted 7 lines
Kernel v4.4.103
Quoted 1 line
and qemu?
2.9.1
Quoted 1 line
Are there other VMs on the same host?
Yes.
What about the CPU load?
Quoted 16 lines
Quoted 16 lines
Quoted 6 lines
Quoted 4 lines
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Mhm so you mean these might be two seperate ones?
Yes.
Quoted 6 lines
Quoted 3 lines
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Sadly not as there's too much traffic on that part as rsync is syncing every 5 minutes through ssh.
Quoted 6 lines
Quoted 2 lines
You can do a tcpdump for the entire traffic from the guest and host and compare what kind of packets are dropped if the traffic is not overloaded.
Are you sure? I don't get why the same amount and same kind of packets should be received by both tap which are connected to different bridges to different HW and physical interfaces.
Exactly, possibly this would be a host or guest kernel bug cos than qemu issue you are using vhost kernel as the backend and the two stats are independent, you might have to check out what is happening inside the traffic.
Wei
Am 03.01.2018 um 04:57 schrieb Wei Xu:
Quoted 48 lines · Stefan Priebe - Profihost AG
Quoted 47 lines
Am 02.01.2018 um 18:04 schrieb Wei Xu:
Quoted 22 lines · Stefan Priebe - Profihost AG
Quoted 21 lines
Hi,
Am 02.01.2018 um 15:20 schrieb Wei Xu:Quoted 18 lines · Stefan Priebe - Profihost AG
Quoted 5 lines
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?Quoted 12 lines
Quoted 9 lines
Sure netdev part:
-netdev type=tap,id=net0,ifname=tap317i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device
virtio-net-pci,mac=EA:37:42:5C:F3:33,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
-netdev type=tap,id=net1,ifname=tap317i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4 -device
virtio-net-pci,mac=6A:8E:74:45:1A:0B,nedev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on,bootindex=301According to what you have mentioned, the traffic is not heavy for the guests, the dropping shouldn't happen for regular case.
The avg traffic is around 300kb/s.
Quoted 1 line
What is your hardware platform?
Dual Intel Xeon E5-2680 v4
Quoted 2 lines
and Which versions are you using for both
guest/host kernelKernel v4.4.103
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
and qemu?
2.9.1
Quoted 1 line
Are there other VMs on the same host?
Yes.
What about the CPU load?
Host:
80-90% Idle
LoadAvg: 6-7
VM:
97%-99% Idle
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 4 lines
Quoted 2 lines
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Mhm so you mean these might be two seperate ones?
Yes.
Quoted 6 lines
Quoted 3 lines
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Sadly not as there's too much traffic on that part as rsync is syncing every 5 minutes through ssh.
You can do a tcpdump for the entire traffic from the guest and host and compare what kind of packets are dropped if the traffic is not overloaded.
Quoted 7 lines
Quoted 3 lines
Are you sure? I don't get why the same amount and same kind of packets should be received by both tap which are connected to different bridges to different HW and physical interfaces.
Exactly, possibly this would be a host or guest kernel bug cos than qemu issue you are using vhost kernel as the backend and the two stats are independent, you might have to check out what is happening inside the traffic.
What do you mean by inside the traffic?
Stefan
Quoted 56 lines · Stefan Priebe - Profihost AG
Am 03.01.2018 um 04:57 schrieb Wei Xu:
Quoted 54 lines · Stefan Priebe - Profihost AG
Quoted 52 lines
Am 02.01.2018 um 18:04 schrieb Wei Xu:
Quoted 22 lines · Stefan Priebe - Profihost AG
Quoted 21 lines
Hi,
Am 02.01.2018 um 15:20 schrieb Wei Xu:Quoted 18 lines · Stefan Priebe - Profihost AG
Quoted 5 lines
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
Quoted 8 lines
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"Hi Stefan,
What kind of virtio-net backend are you using? Can you paste your qemu command line here?Quoted 12 lines
Quoted 9 lines
Sure netdev part:
-netdev type=tap,id=net0,ifname=tap317i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device
virtio-net-pci,mac=EA:37:42:5C:F3:33,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300
-netdev type=tap,id=net1,ifname=tap317i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4 -device
virtio-net-pci,mac=6A:8E:74:45:1A:0B,nedev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on,bootindex=301According to what you have mentioned, the traffic is not heavy for the guests, the dropping shouldn't happen for regular case.
The avg traffic is around 300kb/s.
Quoted 1 line
What is your hardware platform?
Dual Intel Xeon E5-2680 v4
Quoted 2 lines
and Which versions are you using for both
guest/host kernelKernel v4.4.103
Quoted 1 line
and qemu?
2.9.1
Quoted 1 line
Are there other VMs on the same host?
Yes.
Quoted 9 lines
Quoted 1 line
What about the CPU load?
Host:
80-90% Idle
LoadAvg: 6-7VM:
97%-99% Idle
OK, then this shouldn't be a concern.
Quoted 21 lines
Quoted 21 lines
Quoted 20 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
'Connection refused' usually means that the client gets a TCP Reset rather than losing packets, so this might not be a relevant issue.
Mhm so you mean these might be two seperate ones?
Yes.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Also you can do a tcpdump on both guests and see what happened to SSH packets (tcpdump -i tapXXX port 22).
Sadly not as there's too much traffic on that part as rsync is syncing every 5 minutes through ssh.
You can do a tcpdump for the entire traffic from the guest and host and compare what kind of packets are dropped if the traffic is not overloaded.
Are you sure? I don't get why the same amount and same kind of packets should be received by both tap which are connected to different bridges to different HW and physical interfaces.
Quoted 5 lines
Quoted 3 lines
Exactly, possibly this would be a host or guest kernel bug cos than qemu issue you are using vhost kernel as the backend and the two stats are independent, you might have to check out what is happening inside the traffic.
What do you mean by inside the traffic?
You might need to figure what kind of packets are dropped on host tap interface, are they random packets or specific packets?
There are few other tests which help to see what happened besides triaging the traffic, or you can try alternative tests according to your test bed.
1). Upgrade host & guest kernel to latest kernel and see if it comes up, you can use net-next tree.
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
2). Do some traffic throughput(netperf, iperf, etc) on both guests(traffic from guest to host if the guests are isolated due to your comments) and check out the statistics.
Wei
Quoted 3 lines
Stefan
Hi Stefan,
Quoted 2 lines
Quoted 2 lines
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
that's strange indeed.
if you tcpdump tap interfaces, do you see incoming traffic only on 1 interface, or both random ?
(can you provide the network configuration in the guest for both interfaces ?)
I'm seeing that you have enable multiqueue on 1 of the interfaces, do you have setup correctly the multiqueue part inside the guest. do you have enough vcpu to handle all the queues ?
----- Mail original -----
De: "Stefan Priebe, Profihost AG" <[email protected]> À: "qemu-devel" <[email protected]>
Envoyé: Mardi 2 Janvier 2018 12:17:29
Objet: [Qemu-devel] dropped pkts with Qemu on tap interace (RX)
Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1 tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0 TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)
tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0 TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)
Any ideas how to inspect this issue?
Greets,
Stefan
Am 03.01.2018 um 09:14 schrieb Alexandre DERUMIER:
Quoted 7 lines
Hi Stefan,
Quoted 2 lines
Quoted 2 lines
The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
that's strange indeed.
if you tcpdump tap interfaces, do you see incoming traffic only on 1 interface, or both random ?
complete independend random traffic as it should.
Quoted 1 line
(can you provide the network configuration in the guest for both interfaces ?)
inside the guest? where the drop counter stays 0?
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0that's it.
Quoted 1 line
I'm seeing that you have enable multiqueue on 1 of the interfaces, do you have setup correctly the multiqueue part inside the guest.
uh oh? What is needed inside the guest?
Quoted 1 line
do you have enough vcpu to handle all the queues ?
Yes.
Stefan
Quoted 43 lines
----- Mail original -----
De: "Stefan Priebe, Profihost AG" <[email protected]> À: "qemu-devel" <[email protected]>
Envoyé: Mardi 2 Janvier 2018 12:17:29
Objet: [Qemu-devel] dropped pkts with Qemu on tap interace (RX)Hello,
currently i'm trying to fix a problem where we have "random" missing packets.
We're doing an ssh connect from machine a to machine b every 5 minutes via rsync and ssh.
Sometimes it happens that we get this cron message:
"Connection to 192.168.0.2 closed by remote host.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) atio.c(226)[sender=3.1.2]
ssh: connect to host 192.168.0.2 port 22: Connection refused"The tap devices on the target vm shows dropped RX packages on BOTH tap interfaces - strangely with the same amount of pkts?
# ifconfig tap317i0; ifconfig tap317i1 tap317i0 Link encap:Ethernet HWaddr 6e:cb:65:94:bb:bf UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2238445 errors:0 dropped:13159 overruns:0 frame:0 TX packets:9655853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:177991267 (169.7 MiB) TX bytes:910412749 (868.2 MiB)tap317i1 Link encap:Ethernet HWaddr 96:f8:b5:d0:9a:07 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:1516085 errors:0 dropped:13159 overruns:0 frame:0 TX packets:1446964 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:1597564313 (1.4 GiB) TX bytes:3517734365 (3.2 GiB)Any ideas how to inspect this issue?
Greets,
Stefan