From nobody Tue May 24 08:43:07 2022 X-Original-To: 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 1E1781B419C2 for ; Tue, 24 May 2022 08:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L6nlb5sWnz4tSh for ; Tue, 24 May 2022 08:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A974521706 for ; Tue, 24 May 2022 08:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24O8h7wm045905 for ; Tue, 24 May 2022 08:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24O8h73l045904 for virtualization@FreeBSD.org; Tue, 24 May 2022 08:43:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 264198] bhyve: very slow network with IPFW, virtio and Vlan on 12.3-RELEASE-p5 Date: Tue, 24 May 2022 08:43:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ol@dbconn.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653381787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hS7csKx9niUDgJGOLqET1eCyCHGl7MIDjwY7bak7tJU=; b=qfCiHB9TABo6cvTMBRa9PWviHzssJQTbqRHSIgTd84Tp/+J63uLpyHhYGR2geXRaLijfJ8 cY2Xk94qH1dpYbmGwOm0xKzEguTRQKhNIKDwN3OtCZoQXKeOf7GKbhlSlECcnctNN70oY1 jfU56ZfhQs9PDa040hKQ1eU6nJF1j+62PrjEsTlIAdrnKeD0uzQuo9bC9PZuEytyi1zlHf k3IHugWpd64dIrTRwxg1SHW0BQ4MXFQJ0c1luvVmMn3W9lIDLbSfteV6FW6Pxxgwkv2+/u vMDtL21wjI5UQtltrtCIGuZgSr8/bVIw83g20XICEtVfNP1x1ylTxxgQ1fnDLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653381787; a=rsa-sha256; cv=none; b=RQKDeFsDBZ+fiTA1Ol9X4SZ0HAwSuY3MZQydn/X4oxAao3zQzRaRDe5eI9aVMSg4Cx8LPL kU/Uz9jt6z6kqnxyYTmpz83IC1s/U6scFsH+ydPagOQjSy5fZYEuUi0NK3A4hcenqtvmsk H0bYyABORoEM9bsYQsnLSLsYZ6DpThv8OC4fyluXy0dVGqYNUPVG73Nql6ptTQOod47Cto FbqGQWz5cGoUnpU4W3QywBrA33O0Kr0zRwieF3utvmvE2ecpXqL+Ue2AtvZVAPL7y7dGXl F+XX5KSI5DQ0sY6tbRMeaHjADtR7MJrZG0WagcoJuzm96mbAFzogjZW3h73sjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264198 Bug ID: 264198 Summary: bhyve: very slow network with IPFW, virtio and Vlan on 12.3-RELEASE-p5 Product: Base System Version: 12.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: ol@dbconn.net Hello, after upgrading machines from 12.2 to 12.3 I experienced very slow network connection on virtual machines when activating ipfw on the host system. With 12.2 there was no problem. Description of the affected setup: * HostA and HostB, both FreeBSD 12.3, one NIC * VmA (on HostA) and VmB (on HostB), both with virtio-net. HostA and HostB are connected to a Switch with vlans. For me everything beh= ind the NIC is a blackbox. vlan MTU is 1400. On both hosts there is a bridge, with the vlan-interface = and the tap of the vm. HostA and HostB: igb0---igb0.4030---bridge4030---tap0 On HostA and B there ist only one ipfw rule: 65535 allow ip from any to any Measurement of thoughput: VmA # nc -v -l 2222 > /dev/null VmB # nc -v vma 2222 Connection to jails-staging-1.beju-hh.de 2222 port [tcp/*] succeeded! 6+0 records in 6+0 records out 6291456 bytes transferred in 19.360484 secs (324964 bytes/sec) this is 317kbytes/s=20 If I deactivate the ipfw firewall on HostA with "service ipfw stop" the throughput increases to 21Mbytes/s. I tried to solve it by deactivating options with: ifconfig igb0 -txcsum -rxcsum -txcsum6 -rxcsum6 -tso4 -tso6 -vlanhwtso -vlanhwcsum but this could not solve the problem. regards Ole --=20 You are receiving this mail because: You are the assignee for the bug.=