From nobody Mon Aug 14 10:47:22 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 4RPWMN2BlLz4qJWB for ; Mon, 14 Aug 2023 10:48:00 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 4RPWMN1NM6z4TBb for ; Mon, 14 Aug 2023 10:48:00 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99c0290f0a8so512570666b.1 for ; Mon, 14 Aug 2023 03:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692010079; x=1692614879; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OmgiPhWhkcuWPSJ6m9WuoZKVSAAcEueao0Y0pZy665w=; b=ImUDtx0yVwfMAIydeRUlgEYOYlYJe8e/HjM7qiw4Gly3GM7/9EuYjryjpOCvso4PC6 R8oIDZdBnTgbPz/Q4DkblLwyDK9RAOV5aU4+Px4IpdyBISVrSMl34zqM6sSPcS18xqAM jDdaXrHcOvkz5PDn2vqjMikkCE1iTlxXySUFCWD10lyVUwm/MovABGAuktvPCkcDt4A9 zn+HVuW3TCp0+FcLV7T3aDbQMoMLw3xOt117IFvKqU2y/bkMmwiE0UJqiOmL12kIg1sA mxvHnGms8ilHk84Df7tAS0HymWQh/r46kPteMJay2Y9yw41eGF9C5CNXcoW5kJlF90R5 jeYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692010079; x=1692614879; 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=OmgiPhWhkcuWPSJ6m9WuoZKVSAAcEueao0Y0pZy665w=; b=hh4JWGetazhgDmBCir1Uihb2iQBQqXtivOYs7dl256xANfTb1/WmxuGJ6WrogLI2oe upbH+VSegchmI56EVYxejS78o7E+Z5o8nJcJ6vCCC4Tljv4LFgFSUcE1aQTPNILkbJrV iWMKGIv+AoLAmxb8Pb43WIJ9kF5357RAMDaxCsaATYHqEftpJvRrxWCcR5un/Wkt1Pzi +20xzqm6pJmDXXF7CNXqKFKftgqC9kF2D3yDi2NhhKkGW+yFHY3XKAqbKyfc2wcw/8RY q4aHOcetrcsVVoCANCMMFaIlUS2MK/xzPYxQRJiMe+b1+Q2K4ut+5UdPRKYl6NJ9Rj+E m3yQ== X-Gm-Message-State: AOJu0YxuDi5FhyxgXpRW/NrsIImkpJ+nvA0ATD1IRmGXm/vSkxl3N/ZE xdVTFJSdGORiC4NCpYH9pTLtTpgjjixXbufFfG0= X-Google-Smtp-Source: AGHT+IFY5pN6fSZoaODE4O8VYB8U58bMCnSq+JSLTPUo3f5hUzKYkdTOBh2wWMoMAp2L1ywxTwomVglQ0bfDvabtrLo= X-Received: by 2002:a17:906:73cf:b0:99b:b3a1:437b with SMTP id n15-20020a17090673cf00b0099bb3a1437bmr7850024ejl.40.1692010078568; Mon, 14 Aug 2023 03:47:58 -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 12:47:22 +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="000000000000b084170602dfcb31" X-Rspamd-Queue-Id: 4RPWMN1NM6z4TBb 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] --000000000000b084170602dfcb31 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 1) You can try with Ubuntu 23.04. But are you using VirtualBOX ? Don't use it,anyway. Bhyve is much better. 2) VMWare Workstation can't be added to the equation,because it does not run on FreeBSD. Maybe you mean VirtualBOX. 3) You can try with another FreeBSD version that you install on a different machine ? 4) You can try to configure the network settings on the host os (FreeBSD 13.2-RELEASE) in a different way. Maybe there is some error there. Follow the Patrick M. Hausen's suggestion. He could be on the right track. On Mon, Aug 14, 2023 at 12:25=E2=80=AFPM Odhiambo Washington wrote: > 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 ? >> 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@qui= p.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 >>> 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. >> > > > -- > 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. --000000000000b084170602dfcb31 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
1) You can try with Ubuntu 23.04. But are you using V= irtualBOX ? Don't use it,anyway. Bhyve is much=C2=A0better.
2) VMWare Workstation can't be added to the equation,because it does= not run on FreeBSD. Maybe you mean VirtualBOX.
3) You can try wi= th another FreeBSD version that you install on a different machine ?
<= div>4) You can try to configure the network settings on the host os (FreeBS= D 13.2-RELEASE) in a different way. Maybe there is some error there. Follow= the Patrick M. Hausen's sug= gestion. He could be on the right track.

On Mon, Aug 14, 2023 at 12:25=E2=80=AFPM Odhi= ambo Washington <odhiambo@gmail.co= m> wrote:
Hi Mario,

1. As mentioned, = I am only having this issue with the Debian12 VM. I am going to test an Ubu= ntu-23.04 and see if there's a difference.
2. I don't hav= e any such issue with Debian12 VM using VMware Workstation which I run on m= y 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 <marietto2008@gmail.com>= 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 :
=C2=A0
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)<= /div>
4) any other combination that can exclude variables

On M= on, 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 La= chman <000.fbsd@qu= ip.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 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]


--
Mario.
--000000000000b084170602dfcb31--