Date: Fri, 20 Mar 2020 10:16:37 +0100 From: Ole <ole@free.de> To: freebsd-questions@freebsd.org Subject: [solved] Re: Bhyve: virtio-net very slow with FreeBSD 12.0 Host Message-ID: <20200320101637.29ca7ef0.ole@free.de> In-Reply-To: <20190205150522.635b9e34.ole@free.de> References: <20190205150522.635b9e34.ole@free.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/oOiWO0fwRl7PKGCOa3fN4BB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, just for the record: There is also a Bug Report documenting this https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242894 It seems, there is a Bug in the hardware vlan tag processing.=20 I can solve the problem if I configure the interface with -vlanhwtag on the host before starting the rest. (via rc.conf) Thanks to Mike who gave me this hint Ole=20 Tue, 5 Feb 2019 15:05:22 +0100 - Ole <ole@free.de>: > 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_/oOiWO0fwRl7PKGCOa3fN4BB Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE60BGd7KVfL83NXCUJZaRRqjklFAFAl50ifUACgkQJZaRRqjk lFA/CxAAqJj8oNkCyMDcpEU4m8033hOBc1Nxdq3cQng5yJi7vo9ua6+enmp7zG+U y5HCiK/9yAjgUKUEpREea5aPP6siLkkyXPHuZ6eJmqOReczKXyONb2NI39wEye2N bmpK6LLOATy9+jlXewHP14cv059dvzl6XL9sBMy/seZQbwU/mIuOYmVf04699TRK XdjybFqEC16hWjUP9CfpI550m68Gk+qE0OyqRBULIVqu3/GEW8SZTr0ivxnML9K5 7bSadRbOMVT0urxJJWXoEMuWR48d92sUVvuVrFKOEvNOalxJhA4gJ0Mw0xdl5Vsi bHED2iQNaqIIrDZ9cHoVMhuiENCxmzsnbTwbh8qg3hav1TpJXOyp/lKB58YeyreV IjFsv9WEGX/Z04eyFxhA2cjtiJSy7HkAJKL2/U+A0zGhbcVRYdFr2IdH4xMqzttu WR1d9ugZJ4CWA0LtQcMIeGdHctuc2bcexAFtMgPHlwy0Eq1dwX6vu3ka4oKG6zPK NoRvxS0SKWlt/N8sKNEyeRG+T8O43jS01nvzfjYoru9usCMy2ok8e2Qms0SpU53a OoU6eVcHs8VDtQTcw3PCpMLjxFt8RTG3Z8GVbMpJcT/yD1xtsE6EvPdKkYv2y0KV sqkj2Uyt8Z0AYqQDdyBeIoOxsefUcucdCgDWsRFHpZttfc3wFlQ= =vDmn -----END PGP SIGNATURE----- --Sig_/oOiWO0fwRl7PKGCOa3fN4BB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200320101637.29ca7ef0.ole>