Date: Mon, 19 Feb 2018 09:58:30 +0000 From: Laurence Pawling <laurence.pawling@globalsign.com> To: "freebsd-xen@freebsd.org" <freebsd-xen@freebsd.org>, "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Cc: David King <david.king@globalsign.com>, Vlad Galu <vlad.galu@globalsign.com> Subject: multi-vCPU networking issues as client OS under Xen Message-ID: <D1AF75E7-49F9-4628-8B26-3ACB64994C97@globalsign.com>
next in thread | raw e-mail | index | archive | help
--B_3601879107_1679118586 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable Hi all, =20 I=E2=80=99m wondering if anyone here has seen this issue before, I=E2=80=99ve spent the= last couple of days troubleshooting: =20 Platform: Host: XenServer 7.0 running on 2 x E2660-v4, 256GB RAM Server VM: FreeBSD 11 (tested on 11.0-p15 and 11.1-p6), 2GB RAM (also teste= d with 32GB RAM), 1x50GB HDD, 1 x NIC, 2 or more vCPUs in any combination (2= sockets x 1 core, 1 socket x 2 cores, =E2=80=A6) Client VM: FreeBSD 11, any configuration of vCPUs, RAM and HDD. =20 Behaviour: Sporadic interruption of TCP sessions when utilising the above machine as a= =E2=80=9Cserver=E2=80=9D with =E2=80=9Cclients=E2=80=9D connecting. Looking into the communication = with pcap/Wireshark, you see a TCP Dup Ack sent from both ends, followed by = the client sending an RST packet, terminating the TCP session. We have also = seen evidence of the client sending a Keepalive packet, which is ACK=E2=80=99d by = the server before the RST is sent from the client end. =20 To recreate: On the above VM, perform a vanilla install of nginx: pkg install nginx service nginx onestart Then on a client VM (currently only tested with FreeBSD), run the following= (or similar): for i in {1..10000}; do if [ $(curl -s -o /dev/null -w "%{http_code}" http:= //10.2.122.71) !=3D 200 ] ; then echo "error"; fi; done When vCPUs=3D1 on the server, I get no errors, when vCPUs>1 I get errors repo= rted. The frequency of errors *seems* to be proportional to the number of vC= PUs, but they are sporadic with no clear periodicity or pattern, so that is = just anecdotal. Also, the problem seems by far the most prevalent when commu= nicating between two VMs on the same host, in the same VLAN. Xen still sends= packets via the switch rather than bridging internally between the interfac= es. Note that we have not had a chance to investigate the effect of different n= umbers of CPUs on the *client* end, however it does seem to be governed enti= rely by the server end. =20 We cannot recreate this issue using the same FreeBSD image and same configu= ration, but using KVM as a hypervisor. =20 Has anyone met this before? =20 Thanks, =20 Laurence --B_3601879107_1679118586 Content-type: application/pkcs7-signature; name="smime.p7s" Content-transfer-encoding: base64 Content-disposition: attachment; filename="smime.p7s" MIIP9AYJKoZIhvcNAQcCoIIP5TCCD+ECAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0B BwGggg21MIIFYjCCBEqgAwIBAgIMSX2V7ElwCIrABZuQMA0GCSqGSIb3DQEBCwUAMF0xCzAJ BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTMwMQYDVQQDEypHbG9iYWxT aWduIFBlcnNvbmFsU2lnbiAyIENBIC0gU0hBMjU2IC0gRzMwHhcNMTYwODI2MTQzNjA4WhcN MTkwODI3MTQzNjA4WjCBnDELMAkGA1UEBhMCR0IxDTALBgNVBAgTBEtlbnQxEjAQBgNVBAcT CU1haWRzdG9uZTEfMB0GA1UEChMWR01PIEdsb2JhbFNpZ24gTGltaXRlZDEZMBcGA1UEAxMQ TGF1cmVuY2UgUGF3bGluZzEuMCwGCSqGSIb3DQEJARYfbGF1cmVuY2UucGF3bGluZ0BnbG9i YWxzaWduLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALBcjCf6ajlJBRGN ptXjlTf3Wwv5TuzE6iW5j3YOxxGE2uRSoisepRd5pHkQ3ffF1u4Rjfc3aXcHvlmipxf3pA3e TrGJGrlLhvpnY2Zg7ZXDYHEqZIfgASxl/5EXeshGqVi9uIoCjHng+oyfXU0GWuKPgqh88oZN Wm45QoeH4t96TRdlY/dpFjK8ea6vFvZApvbum8bYJZGlJOtgPl0j8/uF1akM8SNxciDQfT39 2quhOd6LxK0L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b3DQEJBTEPFw0xODAyMTkwOTU4MjdaMA0GCSqGSIb3DQEBAQUABIIBAIYJ rroL/O9xwtOdTUhkbvXH+oYvFTtPzrlg1QvLkCQn+IC6BUF4840hpt7MrQOeU5vASAlo54t6 Y1GJiOj/kfMU3p+u0GCPf7LsiRWGfFjbpzX2nHaDisT7PGFDp9beMSXQIjZiO9ElElSbTpPF Dr4ofT21umsiuzZevY9GV2+CPEmt9ijuFCcDG1eEBppgEBlwjG+BkoYv2sEu7DiqKGf10znh Vk9aHngQtVuBi67P8LBCEsNKlGKW1Y1yH9hgT8G7CMM1jfqbCC/NkzVwba/F394z8LZOv5eI St5DPdqs5HzDpF3vjXuGz312Nx1IWV5VfAFYWflGgCVIch0H6mg= --B_3601879107_1679118586--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D1AF75E7-49F9-4628-8B26-3ACB64994C97>