From nobody Mon Aug 14 09:18:46 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 4RPTP85MjTz4qC8k for ; Mon, 14 Aug 2023 09:19:24 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 4RPTP84sZmz4KKg for ; Mon, 14 Aug 2023 09:19:24 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe98583a6fso3904961e87.3 for ; Mon, 14 Aug 2023 02:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692004763; x=1692609563; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7sifwz5QW7V2FuUfhJEM5/3HR4qprwiGRq0BI2IPFDg=; b=Rp+AKUfJkx4EIo0/abxySSjk3nbhvlFcvADrqdVCxi1bQB9tZTdaI/PqoyIhhMwM+X lGkKigiBGz76+k3G+DFDsryb+smlkPU4ZwsxjDKZUTOnzEo5iRzDvXF04uL4MzELHa7w thENb+K8piBMN9it3Sewb6mUJSdXqAsbDdPwTk2ObcEzAI8++x2vQ2HdnXzWVHgXpM/N HF9axhZRXxG3G71flNMRxWGoAd+gWMEvy4H+o+hifcU7BsgiA3r2rKQk7YWggbKiQvF6 1tXxIQWlx3XsnzYkER/NK8pXHNTd8iZiHT/YwJJXTOOb6uqjDaTsyEMMmeJpK+dtpf0V 3urQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692004763; x=1692609563; 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=7sifwz5QW7V2FuUfhJEM5/3HR4qprwiGRq0BI2IPFDg=; b=Hj2Bkl0oSUPYaOzujOni+F3FXcvTIs5+sNb3I9AGjuoINN4aNKJhCc3NP2Ju0H1aAg Hfv85qJw6VuChqWl+l6LOTjTT1F3o+d3EBVqK3mBM0cT4mIuoW93An2CJZwzYbH5hKKw pigq2191jpBzr6jWhN5mS/O08H+LfQb2coT07ubvyDnKF49504j24cmqw1Q0xdgZgYMJ IUTuJNTwvtIcFOGoaFnAlPChEXH0Kh8MKtaKkWP6lQbSAuIlQG6tBG5nFRENEaQm4aGo 2kNwyeozwoKZoxTGLy5yrD9oLJG/W9cZ81S/m+ypneBYTJug5geBkpGRL0LgaO5aO8dB zKaw== X-Gm-Message-State: AOJu0Yzz4qOVvVkIeHxwZNBPGxCnnbqtvb8lJeY5/0wdq5y0vL2JXWsZ km3P1Nvz2PR0PJNHwZn56xSYqSesPl5L/ulvKxs2OiLrpR4tGA== X-Google-Smtp-Source: AGHT+IFg8VM5foqrsBiYiNeJsD92ja/zkZAGJ7Kl1myqVBKY7A26IDCVXLwaaMEp1yuGCGv2kt/3ka5saQ12IhUoQqw= X-Received: by 2002:ac2:4d84:0:b0:4fa:21d4:b3ca with SMTP id g4-20020ac24d84000000b004fa21d4b3camr5511226lfe.2.1692004762410; Mon, 14 Aug 2023 02:19:22 -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: Mario Marietto Date: Mon, 14 Aug 2023 11:18:46 +0200 Message-ID: Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: Odhiambo Washington Cc: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d261b70602de8e07" X-Rspamd-Queue-Id: 4RPTP84sZmz4KKg 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] --000000000000d261b70602de8e07 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrot= e: > >> 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 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] >> >> > > -- > 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 Mario. --000000000000d261b70602de8e07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Which kind of connection do you have ? It seems like a mob= ile connection. I have a fiber connection,FTTC,I don't have your ifconf= ig 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=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 n= et.link.bridge.pfil_onlyip=3D0
sysctl -w net.link.bridge.pfil= _local_phys=3D0

Nothing has changed for the li= nux VM.

Windows11 VM is getting download/upload sp= eed of 40Mbps/37Mbps while a Debian12 VM is getting download/upload of 37Mb= ps/45Kbps.
Maybe there is an issue with the Linux itself?


On Sun, Aug 13, 2023 at 9:29=E2=80=AFPM Wouter Snels <ofloo@h4ck.io> 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.
--000000000000d261b70602de8e07--