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:49:08 UTC
I had the following in sysctl.conf:
net.link.tap.up_on_open=1
net.link.bridge.pfil_member=0
net.link.bridge.pfil_bridge=0
net.link.bridge.pfil_local_phys=1

So I only did:
sysctl -w net.link.bridge.pfil_onlyip=0
sysctl -w net.link.bridge.pfil_local_phys=0

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 PM Wouter Snels <ofloo@h4ck.io> wrote:

> sysctl these to
>
>
> net.link.bridge.pfil_local_phys=0
> net.link.bridge.pfil_member=0
> net.link.bridge.pfil_bridge=0
> net.link.bridge.pfil_onlyip=0
>
> 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 '^$|^.*#' ¯\_(ツ)_/¯ :-)
> [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]