From nobody Mon Aug 14 08:42:20 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 4RPSb74k6bz4q8d2 for ; Mon, 14 Aug 2023 08:42:59 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 4RPSb671dDz4Gxm for ; Mon, 14 Aug 2023 08:42:58 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=F6fofE09; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::129 as permitted sender) smtp.mailfrom=odhiambo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe27849e6aso6217899e87.1 for ; Mon, 14 Aug 2023 01:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692002577; x=1692607377; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=tQY3Kt3TYNx+EyBnovoJ102iT1+hvRIfJt4HZkE+J3Q=; b=F6fofE09ByudayP/ZeCR+JBMT8QETKct6wd9EdpuywFb3LMxKvMDQZ8C0+ZGqEz0nN ZGEsAN4KcStwOdg4gBUqcSVkpdKo+jK/XG166ofAZmivVS7bZtJFqH/j3FiB8SmX20yR Nx7yG1yEV1T6Dj/ZHsduhwj8enCKPwHXR0p0uJsUFocTlCbLVGJTmO9tOT03ee+2ffpE tqhieig5dhfS7GiSHalOF++Orfzb0INsP54cDooWYKlHMX3Lj2l8nFTm2+dlq1xYJ5/p FL7IdjK1DPBkS0fbO+1aiQAr2XAuB95ZHIDM4YKen1BsSddLXbvY0nqMDHIv8khf+auP RWjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692002577; x=1692607377; 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=tQY3Kt3TYNx+EyBnovoJ102iT1+hvRIfJt4HZkE+J3Q=; b=XcDLmsXKxKj5+mbFovo4KzvToCBIkk32PkTXfjbutNDmv3HH8ak/LKCtfejkJsaNIB oZb+9E4uS0dM1OzCdQz5UMf/8XZF+RjBn2l+oiQu6+qvsgk+m+CtZXS7/g8Gr06vHyk1 SLkeKlAqYjYgk4Aj/zWUtEpHXM34tlWprUfR9mGfDOO+oMrpGUBX8OO38vhuamcqvgLQ HlX0YwUQ7jzKpNkbs2qxwlXQFez74ZLfUlx/SGmTiU7Aozch5niatlkehDvxalbmHaa+ BFXYe2+86GDqUu5A2QmTR2lz5S0lskWkXku6OmqLwXcMBhoHIfdWhD4I4WTmcAX7klg8 JHjg== X-Gm-Message-State: AOJu0YwadmvAaxmEMc+8+d0MYHKtmzRkvDvqj6DazkcX54AU0zxPq5cs VLy9Hvqgfo1BdpOcRks9oqNFW+8+Xr6J630OKTaTeuYbMGQ71Z8i X-Google-Smtp-Source: AGHT+IHRHQNpRWH6H3TITzyX1GvrTax1WuPZkczC8N9bZh0ZnEL9jmMblXT1a+gq2i9ByejnX24PB6XTNibJSU0emVQ= X-Received: by 2002:a2e:8e95:0:b0:2b9:edcd:8770 with SMTP id z21-20020a2e8e95000000b002b9edcd8770mr6710891ljk.43.1692002576285; Mon, 14 Aug 2023 01:42:56 -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: In-Reply-To: From: Odhiambo Washington Date: Mon, 14 Aug 2023 11:42:20 +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="00000000000084c5640602de0c77" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::129:from]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(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: 4RPSb671dDz4Gxm --00000000000084c5640602de0c77 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I added your options to my config and rebooted: ifconfig_em1=3D"inet w.x.y.z netmask 255.255.255.0 mtu 1492 -tso -lro -txcs= um -rxcsum" It did not make any difference. On Mon, Aug 14, 2023 at 1:44=E2=80=AFAM Wanpeng Qian 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=3D"up -tso -lro -txcsum -rxcsum" > > best regards. > > > 2023=E5=B9=B48=E6=9C=8814=E6=97=A5(=E6=9C=88) 1:04 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] >> > --=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] --00000000000084c5640602de0c77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I added your options to my config and rebooted:
=

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

It d= id not make any difference.


On Mon, Aug 14, 2023 at 1:44=E2= =80=AFAM Wanpeng Qian <wanpengq= ian@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 r= elateted line is=C2=A0

ifconfig_ix1= =3D"up -tso -lro -txcsum -rxcsum"

best regar= ds.


2023=E5=B9=B48=E6=9C=8814= =E6=97=A5(=E6=9C=88) 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=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@d= ebian12$ speedtest-cli
Retrieving=C2=A0speedtest.net=C2=A0configuration...
Testing from = XXXXXX (x.x.x.x)...
Retrieving=C2=A0speedtest.net=C2=A0server list...
Selecting best ser= ver based on ping...
Hosted by Zuku (Nairobi) [0.16 km]: 6.798 ms
Tes= ting 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 fr= om XXXXXXXX (x.x.x.x)...
Retrieving=C2=A0speedtest.net=C2=A0server list...
Selecting bes= t server based on ping...
Hosted by Zuku (Nairobi) [0.16 km]: 2.493 msTesting download speed...................................................= .............................
Download: 47.91 Mbit/s
Testing upload s= peed.......................................................................= ...............................
Upload: 48.38 Mbit/s



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


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