From nobody Sun Aug 13 22:43:48 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 4RPCJ25s7Gz4qKWD for ; Sun, 13 Aug 2023 22:44:02 +0000 (UTC) (envelope-from wanpengqian@gmail.com) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 4RPCJ23m5Hz4Wjg for ; Sun, 13 Aug 2023 22:44:02 +0000 (UTC) (envelope-from wanpengqian@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-52164adea19so4786848a12.1 for ; Sun, 13 Aug 2023 15:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691966640; x=1692571440; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wsLyLUlhUMg9KIlaw0vcViUTSVxzYWdpxj6bS87kOLE=; b=UEopIJp4gsywDVOKxeqm2j/DiBhV12lbPj24sQI4Q0uNDBA7U467r9ycLkDsx+/dSF 5sdhdGyVCGVnipLFuxp8uw6uw1wbdkcxj4QvAUlFS+Sh1or6roQnFtsTjE3k8QKeXUIG PmoTZanZnb3aaX2LhLp7oeFpqW9xX6p5P5qvAqqvX9w882E2W5BtSIjXKn4FNXpo4NOc rnGUre9bzPpkrDbNbNqwcO6qctKpSp8NaCgRmI67P7ZoCtpDi+9d64HCYKFSrVNuE1FB 9ItlXz41A4DiQW+4O0JWNhrRAx3MDwPx8zOdr3yNyFIYwJJEu5jyyxzTmrWR3G42AumP HbUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691966640; x=1692571440; 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=wsLyLUlhUMg9KIlaw0vcViUTSVxzYWdpxj6bS87kOLE=; b=fAztzagxLo/bBz+7Mkpoi+ahsB0OCOIusTj6dPSOjn0m9k3QGaf62WHaFQChOB2XyU 7Vhts4EU+0Tw+872iWtfg43lULDVWraxSRzdffh6a1f4MOdnqwHkZTX/zaUMbxs2xxp4 4CGexd6AIe8wpxQvrGNAMuaq+/mrrKweudnRGNH28qsfMvbHSI5KdCWQhILIGmcIo8n4 L7muK2st383xB76zTUJOtZcnGCY33v6j6QBF4hw2JtvupD6838sqQtNTqqt9NmKaX6XS hxbbsgv4ggFNkHNCNz0tr3tk6HDtQbOX9LvmOEbs2HI/uHW6roItFaY7OaL0mxuNasH1 +pkQ== X-Gm-Message-State: AOJu0Yzh8cS+zUYKkHvXxY2k0mGmmsWZYZXpsMxtTVz4jAJsGIJj9OmF t0e12WuJKyOGUfVQWJWCUIn9JUbYjerI+ks4iTLAHyXh+HQ= X-Google-Smtp-Source: AGHT+IEqvjzZX2CaQ9kNv7AW2nMnEICmXpYXqNHaJvbDOCQcdpq98jUUCRUcB+05784cXb3VzKG8IEZIXZqiEvME8Yw= X-Received: by 2002:a05:6402:33a:b0:523:1004:1c9b with SMTP id q26-20020a056402033a00b0052310041c9bmr6507562edw.20.1691966639974; Sun, 13 Aug 2023 15:43:59 -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: Wanpeng Qian Date: Mon, 14 Aug 2023 07:43:48 +0900 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="0000000000008c2c2e0602d5aed1" X-Rspamd-Queue-Id: 4RPCJ23m5Hz4Wjg 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] --0000000000008c2c2e0602d5aed1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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] > --0000000000008c2c2e0602d5aed1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Washington

From = my experience, you have to turn off TSO LRO TXCSUM etc for the host interfa= ce which is bridge to VM.
for example, my rc.conf relateted line= is=C2=A0

ifconfig_ix1=3D"up -t= so -lro -txcsum -rxcsum"

best regards.


2023=E5=B9=B48=E6=9C=8814=E6=97=A5(=E6=9C= =88) 1:04 Odhiambo Washington <odh= iambo@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 a= spects.

I am running a Debian12 VM=C2=A0under bhyv= e 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...
Tes= ting from XXXXXX (x.x.x.x)...
Retrieving=C2=A0speedtest.net=C2=A0server list...
Selectin= g best server based on ping...
Hosted by Zuku (Nairobi) [0.16 km]: 6.798= ms
Testing download speed..............................................= ..................................
Download: 48.31 Mbit/s
Testing upl= oad 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...
Sel= ecting best server based on ping...
Hosted by Zuku (Nairobi) [0.16 km]: = 2.493 ms
Testing download speed.........................................= .......................................
Download: 47.91 Mbit/s
Testin= g upload speed.............................................................= .........................................
Upload: 48.38 Mbit/s
<= br clear=3D"all">


--
=
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 000= 4/+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 ques= tions:=C2=A0http://www.catb.o= rg/~esr/faqs/smart-questions.html]
=
--0000000000008c2c2e0602d5aed1--