Date: Mon, 14 Aug 2023 07:43:48 +0900 From: Wanpeng Qian <wanpengqian@gmail.com> To: Odhiambo Washington <odhiambo@gmail.com> Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve VM not getting as much upload bandwidth as the host Message-ID: <CANBJ%2BxQguO=QpnBd9iqv1a-u0_s_aCifQfgM-iOtLEOtFQ7PUQ@mail.gmail.com> In-Reply-To: <CAAdA2WN6FTT=Bn-p3EEGDk_-8=g_PoFicUb%2Be-ybcpKxjY5bwQ@mail.gmail.com> References: <CAAdA2WN6FTT=Bn-p3EEGDk_-8=g_PoFicUb%2Be-ybcpKxjY5bwQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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="up -tso -lro -txcsum -rxcsum" best regards. 2023年8月14日(月) 1:04 Odhiambo Washington <odhiambo@gmail.com>: > 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 '^$|^.*#' ¯\_(ツ)_/¯ :-) > [How to ask smart questions: > http://www.catb.org/~esr/faqs/smart-questions.html] > [-- Attachment #2 --] <div dir="auto"><div><div dir="auto" style="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;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="auto" style="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;word-spacing:0px;text-decoration:none;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="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;word-spacing:0px;text-decoration: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="auto" style="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;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 relateted line is </div><div dir="auto" style="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;word-spacing:0px;text-decoration:none;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="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;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="background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">ifconfig_ix1="up -tso -lro -txcsum -rxcsum"</div><br></div><div dir="auto" style="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;word-spacing:0px;text-decoration:none;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">best regards.</div></div></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2023年8月14日(月) 1:04 Odhiambo Washington <<a href="mailto:odhiambo@gmail.com">odhiambo@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="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 under 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 <a href="http://speedtest.net/" target="_blank">speedtest.net</a> configuration...<br>Testing from XXXXXX (x.x.x.x)...<br>Retrieving <a href="http://speedtest.net/" target="_blank">speedtest.net</a> server 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 <a href="http://speedtest.net/" target="_blank">speedtest.net</a> configuration...<br>Testing from XXXXXXXX (x.x.x.x)...<br>Retrieving <a href="http://speedtest.net/" target="_blank">speedtest.net</a> server 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</div></div></div><div dir="ltr"><div><div><font style="color:rgb(136,136,136)"><br clear="all"><div><br></div><div><br></div></font></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">egrep -v '^$|^.*#' </span><span style="font-family:"Lucida Console",Consolas,"Courier New",monospace;font-size:13.6px;background-color:rgb(34,34,34);color:rgb(238,238,238)">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div></div> </blockquote></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANBJ%2BxQguO=QpnBd9iqv1a-u0_s_aCifQfgM-iOtLEOtFQ7PUQ>
