Date: Mon, 14 Aug 2023 12:32:56 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: Mario Marietto <marietto2008@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve VM not getting as much upload bandwidth as the host Message-ID: <CAAdA2WNarhvhHT68sha8ZNjPGyCp%2BiycoD7=o30gSDqh56jQKQ@mail.gmail.com> In-Reply-To: <CA%2B1FSijmUKc7B7giGrbUMh=KXGOBUpD=hRLaTOjonvaadvZRJw@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> <CA%2B1FSijmUKc7B7giGrbUMh=KXGOBUpD=hRLaTOjonvaadvZRJw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000089a74a0602dec18e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My host machine is in a Data Center. Where I live, we do not have access to so much bandwidth because it costs money. However, it's not a mobile connection :-) I also do not run a DHCP service on the host so I assign VMs static Ip based on the tap device they are attached to. On Mon, Aug 14, 2023 at 12:19=E2=80=AFPM Mario Marietto <marietto2008@gmail= .com> wrote: > Which kind of connection do you have ? It seems like a mobile connection. > I have a fiber connection,FTTC,I don't have your ifconfig parameters. I > have ifconfig_em0=3D"DHCP". > > On Mon, Aug 14, 2023 at 10:49=E2=80=AFAM Odhiambo Washington <odhiambo@gm= ail.com> > 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? >> >> >> On Sun, Aug 13, 2023 at 9:29=E2=80=AFPM Wouter Snels <ofloo@h4ck.io> wro= te: >> >>> sysctl these to >>> >>> >>> net.link.bridge.pfil_local_phys=3D0 >>> net.link.bridge.pfil_member=3D0 >>> net.link.bridge.pfil_bridge=3D0 >>> net.link.bridge.pfil_onlyip=3D0 >>> >>> Op 13/08/2023 om 18:04 schreef Odhiambo Washington: >>> >>> Hello all, >>> >>> I am still new to virtualization (using bhyve) and wanted to see if I >>> can get some help towards making headway with certain aspects. >>> >>> I am running a Debian12 VM under bhyve and I am wondering why it doesn'= t >>> get as much upload bandwidth as the main host when I run speedtest: >>> >>> From inside the VM: >>> >>> wash@debian12$ speedtest-cli >>> Retrieving speedtest.net configuration... >>> Testing from XXXXXX (x.x.x.x)... >>> Retrieving speedtest.net server list... >>> Selecting best server based on ping... >>> Hosted by Zuku (Nairobi) [0.16 km]: 6.798 ms >>> Testing download >>> speed..................................................................= .............. >>> Download: 48.31 Mbit/s >>> Testing upload >>> speed..................................................................= .................................... >>> Upload: 0.42 Mbit/s >>> >>> From the Host: >>> [16:03 ~ ]$ speedtest-cli >>> Retrieving speedtest.net configuration... >>> Testing from XXXXXXXX (x.x.x.x)... >>> Retrieving speedtest.net server list... >>> Selecting best server based on ping... >>> Hosted by Zuku (Nairobi) [0.16 km]: 2.493 ms >>> Testing download >>> speed..................................................................= .............. >>> Download: 47.91 Mbit/s >>> Testing upload >>> speed..................................................................= .................................... >>> Upload: 48.38 Mbit/s >>> >>> >>> -- >>> 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] >>> >>> >> >> -- >> 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] --00000000000089a74a0602dec18e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>My host machine is in a Data Center.<br>Where I live,= we do not have access to so much bandwidth because it costs money. However= , it's not a mobile connection :-)</div><div>I also do not run a DHCP s= ervice on the host so I assign VMs static Ip based on the tap device they a= re attached to.</div><div><br></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Mon, Aug 14, 2023 at 12:19=E2=80=AFPM Mari= o Marietto <<a href=3D"mailto:marietto2008@gmail.com">marietto2008@gmail= .com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1= ex"><div dir=3D"ltr">Which kind of connection do you have ? It seems like a= mobile connection. I have a fiber connection,FTTC,I don't have your if= config parameters. I have ifconfig_em0=3D"DHCP". <br></div><br><d= iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Aug = 14, 2023 at 10:49=E2=80=AFAM Odhiambo Washington <<a href=3D"mailto:odhi= ambo@gmail.com" target=3D"_blank">odhiambo@gmail.com</a>> wrote:<br></di= v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde= r-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>I= had the following in sysctl.conf:</div><div>net.link.tap.up_on_open=3D1<br= >net.link.bridge.pfil_member=3D0<br>net.link.bridge.pfil_bridge=3D0<br>net.= link.bridge.pfil_local_phys=3D1<br></div><div><br></div><div>So I only did:= </div><div>sysctl -w net.link.bridge.pfil_onlyip=3D0<br></div><div>sysctl -= w net.link.bridge.pfil_local_phys=3D0<br></div><div><br></div><div>Nothing = has changed for the linux VM.</div><div><br></div><div>Windows11 VM is gett= ing download/upload speed of 40Mbps/37Mbps while a Debian12 VM is getting d= ownload/upload of 37Mbps/45Kbps.</div><div>Maybe there is an issue with the= Linux itself?</div><div><br></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Sun, Aug 13, 2023 at 9:29=E2=80=AFPM Woute= r Snels <<a href=3D"mailto:ofloo@h4ck.io" target=3D"_blank">ofloo@h4ck.i= o</a>> 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"= > =20 =20 =20 <div> <p>sysctl these to <br> </p> <p><br> </p> <p>net.link.bridge.pfil_local_phys=3D0<br> net.link.bridge.pfil_member=3D0<br> net.link.bridge.pfil_bridge=3D0<br> net.link.bridge.pfil_onlyip=3D0<br> <br> </p> <div>Op 13/08/2023 om 18:04 schreef Odhiambo Washington:<br> </div> <blockquote type=3D"cite"> =20 <div dir=3D"ltr">Hello all, <div><br> </div> <div>I am still new to virtualization (using bhyve) and wanted to see if I can get some help towards making headway with certain aspects.</div> <div><br> </div> <div>I am running a Debian12 VM=C2=A0under bhyve and I am wondering why it doesn't get as much upload bandwidth as the main host when I run speedtest: <div><br> </div> <div>From inside the VM:<br> <br> wash@debian12$ speedtest-cli<br> Retrieving=C2=A0<a href=3D"http://speedtest.net/" target=3D"_bl= ank">speedtest.net</a>=C2=A0configuration...<br> Testing from XXXXXX (x.x.x.x)...<br> Retrieving=C2=A0<a href=3D"http://speedtest.net/" target=3D"_bl= ank">speedtest.net</a>=C2=A0server list...<br> Selecting best server based on ping...<br> Hosted by Zuku (Nairobi) [0.16 km]: 6.798 ms<br> Testing download speed......................................................................= ..........<br> Download: 48.31 Mbit/s<br> Testing upload speed......................................................................= ................................<br> Upload: 0.42 Mbit/s<br> <br> From the Host:<br> [16:03 ~ ]$ speedtest-cli<br> Retrieving=C2=A0<a href=3D"http://speedtest.net/" target=3D"_bl= ank">speedtest.net</a>=C2=A0configuration...<br> Testing from XXXXXXXX (x.x.x.x)...<br> Retrieving=C2=A0<a href=3D"http://speedtest.net/" target=3D"_bl= ank">speedtest.net</a>=C2=A0server list...<br> Selecting best server based on ping...<br> Hosted by Zuku (Nairobi) [0.16 km]: 2.493 ms<br> Testing download speed......................................................................= ..........<br> Download: 47.91 Mbit/s<br> Testing upload speed......................................................................= ................................<br> Upload: 48.38 Mbit/s<font color=3D"#888888"><br clear=3D"all"> <div><br> </div> <div><br> </div> </font></div> <span class=3D"gmail_signature_prefix">-- </span><br> <div dir=3D"ltr" class=3D"gmail_signature"> <div 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> "<span style=3D"font-size:12.8px">Oh, the cruft.</sp= an><span style=3D"font-size:12.8px">",=C2=A0</span><span style=3D"font= -size:12.8px">egrep -v '^$|^.*#'=C2=A0</span><span>=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-questions.html" target=3D"_= blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div> </div> </div> </div> </div> </div> </blockquote> </div> </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>"<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 '^$|^.*#'= ;=C2=A0</span><span style=3D"background-color:rgb(34,34,34);color:rgb(238,2= 38,238);font-family:"Lucida Console",Consolas,"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> </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>"<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 '^$|^.*#'= ;=C2=A0</span><span style=3D"background-color:rgb(34,34,34);color:rgb(238,2= 38,238);font-family:"Lucida Console",Consolas,"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> --00000000000089a74a0602dec18e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNarhvhHT68sha8ZNjPGyCp%2BiycoD7=o30gSDqh56jQKQ>