From nobody Mon Aug 14 09:41:56 2023 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPTvt3mTKz4qDZL for ; Mon, 14 Aug 2023 09:42:34 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPTvt2rHLz4PVw for ; Mon, 14 Aug 2023 09:42:34 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-522bd411679so5428232a12.0 for ; Mon, 14 Aug 2023 02:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692006153; x=1692610953; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=axPyGQbOgLjlD8rAPwj0ffx3yWiNewMOjqjs4sJTVCI=; b=Z70LcSwedvvw/y5yJqFmGIc51UgZX8zIfLqIai+COgNcxT9PYyi4e0Z211OKu+2cbp 85aDjLSCWuDX2gnxhh9Gpuyt0K7ZzDuKqxY2g6Sr7KOOWWAjA6FYDqjrVjIuQRCoP331 wSioj/e9GeiTNtgRaxil0iT+TB3De8TAqAHLZGnhNaofbmcQ69ElaHXdIIXszwCIR9+b gNixoCJIa5MNHOm+OWjRiFFDPYbmPgCVb5EQqnpWZFOoLT4QlZB5XB7T0P6xlH5SUc6e hm8DH0jupokIIs5qjuMr8ER1ozTocrEwckZE7dze5Vo9vwettG/db9BD/1Rmk2Tvnbk7 NJIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692006153; x=1692610953; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=axPyGQbOgLjlD8rAPwj0ffx3yWiNewMOjqjs4sJTVCI=; b=GUxQEZjMJCsnoA8RBP072aMwOPbZrBbUqs9sGVHtTvYIIFoYWp4gzLzIeSDnIVsoYl +bSWf2oxR2UgFTFONCH8KdwUf+aytmOQ0d3HYuTqB27c2KwPsRWhFmyZO/d/R8nk9AyF x06W+4Wj55Bv10AOnIgALYNFvbEbEt25ZK6wG920NYSXkzXo9TjHp8ttOe79W3SLsDCe cEPnCWQL9lXtqhD8LmywF8cGBhOukoyCJGYy+7SAFL8PH0Xv2ynaqLYYUtHjOmX9Vh5v wvewIOzWRRs5/myc7YokCAPeJHeAg+A1ULdvLS8eXiMKxCeuzVDLHj9QhlXDhUMg6SBK ToMg== X-Gm-Message-State: AOJu0YwSMcrKlSIm8exefyNt3OzpSgWD5PGH1CmKpMRbkYZQlt3XCfk5 nFHxO3RpYjt19Gd5AWm40lJkdZoVDje8LoCvVp0= X-Google-Smtp-Source: AGHT+IF20CWXRVzbgMje4+ivSIq6rnhqPPUlX6woSae62UDNMdPneaPPtvM3XxZoISz01zqZS2smgc9Ke+EpE6pVgFM= X-Received: by 2002:a17:907:1de9:b0:99b:55e3:bbd with SMTP id og41-20020a1709071de900b0099b55e30bbdmr7867204ejc.34.1692006152588; Mon, 14 Aug 2023 02:42:32 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> In-Reply-To: From: Mario Marietto Date: Mon, 14 Aug 2023 11:41:56 +0200 Message-ID: Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: Odhiambo Washington Cc: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000aed7130602dee103" X-Rspamd-Queue-Id: 4RPTvt2rHLz4PVw X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --000000000000aed7130602dee103 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You should isolate the problem. You could make some tests to understand where the problem is. So you could create a matrix that can help you to create all the possible cases to analyze if the problem is : 1) within your specific vm only 2) in any vm you create with virtualbox and linux (which distro ? changing distro may solve the problem) 3) on the network config of the host os (freebsd) (what version ? changing version may solve the problem) 4) any other combination that can exclude variables On Mon, Aug 14, 2023 at 11:35=E2=80=AFAM Odhiambo Washington wrote: > > > On Mon, Aug 14, 2023 at 12:30=E2=80=AFPM Miroslav Lachman <000.fbsd@quip.= cz> > wrote: > >> 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? >> >> 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. >> >> Kind regards >> Miroslav Lachman >> > > I had a FreeBSD VM for testing under bhyve and it did not suffer from thi= s > upload speed hiccup. > > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254 7 3200 0004/+254 7 2274 3223 > "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) > [How to ask smart questions: > http://www.catb.org/~esr/faqs/smart-questions.html] > --=20 Mario. --000000000000aed7130602dee103 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You should isolate the problem. You could make some t= ests to understand where the problem is. So you could create a matrix that = can help you to create all the possible cases to analyze if the problem is = :
=C2=A0
1) within your specific vm only
2) in any vm you create with virtualbox and linux (which distro ? c= hanging distro may solve the problem)
3) on the network confi= g of the host os (freebsd) (what version ? changing version may solve the p= roblem)
4) any other combination that can exclude variables

On Mon, Aug 14, 2023 at 11:35=E2=80=AFAM Odhiambo Washington <odhiambo@gmail.com> wrote:
=


On Mon, Aug 14, 2023 at 12:30=E2=80=AFPM Miroslav Lachman <= 000.fbsd@quip.cz&= gt; wrote:
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?

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.

Kind regards
Miroslav Lachman

I had a FreeBSD VM for= testing under bhyve and it did not suffer from this upload speed hiccup.= =C2=A0
=C2=A0


--
Best regards,
Odhia= mbo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"= ;Oh, the cruft.",=C2=A0egrep -v = '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2= =AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questi= ons.html]


--
Mario.
--000000000000aed7130602dee103--