From nobody Mon Aug 14 09:35:02 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 4RPTlx6LZ2z4qDJ5 for ; Mon, 14 Aug 2023 09:35:41 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 4RPTlx2Y6sz4N7V for ; Mon, 14 Aug 2023 09:35:41 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9f0b7af65so61248641fa.1 for ; Mon, 14 Aug 2023 02:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692005739; x=1692610539; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7bqhvjpIh38qR+drH741N+vKZ3YjmJRVKHvmr3/YW8o=; b=YmKsM+ZPUzgdSE3YTjOySsyIVQ4KH/SLyb/8XuK9mef07UudD0smNli+1jMGKrd0Sz bGw5Y2gSPElmgum8O9FePDpYMmtGRyHv7imFQNj3hc4lPs8UEMUq7/4YPab9+h8Kmhqo 25v6V8o6XbfCFMT7ZF5dRvkff+t1+khhebGslRXaIGaKniwrxdE49XuMJDH8fVtnOPPa kk2vdSRpoCI5kClENNis8dXCFIpB+QnP135f8S5wCLRKd09vYgr5PHozqAhF7tn0fuqt 7jJWTDB8bc1lXFvN1v4++SG4YuZIz2Dj7MryZQl8c8K+xoR0k9c6uaCdiKupH7/2PFtp qtTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692005739; x=1692610539; 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=7bqhvjpIh38qR+drH741N+vKZ3YjmJRVKHvmr3/YW8o=; b=EhZCfhJrFyQctZ8GXhmZn76PG7ZsybkElia2blAfrsYm6hulYAIrFD4SkD4ZC87taM hDMUqDBqdvQRgEpr3lwHa+eSOL+2DoAU6UJK3Yl4lLOHKl+BRlTckdhgqa4aT0nRLy/+ i3vXwuVllfC9De+l65dx1x04G6IhU6nF/C5rz3B4Bp8eJubcgPG64SmhI9FK0bljPhLy weMuNDxQN8Ls9yFUi4VD6Xh7MdZXPqGR/iWy/5MH1gBvbl1awwvSeA7Krqhr6+8ojaUU uWB5jzYAaWWS49ojSRIaQrdIOmy8Pv6Hgg1vJ4X6L1Cl1F8caDOzknvAZrwgylWuHR/j KNHQ== X-Gm-Message-State: AOJu0YzOMSEW71GruSbzWI6d3mXhhFPvNw1mQywXGLkuJ4qzL0ESDCvm 7oxCzPqXcQXlt2tuqKT0OW0RCbWDs5p9Kf+44Qny1dssZlOr/g== X-Google-Smtp-Source: AGHT+IFDTniFxMNMdLjgj2+fzsdBuo5tCvzOZUAUrd2c9S2pczjBOYg7MD36IpzpvytshY0NCJ7Dh0Aq2n46+51XcSI= X-Received: by 2002:a05:651c:117:b0:2b6:c16a:db06 with SMTP id a23-20020a05651c011700b002b6c16adb06mr6442306ljb.39.1692005738774; Mon, 14 Aug 2023 02:35:38 -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> <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> In-Reply-To: <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> From: Odhiambo Washington Date: Mon, 14 Aug 2023 12:35:02 +0300 Message-ID: Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000485a10602dec9bb" X-Rspamd-Queue-Id: 4RPTlx2Y6sz4N7V 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] --0000000000000485a10602dec9bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 14, 2023 at 12:30=E2=80=AFPM Miroslav Lachman <000.fbsd@quip.cz= > wrote: > On 14/08/2023 10:49, 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? > > I never had this solved. Even my FreeBSD guest on FreeBSD host with > VirtualBox is slow as few hunderds kB/s > It was like 10Mbps with Bhyve. I only use VMs for testing but installing > packages is always so slow. So you are not alone. I would really like to > know how to improve the network speed with virtualized environment. > > Kind regards > Miroslav Lachman > I had a FreeBSD VM for testing under bhyve and it did not suffer from this upload speed hiccup. --=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] --0000000000000485a10602dec9bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Aug 14, 2023 at 12:30=E2=80= =AFPM Miroslav Lachman <000.fbsd@qui= p.cz> wrote:
On 14/08/2023 10:49, 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?

I never had this solved. Even my FreeBSD guest on FreeBSD host with
VirtualBox is slow as few hunderds kB/s
It was like 10Mbps with Bhyve. I only use VMs for testing but installing packages is always so slow. So you are not alone. I would really like to know how to improve the network speed with virtualized environment.

Kind regards
Miroslav Lachman

I had a FreeBSD VM for= testing under bhyve and it did not suffer from this upload speed hiccup.= =C2=A0
=C2=A0


--
Best regards,
Odhia= mbo 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-questi= ons.html]
--0000000000000485a10602dec9bb--