From nobody Mon Aug 14 08:49:08 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 4RPSl00z8cz4q8wj for ; Mon, 14 Aug 2023 08:49:48 +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 4RPSkz26NHz4HkB for ; Mon, 14 Aug 2023 08:49:47 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=gtROGOnA; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::22f as permitted sender) smtp.mailfrom=odhiambo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2b9cf2b1309so47544881fa.0 for ; Mon, 14 Aug 2023 01:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692002985; x=1692607785; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=zeYNj3r6CqOftOefhnXPBNGrhVkYkUfu7lBP+sH3Lss=; b=gtROGOnAJfSb19H/u8UoJykjbYz9gFwkeSpe5prLzFSGLvHUpZl4ILyljaCj5DMq4n GPESXWvY7Pv/F4zHZueFG5yJBKzwxr5zW/3rN9frt5LYaNmtAMJnAzRn841Oil9q9IgZ yVhnn7+8aFx+gEIPiATyDTF4TVWwRxHaEZAmSH1xkhUd0dZ9X7zprwHcgKcB9GGxabW3 a98OnWp+xxC2qmlW2ZtcmDnx6Z+O5D7kYlX2DMbFgbp89dG+APLBC1FureDdNpYKieDC YQp5ObIiDZe6CyimEAtRbyJSgH0d1jS7G8Q2m/GRj4PvFLBlL9CQFSgKi0gt9rTMfMZN clsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692002985; x=1692607785; h=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=zeYNj3r6CqOftOefhnXPBNGrhVkYkUfu7lBP+sH3Lss=; b=IklS8ZIp++ZPR/g4N3ucgEHpotW3KCsg7quB43nU2ZC7tCvQQeOTz/Zn4zItaGJbaq UNJyMNr9Asrbn/t4xq6NgErxlJS3fJmKbjj+8q/4DAgmFaniVBfWlXsvwIqRWrkxrWah YDZqlu2dlXBzPhZse+QUF/N/LM3aK6LyKkzgc/maKpKVsv1cr43WPiUgESbFTVfc4Hcf /DX/fhkXv+UaF/jFF5buzVIOVEUpQj9D6XQ8hFrysZot8qenJPSst8cFWrRy2s7oxHso m0vViHQFtvVZIkbGRk2nWGIjLfQhxE95/XI0P/U4HKS+v5reAt/4y6hsAzb5KQKVeVEg FSeA== X-Gm-Message-State: AOJu0YxTowyM7zUbAl/Y2W2iN3rAVgI9jQh4XxMMt6ovroFbid+Jr0m8 Dj1UzwUqKcZoqDMJule7agYyREyvLPa+Qpr23Hf7yMX6dg5Td91I X-Google-Smtp-Source: AGHT+IHv5CxnCVjo2jeIYIoQuX2e1e23bkmg6pDHMHauucIsH+uwIXqpellNUQePB3s+2HW7nJ7BpvWcibYVhPc460o= X-Received: by 2002:a2e:8551:0:b0:2b9:344c:181e with SMTP id u17-20020a2e8551000000b002b9344c181emr2738817ljj.19.1692002984696; Mon, 14 Aug 2023 01:49:44 -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: <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> From: Odhiambo Washington Date: Mon, 14 Aug 2023 11:49:08 +0300 Message-ID: Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000dca25c0602de2496" X-Spamd-Result: default: False [-3.95 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.95)[-0.955]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22f:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RPSkz26NHz4HkB --000000000000dca25c0602de2496 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote: > 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] > > --=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] --000000000000dca25c0602de2496 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I had the following in sysctl.conf:
net.lin= k.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 D= ebian12 VM is getting download/upload of 37Mbps/45Kbps.
Maybe the= re is an issue with the Linux itself?


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