From owner-freebsd-questions@freebsd.org Thu Sep 26 12:14:01 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 26C99124EB5 for ; Thu, 26 Sep 2019 12:14:01 +0000 (UTC) (envelope-from ole@free.de) Received: from smtp.free.de (smtp.free.de [91.204.6.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46fDP352w0z49hf for ; Thu, 26 Sep 2019 12:13:59 +0000 (UTC) (envelope-from ole@free.de) Received: from bard (x4e3059e0.dyn.telefonica.de [78.48.89.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.free.de (Postfix) with ESMTPSA id 14E2290DF for ; Thu, 26 Sep 2019 14:13:57 +0200 (CEST) Date: Thu, 26 Sep 2019 14:13:53 +0200 From: Ole To: freebsd-questions@freebsd.org Subject: Re: Bhyve: virtio-net very slow with FreeBSD 12.0 Host Message-ID: <20190926141353.55274583.ole@free.de> In-Reply-To: <20190205150522.635b9e34.ole@free.de> References: <20190205150522.635b9e34.ole@free.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/53kM30TV56uzXdfgI5ZVFK3"; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 46fDP352w0z49hf X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ole@free.de designates 91.204.6.103 as permitted sender) smtp.mailfrom=ole@free.de X-Spamd-Result: default: False [-7.11 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[free.de]; IP_SCORE(-3.71)[ip: (-9.74), ipnet: 91.204.4.0/22(-4.87), asn: 31371(-3.90), country: DE(-0.01)]; RCVD_IN_DNSWL_NONE(0.00)[103.6.204.91.list.dnswl.org : 127.0.10.0]; MID_CONTAINS_FROM(1.00)[]; SIGNED_PGP(-2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[224.89.48.78.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:31371, ipnet:91.204.4.0/22, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2019 12:14:01 -0000 --Sig_/53kM30TV56uzXdfgI5ZVFK3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, I want to push this up again. Cause I ran into it again :-( I wonder why no one else has a similar problem. I think my setup is very common. I made some tcpdumps during (very slow) package installation inside the VM.=20 tcpdump -i igb0 | grep pkg tcpdump -i igb0.4030 | grep pkg tcpdump -i bridge0 | grep pkg tcpdump -i tap0 | grep pkg the very long output is here https://pastebin.com/vM1VFziJ . For me it looks like very normal TCP traffic. seqs and acks ... thanks Ole Tue, 5 Feb 2019 15:05:22 +0100 - Ole : > Hello, >=20 > I discovered that virtio-net very slow with FreeBSD 12.0 Host. And > with very slow I mean 16 kBit/s. >=20 > I can't exclude that there is a problem in my setup. But I created two > very similar setups. One with FreeBSD 11.2 and one with 12.0. The > server with 11.2 has no problem. >=20 > Either I do something really wrong or there is a Bug in the > virtio-net. >=20 >=20 > Both Servers are connected to a switch, the IPs of the VMs are in the > vlan 4030. The Bhyve VMs are mangaed by vm-bhyve (master from > github).=20 >=20 > Bridges are created by rc.conf: >=20 > # Vlans > vlans_em0=3D"030" > ifconfig_em0_4030=3D"mtu 1400 up" >=20 > # Bridges > cloned_interfaces=3D"bridge0" > ifconfig_bridge0=3D"addm em0.4030 mtu 1400 up" >=20 > switch definition: >=20 > switch_list=3D"vm-net" > type_vm-net=3D"manual" > bridge_vm-net=3D"bridge0" >=20 > VM config: >=20 > loader=3D"bhyveload" > cpu=3D7 > memory=3D40G > network0_type=3D"virtio-net" > network0_switch=3D"vm-net" > disk0_type=3D"virtio-blk" > disk0_name=3D"disk0" > disk0_dev=3D"sparse-zvol" >=20 >=20 > vm creation: >=20 > vm create -t test-host -i FreeBSD-12.0-RELEASE-amd64.raw > test-example-com vm start test-example-com >=20 > Network setup (on the VM): >=20 > root@freebsd:~ # ifconfig vtnet0 xx.xx.xx.xx/28 mtu 1400 > root@freebsd:~ # route add default yy.yy.yy.yy >=20 > could someone help me to figure out if this is a Bug, and if yes > where it is? >=20 > Thanks > Ole --Sig_/53kM30TV56uzXdfgI5ZVFK3 Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE60BGd7KVfL83NXCUJZaRRqjklFAFAl2Mq4EACgkQJZaRRqjk lFB9cw//XD2CTdNDDBf0UVLiR6YfyW7g7sWKxWg7pPmt+/csvKGuyhkSbb5geB2s 8N68oCam896XVG+jrmms4KBunEQMiJh0NFXfr7bsGKR5DLXIkh1tiZnzWicmL4CE uHpZ0RfZyxw42J+qh1XuPQy5Faz0W4OjkIgIYDSAWTpG/6v2Hen1OVAw0xJ9NQLI AsJXHn9ehc6EXESPNZZ+0VPdX6zY4ptsfBc2Iz8PgGsWKWn58/cYedpu0lU8/abf eOht6DkfjsjaxdK4+Rc8/n7gmMXmau70iaAbRZd+fHd/VikqVZG41kfYPh/69iBz V0J1xrZdoACZVTqVt7V4xGxEnFU2/LCxgpvnWcdY30IuVLnbJpCb9UQSTQgq17Wu Dh8q3mwA7ivy1EcmLalF8aZf+pTOvaMAsHnWbMNSF06hefE2sbbGbPGSzXI/bdKO RNiVfYlB/1kuUWwJOCwf4BvQ1ZwrzNV1eT0fGZcqWiJ/fRS9mCRM6zIrqOaJyzw0 ZviE2Xsx0MJoM25l1HXB4+eejAN3s/KXJDQx/DwhPjKhm/xEEtfGHZuSidd7ia5W VQ7dAEyCTLu2gp0NBa4ZNwfdxhFY+BihIjI9x2erBKkR1AR1a/eF1In4AsRAuaO4 svSDNCPObixOaQ/9kORTb9HPkRDRABCa5cCpEACSGNWANvTXSzo= =h4JO -----END PGP SIGNATURE----- --Sig_/53kM30TV56uzXdfgI5ZVFK3--