Date: Mon, 14 Aug 2023 11:38:22 +0200 From: "Patrick M. Hausen" <hausen@punkt.de> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Odhiambo Washington <odhiambo@gmail.com>, freebsd-virtualization@freebsd.org Subject: Re: bhyve VM not getting as much upload bandwidth as the host Message-ID: <96160FBF-4E48-48E3-B26C-026CEB5B03C2@punkt.de> In-Reply-To: <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> References: <CAAdA2WN6FTT=Bn-p3EEGDk_-8=g_PoFicUb%2Be-ybcpKxjY5bwQ@mail.gmail.com> <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> <CAAdA2WM8Qrro-md-Rg%2BXfj5BxNrP_A8chD6TGrxQD2G14oC86g@mail.gmail.com> <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi all, > Am 14.08.2023 um 11:30 schrieb Miroslav Lachman <000.fbsd@quip.cz>: >=20 > On 14/08/2023 10:49, Odhiambo Washington wrote: >> I had the following in sysctl.conf: >> net.link.tap.up_on_open=3D1 >> net.link.bridge.pfil_member=3D0 >> net.link.bridge.pfil_bridge=3D0 >> net.link.bridge.pfil_local_phys=3D1 >> So I only did: >> sysctl -w net.link.bridge.pfil_onlyip=3D0 >> sysctl -w net.link.bridge.pfil_local_phys=3D0 >> Nothing has changed for the linux VM. >> Windows11 VM is getting download/upload speed of 40Mbps/37Mbps while = a Debian12 VM is getting download/upload of 37Mbps/45Kbps. >> Maybe there is an issue with the Linux itself? >=20 > I never had this solved. Even my FreeBSD guest on FreeBSD host with = VirtualBox is slow as few hunderds kB/s > It was like 10Mbps with Bhyve. I only use VMs for testing but = installing packages is always so slow. So you are not alone. I would = really like to know how to improve the network speed with virtualized = environment. This looks weird to me. I run lots of VMs in production on TrueNAS CORE - essentially FreeBSD 13-STABLE with bhyve and all of them get near = gigabit speed with bridged networking. Guests: Windows Ubuntu FreeBSD (OPNsense) Specifically the OPNsense VM can route 700-800 Mbit/s across gigabit = interfaces. All my VMs use VirtIO network drivers - do yours? Odhiambo, another minor thing: > ifconfig_em1=3D"inet w.x.y.z netmask 255.255.255.0 mtu 1492 -tso -lro = -txcsum -rxcsum" A bridge member interface must not have a layer 3 address. You must put = the IP address on the bridge interface itself and only configure ifconfig_em1=3D"mtu 1492 -tso -lro -txcsum -rxcsum up" But this is most probably not connected to your performance problem. It = just breaks other things if you have an IP address on a bridge member ;-) Why are you lowering the MTU of em1? Does that carry over to the bridge = interface? What's the MTU of the emulated interface in your Linux VM? Kind regards, Patrick --=20 punkt.de GmbH Patrick M. Hausen .infrastructure Sophienstr. 187 76185 Karlsruhe Tel. +49 721 9109500 https://infrastructure.punkt.de info@punkt.de AG Mannheim 108285 Gesch=C3=A4ftsf=C3=BChrer: Daniel Lienert, Fabian Stein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96160FBF-4E48-48E3-B26C-026CEB5B03C2>