Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2023 12:47:22 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Odhiambo Washington <odhiambo@gmail.com>
Cc:        Miroslav Lachman <000.fbsd@quip.cz>, freebsd-virtualization@freebsd.org
Subject:   Re: bhyve VM not getting as much upload bandwidth as the host
Message-ID:  <CA%2B1FSih1Ay836E%2By-b%2BOaH_xUeYQW9tT65K-6=1LXOp54WhjJg@mail.gmail.com>
In-Reply-To: <CAAdA2WOe8wyc6HNpTn0OxkkaKaGPvzivjKq5rSW=WRMu7e10Jw@mail.gmail.com>
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> <CAAdA2WMTqRNRgviymPw1jA45Q8oA-Ygx0hn=5=7aQdHWmfFusg@mail.gmail.com> <CA%2B1FSijj7Thfj1Wxf1bQq4AQzUCvzfZ93rwbPtsRwOQRb0=0=Q@mail.gmail.com> <CAAdA2WOe8wyc6HNpTn0OxkkaKaGPvzivjKq5rSW=WRMu7e10Jw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <odhiambo@gmai=
l.com>
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 <marietto2008@gma=
il.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 :
>>
>> 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 <odhiambo@g=
mail.com>
>> 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

<div dir=3D"ltr"><div>1) You can try with Ubuntu 23.04. But are you using V=
irtualBOX ? Don&#39;t use it,anyway. Bhyve is much=C2=A0better.<br></div><d=
iv>2) VMWare Workstation can&#39;t be added to the equation,because it does=
 not run on FreeBSD. Maybe you mean VirtualBOX.</div><div>3) You can try wi=
th another FreeBSD version that you install on a different machine ?</div><=
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 <span class=3D"gmail-qu" role=3D"gridcell" tabindex=3D"-1"><span name=
=3D"Patrick M. Hausen" class=3D"gmail-gD"><span>Patrick M. Hausen&#39;s sug=
gestion. He could be on the right track.</span></span></span></div><div><ta=
ble cellpadding=3D"0" class=3D"gmail-cf gmail-gJ"><tbody><tr class=3D"gmail=
-acZ gmail-xD"><td colspan=3D"3"><table cellpadding=3D"0" class=3D"gmail-cf=
 gmail-adz"><tbody><tr><td class=3D"gmail-ady"></td></tr></tbody></table></=
td></tr></tbody></table></div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Mon, Aug 14, 2023 at 12:25=E2=80=AFPM Odhi=
ambo Washington &lt;<a href=3D"mailto:odhiambo@gmail.com">odhiambo@gmail.co=
m</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
><div dir=3D"ltr"><div>Hi Mario,</div><div><br></div><div>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&#39;s a difference.</div><div>2. I don&#39;t hav=
e any such issue with Debian12 VM using VMware Workstation which I run on m=
y laptop.</div><div>3. My host OS is FreeBSD 13.2-RELEASE. I CANNOT change =
that as it is a production server running other things. It&#39;s not a box =
for playing with :-)</div><div>4. Not sure what you&#39;d me to do with #4.=
</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
On Mon, Aug 14, 2023 at 12:42=E2=80=AFPM Mario Marietto &lt;<a href=3D"mail=
to:marietto2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>&gt;=
 wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=
=3D"ltr"><div>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 :<br></d=
iv><div>=C2=A0<br></div><div>1) within your specific vm only<br></div><div>=
2) in any vm you create with virtualbox and linux (which distro ? changing =
distro may solve the problem)<br></div><div>3) on the network config of the=
 host os (freebsd) (what version ? changing version may solve the problem)<=
/div><div>4) any other combination that can exclude variables<br></div></di=
v><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On M=
on, Aug 14, 2023 at 11:35=E2=80=AFAM Odhiambo Washington &lt;<a href=3D"mai=
lto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gmail.com</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr=
"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">On Mon, Aug 14, 2023 at 12:30=E2=80=AFPM Miroslav La=
chman &lt;<a href=3D"mailto:000.fbsd@quip.cz" target=3D"_blank">000.fbsd@qu=
ip.cz</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:=
1ex">On 14/08/2023 10:49, Odhiambo Washington wrote:<br>
&gt; I had the following in sysctl.conf:<br>
&gt; net.link.tap.up_on_open=3D1<br>
&gt; net.link.bridge.pfil_member=3D0<br>
&gt; net.link.bridge.pfil_bridge=3D0<br>
&gt; net.link.bridge.pfil_local_phys=3D1<br>
&gt; <br>
&gt; So I only did:<br>
&gt; sysctl -w net.link.bridge.pfil_onlyip=3D0<br>
&gt; sysctl -w net.link.bridge.pfil_local_phys=3D0<br>
&gt; <br>
&gt; Nothing has changed for the linux VM.<br>
&gt; <br>
&gt; Windows11 VM is getting download/upload speed of 40Mbps/37Mbps while a=
 <br>
&gt; Debian12 VM is getting download/upload of 37Mbps/45Kbps.<br>
&gt; Maybe there is an issue with the Linux itself?<br>
<br>
I never had this solved. Even my FreeBSD guest on FreeBSD host with <br>
VirtualBox is slow as few hunderds kB/s<br>
It was like 10Mbps with Bhyve. I only use VMs for testing but installing <b=
r>
packages is always so slow. So you are not alone. I would really like to <b=
r>
know how to improve the network speed with virtualized environment.<br>
<br>
Kind regards<br>
Miroslav Lachman<br></blockquote><div><br></div><div>I had a FreeBSD VM for=
 testing under bhyve and it did not suffer from this upload speed hiccup.=
=C2=A0</div><div>=C2=A0</div></div><br clear=3D"all"><div><br></div><span c=
lass=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gma=
il_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<br>Odhia=
mbo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&quot=
;<span style=3D"font-size:12.8px">Oh, the cruft.</span><span style=3D"font-=
size:12.8px">&quot;,=C2=A0</span><span style=3D"font-size:12.8px">egrep -v =
&#39;^$|^.*#&#39;=C2=A0</span><span style=3D"background-color:rgb(34,34,34)=
;color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&qu=
ot;Courier New&quot;,monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/=C2=
=AF</span><span style=3D"font-size:12.8px">=C2=A0:-)</span></div><div><span=
 style=3D"font-size:12.8px">[How to ask smart questions:=C2=A0</span><span =
style=3D"font-size:12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smart-q=
uestions.html" target=3D"_blank">http://www.catb.org/~esr/faqs/smart-questi=
ons.html</a>]</span></div></div></div></div></div>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d=
iv>
</blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<=
br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&quot;<span style=3D"=
font-size:12.8px">Oh, the cruft.</span><span style=3D"font-size:12.8px">&qu=
ot;,=C2=A0</span><span style=3D"font-size:12.8px">egrep -v &#39;^$|^.*#&#39=
;=C2=A0</span><span style=3D"background-color:rgb(34,34,34);color:rgb(238,2=
38,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&q=
uot;,monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span st=
yle=3D"font-size:12.8px">=C2=A0:-)</span></div><div><span style=3D"font-siz=
e:12.8px">[How to ask smart questions:=C2=A0</span><span style=3D"font-size=
:12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smart-questions.html" tar=
get=3D"_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</spa=
n></div></div></div></div></div>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d=
iv>

--000000000000b084170602dfcb31--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSih1Ay836E%2By-b%2BOaH_xUeYQW9tT65K-6=1LXOp54WhjJg>