Re: bhyve VM not getting as much upload bandwidth as the host

From: Odhiambo Washington <odhiambo_at_gmail.com>
Date: Mon, 14 Aug 2023 08:42:20 UTC
I added your options to my config and rebooted:

ifconfig_em1="inet w.x.y.z netmask 255.255.255.0 mtu 1492 -tso -lro -txcsum
-rxcsum"

It did not make any difference.


On Mon, Aug 14, 2023 at 1:44 AM 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="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]
>>
>

-- 
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]