From nobody Mon Aug 14 10:25:17 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 4RPVsv5z2Xz4qHDs for ; Mon, 14 Aug 2023 10:25:55 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 4RPVsv4fc1z4RQf for ; Mon, 14 Aug 2023 10:25:55 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9cdbf682eso61530771fa.2 for ; Mon, 14 Aug 2023 03:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692008754; x=1692613554; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cshmIo3oB421ZBW8b8hwcjfGWovxHgDUUABmy1bQido=; b=bJ21TUwUzt3IjktDws1rMRFoGu3AnWnlTScIhJaTx2SyL1eQEG7WUZI7ReyH6XZ6n2 V86LjXktApXYDoRz/8y87Uyk/e2FWADWU7iRoeh0dqRQKAX+PfZ8cEarO33roJ4KAa0o dC9GYKMR1bk0iv+dmf5IuKac6JPAa/5PxZOzziV31rt7V95sDEsNgRrw4hlrrFS41wMk y9sFP8oL1Gwc6YEbFaBUeAxXd3dPyElApJG/pq/v8XOXt9io7ZXcOvQCV4DQWVw+Jc+A XvSw8dfU7vCdBc+C4CRxkeJTUoylE3Mf72JlITUE5TD9E5BRcQpC2vOoLA7zn8sp4B4Y uv3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692008754; x=1692613554; 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=cshmIo3oB421ZBW8b8hwcjfGWovxHgDUUABmy1bQido=; b=L88kShGwCGfYM1Q60pGG5CcXvQG2X73X/wZku5XhgUwdx1u0znXDWmhEsko60rF8/C 98EMwpb9wPA2ruX8e+GsebM+7hMhWg0BvMsPXYiUnlUkK/k7n87SSDTyYv/3TuUVLMDx fVHDjfSx9DZ/HH5i2ok46SqcAZYssLkWHdTy3OFDysVGet1fZqeHTAPdXx0UPQ4xZwaK pmvVCz1WkYjs7G+Gh2KHWmKU7Jzv8mqAF5UyhhYamN9g0by6Ra3H7WCw5AolJY1N2Dbs x4rFgtM/cv0MBThg8gD9oG8Epq+lfVLtRVodMa98OWFRINR1QISJ0g2noQbiCX0E/roR njcw== X-Gm-Message-State: AOJu0YxwnChAth771ed6sL8D+T8p4SbP77AItX5+GlbCTQEsSneyHxlR QW995caMkp4XNJx7EynR+RGjeZjFdS26GlUcS6c= X-Google-Smtp-Source: AGHT+IGv1v+o64Pn1GECzYPaPIW8XoQOxfK4CQm1jnvX/RIa1FzYeBnKlQPeBHfxL3ilCrY6ezrlZ5mp+av3tHEmGf8= X-Received: by 2002:a2e:3c11:0:b0:2b6:ded8:6fc1 with SMTP id j17-20020a2e3c11000000b002b6ded86fc1mr6318312lja.25.1692008753817; Mon, 14 Aug 2023 03:25:53 -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: Odhiambo Washington Date: Mon, 14 Aug 2023 13:25:17 +0300 Message-ID: Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: Mario Marietto Cc: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ba6b7d0602df7c54" X-Rspamd-Queue-Id: 4RPVsv4fc1z4RQf 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] --000000000000ba6b7d0602df7c54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mario, 1. As mentioned, I am only having this issue with the Debian12 VM. I am going to test an Ubuntu-23.04 and see if there's a difference. 2. I don't have any such issue with Debian12 VM using VMware Workstation which I run on my laptop. 3. My host OS is FreeBSD 13.2-RELEASE. I CANNOT change that as it is a production server running other things. It's not a box for playing with :-) 4. Not sure what you'd me to do with #4. On Mon, Aug 14, 2023 at 12:42=E2=80=AFPM Mario Marietto wrote: > 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 ? changin= g > distro may solve the problem) > 3) on the network config of the host os (freebsd) (what version ? changin= g > 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 installin= g >>> packages is always so slow. So you are not alone. I would really like t= o >>> 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. >> >> >> >> -- >> 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] >> > > > -- > Mario. > --=20 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] --000000000000ba6b7d0602df7c54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Mario,

1. As mentioned, I= am only having this issue with the Debian12 VM. I am going to test an Ubun= tu-23.04 and see if there's a difference.
2. I don't have= any such issue with Debian12 VM using VMware Workstation which I run on my= laptop.
3. My host OS is FreeBSD 13.2-RELEASE. I CANNOT change t= hat as it is a production server running other things. It's not a box f= or playing with :-)
4. Not sure what you'd me to do with #4.<= /div>
O= n Mon, Aug 14, 2023 at 12:42=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:
You s= hould isolate the problem. You could make some tests to understand where th= e 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
<= /div>
1) within your specific vm only
2) in any vm you cr= eate with virtualbox and linux (which distro ? changing distro may solve th= e problem)
3) on the network config of the host os (freebsd) = (what version ? changing version may solve the problem)
4) any ot= her 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> wro= te:
On 14/08/202= 3 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.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.&qu= ot;,=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-questions.html]
--000000000000ba6b7d0602df7c54--