From nobody Mon Aug 14 09:30:22 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 4RPTdt2VBPz4qCsW for ; Mon, 14 Aug 2023 09:30:26 +0000 (UTC) (envelope-from SRS0=6rU7=D7=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPTdt03F8z4LYF for ; Mon, 14 Aug 2023 09:30:26 +0000 (UTC) (envelope-from SRS0=6rU7=D7=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EAAB2D78B2; Mon, 14 Aug 2023 11:30:23 +0200 (CEST) Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 31CDDD78A7; Mon, 14 Aug 2023 11:30:23 +0200 (CEST) Message-ID: <38587cf9-29a7-1246-3b64-a3cf35933717@quip.cz> Date: Mon, 14 Aug 2023 11:30:22 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: bhyve VM not getting as much upload bandwidth as the host To: Odhiambo Washington , freebsd-virtualization@freebsd.org References: <096b2d73-b28c-bd6b-a6d3-2a3c3dbaea7e@h4ck.io> Content-Language: cs-Cestina, en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4RPTdt03F8z4LYF 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:42000, ipnet:94.124.104.0/21, country:CZ] On 14/08/2023 10:49, Odhiambo Washington wrote: > I had the following in sysctl.conf: > net.link.tap.up_on_open=1 > net.link.bridge.pfil_member=0 > net.link.bridge.pfil_bridge=0 > net.link.bridge.pfil_local_phys=1 > > So I only did: > sysctl -w net.link.bridge.pfil_onlyip=0 > sysctl -w net.link.bridge.pfil_local_phys=0 > > 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