From owner-freebsd-questions@freebsd.org Tue Feb 5 14:05:37 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F61014B9FC2 for ; Tue, 5 Feb 2019 14:05:37 +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 0373474283 for ; Tue, 5 Feb 2019 14:05:35 +0000 (UTC) (envelope-from ole@free.de) Received: from bard (x5d8560e9.dyn.telefonica.de [93.133.96.233]) by smtp.free.de (Postfix) with ESMTPSA id 6FB5A21B51 for ; Tue, 5 Feb 2019 15:05:26 +0100 (CET) Date: Tue, 5 Feb 2019 15:05:22 +0100 From: Ole To: freebsd-questions@freebsd.org Subject: Bhyve: virtio-net very slow with FreeBSD 12.0 Host Message-ID: <20190205150522.635b9e34.ole@free.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/hzMT/DWeH6RFwqqMA6OukBU"; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 0373474283 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; 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 [-2.84 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,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)[-0.999,0]; DMARC_NA(0.00)[free.de]; NEURAL_SPAM_SHORT(0.57)[0.572,0]; MX_GOOD(-0.01)[pop.free.de]; RCVD_IN_DNSWL_NONE(0.00)[103.6.204.91.list.dnswl.org : 127.0.10.0]; MID_CONTAINS_FROM(1.00)[]; IP_SCORE(-0.00)[country: DE(-0.01)]; SIGNED_PGP(-2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[233.96.133.93.zen.spamhaus.org : 127.0.0.10]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; 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: Tue, 05 Feb 2019 14:05:37 -0000 --Sig_/hzMT/DWeH6RFwqqMA6OukBU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, I discovered that virtio-net very slow with FreeBSD 12.0 Host. And with very slow I mean 16 kBit/s. 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. Either I do something really wrong or there is a Bug in the virtio-net. 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 Bridges are created by rc.conf: # Vlans vlans_em0=3D"030" ifconfig_em0_4030=3D"mtu 1400 up" # Bridges cloned_interfaces=3D"bridge0" ifconfig_bridge0=3D"addm em0.4030 mtu 1400 up" switch definition: switch_list=3D"vm-net" type_vm-net=3D"manual" bridge_vm-net=3D"bridge0" VM config: 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" vm creation: vm create -t test-host -i FreeBSD-12.0-RELEASE-amd64.raw test-example-com vm start test-example-com Network setup (on the VM): root@freebsd:~ # ifconfig vtnet0 xx.xx.xx.xx/28 mtu 1400 root@freebsd:~ # route add default yy.yy.yy.yy could someone help me to figure out if this is a Bug, and if yes where it i= s? Thanks Ole --Sig_/hzMT/DWeH6RFwqqMA6OukBU Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE60BGd7KVfL83NXCUJZaRRqjklFAFAlxZmCIACgkQJZaRRqjk lFACnhAArkQExBee83Bg6bTIbb6snrc4GATOURr/2Om2ueU8uUAJWl4olV51cKC+ zCB5KoH0DsjTJzirlnk69L7alZVcrYY/o+QEgou/3esyQ5SHHexxcnR2PN5fP4OT 9yywTNKgrnzkJZvTpxAvQVK/xsTUF33aVj+ZPfCYc4RCEyZ+1yXAJNML9bad5fUf dmqskT4mtU7TfzXxq2uU5hlsUaoBNMSHkUnVCHVEDEsm8OucLl6eKSoFJHfJp3MW SNdNuO4Sn3oiRBXZ+X2uiHQqnu+wbhmjvw3JUTOJbZ30xI86oRVBY2AK4QUkYvHn ruHjIDVLU2HZn6kozeQSDM9j0SSdNy0EXDy9IId3GIz82+LiSFjbF2/6NkWlD4ym Lnzv3Abzz9iLz4B+npTriQ2Abh6u5O5FVCT0VJkbSKM76+qNc4JycnQ7K5iG5Gln uV7oBIGAMEYHgNfOdCPNZsGtfiWjwNyP+JoEdkj8eHceJfqv3Xo4C26DVpYvOLbT XpiKUwAAL5vkgCzVz1hPgvgJL2T+wkRsnav93+0S20YkBF8i+tTkhsUjciI6yPZ1 lZM//JTEGqmBOiM1QXxYZ7RrrHs/WqMOFieVBXNZcfu+QkqNAoCLjtdq29xNDZvH qPSMnqj9Noe7xgEbUbqfFq4iadbZ4qAm0Zn0xEAngFFPpzPdS0Y= =ztLx -----END PGP SIGNATURE----- --Sig_/hzMT/DWeH6RFwqqMA6OukBU--