Date: Mon, 14 Aug 2023 11:42:20 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: freebsd-virtualization@freebsd.org Subject: Re: bhyve VM not getting as much upload bandwidth as the host Message-ID: <CAAdA2WNyRZmuRF-hisft_%2BaZdOam5i1uomvuaHn7r8SSg=eK7Q@mail.gmail.com> In-Reply-To: <CANBJ%2BxQguO=QpnBd9iqv1a-u0_s_aCifQfgM-iOtLEOtFQ7PUQ@mail.gmail.com> References: <CAAdA2WN6FTT=Bn-p3EEGDk_-8=g_PoFicUb%2Be-ybcpKxjY5bwQ@mail.gmail.com> <CANBJ%2BxQguO=QpnBd9iqv1a-u0_s_aCifQfgM-iOtLEOtFQ7PUQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000084c5640602de0c77 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I added your options to my config and rebooted: ifconfig_em1=3D"inet w.x.y.z netmask 255.255.255.0 mtu 1492 -tso -lro -txcs= um -rxcsum" It did not make any difference. On Mon, Aug 14, 2023 at 1:44=E2=80=AFAM Wanpeng Qian <wanpengqian@gmail.com= > wrote: > Hi Washington > > From my experience, you have to turn off TSO LRO TXCSUM etc for the host > interface which is bridge to VM. > for example, my rc.conf relateted line is > > ifconfig_ix1=3D"up -tso -lro -txcsum -rxcsum" > > best regards. > > > 2023=E5=B9=B48=E6=9C=8814=E6=97=A5(=E6=9C=88) 1:04 Odhiambo Washington <o= dhiambo@gmail.com>: > >> Hello all, >> >> I am still new to virtualization (using bhyve) and wanted to see if I ca= n >> 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] >> > --=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] --00000000000084c5640602de0c77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I added your options to my config and rebooted:</div>= <div><br></div><div>ifconfig_em1=3D"inet w.x.y.z netmask 255.255.255.0= mtu 1492 -tso -lro -txcsum -rxcsum"<br></div><div><br></div><div>It d= id not make any difference.</div><div><br></div><br><div class=3D"gmail_quo= te"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Aug 14, 2023 at 1:44=E2= =80=AFAM Wanpeng Qian <<a href=3D"mailto:wanpengqian@gmail.com">wanpengq= ian@gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex"><div dir=3D"auto"><div><div dir=3D"auto" style=3D"font-size:16= px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacin= g:normal;text-align:start;text-indent:0px;text-transform:none;white-space:n= ormal;word-spacing:0px;text-decoration:none;background-color:rgba(0,0,0,0);= border-color:rgb(0,0,0);color:rgb(0,0,0)">Hi Washington</div><div dir=3D"au= to" style=3D"font-size:16px;font-style:normal;font-variant-caps:normal;font= -weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tra= nsform:none;white-space:normal;word-spacing:0px;text-decoration:none;backgr= ound-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></di= v><div dir=3D"auto" style=3D"font-size:16px;font-style:normal;font-variant-= caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-ind= ent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decora= tion:none;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(= 0,0,0)">From my experience, you have to turn off TSO LRO TXCSUM etc for the= host interface which is bridge to VM.</div><div dir=3D"auto" style=3D"font= -size:16px;font-style:normal;font-variant-caps:normal;font-weight:400;lette= r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white= -space:normal;word-spacing:0px;text-decoration:none;background-color:rgba(0= ,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">for example, my rc.conf r= elateted line is=C2=A0</div><div dir=3D"auto" style=3D"font-size:16px;font-= style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal= ;text-align:start;text-indent:0px;text-transform:none;white-space:normal;wo= rd-spacing:0px;text-decoration:none;background-color:rgba(0,0,0,0);border-c= olor:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir=3D"auto" style=3D"font= -size:16px;font-style:normal;font-variant-caps:normal;font-weight:400;lette= r-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white= -space:normal;word-spacing:0px;text-decoration:none;background-color:rgba(0= ,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><div style=3D"background-= color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">ifconfig_ix1= =3D"up -tso -lro -txcsum -rxcsum"</div><br></div><div dir=3D"auto= " style=3D"font-size:16px;font-style:normal;font-variant-caps:normal;font-w= eight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-trans= form:none;white-space:normal;word-spacing:0px;text-decoration:none;backgrou= nd-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">best regar= ds.</div></div></div><div dir=3D"auto"><br></div><div><br><div class=3D"gma= il_quote"><div dir=3D"ltr" class=3D"gmail_attr">2023=E5=B9=B48=E6=9C=8814= =E6=97=A5(=E6=9C=88) 1:04 Odhiambo Washington <<a href=3D"mailto:odhiamb= o@gmail.com" target=3D"_blank">odhiambo@gmail.com</a>>:<br></div><blockq= uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex"><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.</d= iv><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@d= ebian12$ speedtest-cli<br>Retrieving=C2=A0<a href=3D"http://speedtest.net/"= target=3D"_blank">speedtest.net</a>=C2=A0configuration...<br>Testing from = XXXXXX (x.x.x.x)...<br>Retrieving=C2=A0<a href=3D"http://speedtest.net/" ta= rget=3D"_blank">speedtest.net</a>=C2=A0server list...<br>Selecting best ser= ver based on ping...<br>Hosted by Zuku (Nairobi) [0.16 km]: 6.798 ms<br>Tes= ting 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.ne= t/" target=3D"_blank">speedtest.net</a>=C2=A0configuration...<br>Testing fr= om XXXXXXXX (x.x.x.x)...<br>Retrieving=C2=A0<a href=3D"http://speedtest.net= /" target=3D"_blank">speedtest.net</a>=C2=A0server list...<br>Selecting bes= t server based on ping...<br>Hosted by Zuku (Nairobi) [0.16 km]: 2.493 ms<b= r>Testing download speed...................................................= .............................<br>Download: 47.91 Mbit/s<br>Testing upload s= peed.......................................................................= ...............................<br>Upload: 48.38 Mbit/s</div></div></div><d= iv dir=3D"ltr"><div><div><font style=3D"color:rgb(136,136,136)"><br clear= =3D"all"><div><br></div><div><br></div></font></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"font-family:"Lucida Console",Consola= s,"Courier New",monospace;font-size:13.6px;background-color:rgb(3= 4,34,34);color:rgb(238,238,238)">=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></div> </blockquote></div></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> --00000000000084c5640602de0c77--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNyRZmuRF-hisft_%2BaZdOam5i1uomvuaHn7r8SSg=eK7Q>