From nobody Mon Aug 14 09:32:56 2023 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPTjV650Pz4qD2J for ; Mon, 14 Aug 2023 09:33:34 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPTjV5Wb3z4MX5 for ; Mon, 14 Aug 2023 09:33:34 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9b50be31aso60953711fa.3 for ; Mon, 14 Aug 2023 02:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692005613; x=1692610413; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b+xUpoP6WwO3+T/seNoCDWMZKqBt9LaNp7I8Vrh21Kk=; b=JL4pAy6FOhAe7qLgxjJuOBAQJduXsa4sJU3U5gqWw5aGc4thEiR8kWkD06NlO7uSNt SDDlzYfWfCtLkYzWrhiOS+eTXhZJGO6OiYD/7uQkgnZyUtzfVMdtTVsVl6jvpGLeut7q fnMCZAtGpqBNd+gSYX0RCdPgosEEA5Hwp1x5ebdtBNRk5P7AJ837waiqKkcgodZImjS5 CWNrh4qX+GdBD6lIaP26fJhetBkIesjLwqV7vyVNg6NOsbjg/kGk7uMIP4GdUNFxcZh3 08mey9xluKmjHrCZV/Dw3d6h/933WAIhqzXiCza0H7XSUCIUtbYQ/JeG7dIaD6z57Ld6 8T7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692005613; x=1692610413; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b+xUpoP6WwO3+T/seNoCDWMZKqBt9LaNp7I8Vrh21Kk=; b=byQ1kyius2JbLHJq3WMgwiAdUBjRnls7tyQ7/a4dguIZeeZfYIzpq2F3BTi2hsn0EI TnkHBNr9MkqWWw44F81oQKcflI3aX1v809Ww1vBf3c9DoTvI0ccL0OjbUwUUMXRBUXrl V/km2gnrZSxaGmgzLWMFU40HzyM2sbWymcepEzFxgGWSsz8xkNmLeGblkGQfhQdVnjd8 TVfXVs+vuHub9jn0PSYi8WMjjLCi0w2TSrPbnnVH6gplH61/kCCjTTg2YSHPtLfgPbX3 xjcFW/o7TepVlv0dINId22ERXen8TGdy5y0KbtFjYZELoOFdUEmhtDksL3vteat+ZaeC gW3g== X-Gm-Message-State: AOJu0YyZmknZfnfEAkJJSK02KVakWitU/qLK+bnKjkScJNc/qgkUf02N wmWvlHhV7hDMhCLNN4uT85ZXr1w0V6vVsv/ZDODahVFrFXhvdw== X-Google-Smtp-Source: AGHT+IFt/gweUveeF0qkrgSsG8xcaR2IsfqU7JUgoLeZenGVhwKP0ixqtTP/kIt9xSiHZ+/BbeowYODyiZpK/e5/L4s= X-Received: by 2002:a2e:b162:0:b0:2bb:71fd:2dca with SMTP id a2-20020a2eb162000000b002bb71fd2dcamr2112065ljm.52.1692005613281; Mon, 14 Aug 2023 02:33:33 -0700 (PDT) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> In-Reply-To: From: Odhiambo Washington Date: Mon, 14 Aug 2023 12:32:56 +0300 Message-ID: Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: Mario Marietto Cc: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000089a74a0602dec18e" X-Rspamd-Queue-Id: 4RPTjV5Wb3z4MX5 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --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 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 > 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 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
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 s= ervice on the host so I assign VMs static Ip based on the tap device they a= re attached to.


On Mon, Aug 14, 2023 at 12:19=E2=80=AFPM Mari= o 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 if= config parameters. I have ifconfig_em0=3D"DHCP".

On Mon, Aug = 14, 2023 at 10:49=E2=80=AFAM Odhiambo Washington <odhiambo@gmail.com> wrote:
I= had the following in sysctl.conf:
net.link.tap.up_on_open=3D1net.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 gett= ing download/upload speed of 40Mbps/37Mbps while a Debian12 VM is getting d= ownload/upload of 37Mbps/45Kbps.
Maybe there is an issue with the= Linux itself?


On Sun, Aug 13, 2023 at 9:29=E2=80=AFPM Woute= r Snels <ofloo@h4ck.i= o> wrote:
=20 =20 =20

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:
=20
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=C2=A0under 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=C2=A0speedtest.net=C2=A0configuration...
Testing from XXXXXX (x.x.x.x)...
Retrieving=C2=A0speedtest.net=C2=A0server 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=C2=A0speedtest.net=C2=A0configuration...
Testing from XXXXXXXX (x.x.x.x)...
Retrieving=C2=A0speedtest.net=C2=A0server 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.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83= =84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.&qu= ot;,=C2=A0egrep -v '^$|^.*#'= ;=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]


--
Mario.


--
Best regards,
Odhiambo WASHINGTON,<= br>Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.&qu= ot;,=C2=A0egrep -v '^$|^.*#'= ;=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]
--00000000000089a74a0602dec18e--