From nobody Wed May 25 09:04:37 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 C1BA81B4FB4C for ; Wed, 25 May 2022 09:04:38 +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 4L7Q9x595kz4Vp0 for ; Wed, 25 May 2022 09:04:37 +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 91CC0165B5 for ; Wed, 25 May 2022 09:04:37 +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 24P94bJc064246 for ; Wed, 25 May 2022 09:04:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24P94bis064245 for virtualization@FreeBSD.org; Wed, 25 May 2022 09:04:37 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] bridge, ipfw: very slow network on bridge with IPFW, virtio or vtnet on 12.3-RELEASE-p5 Date: Wed, 25 May 2022 09:04:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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=1653469477; 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: in-reply-to:in-reply-to:references:references; bh=K2mbiY5Ag2jd/We8a2yaO8HV3pd2fGpZKFih/ob1uAI=; b=Gs6oOYbZfNaoV9BTMLlnf0gdtgVWtWMA56BZwa3NBRXtJsUVnHT1FixWCeER0AXT0EGGtB 3fVYwGTRhYMrH/qe3RmgxYT049/jYfKYOFBXm3hfrhjyH0rWS+Wxc7GuJsi8VD8/h4Gpw7 8LiFlEMq337xdsFA370vgik3LECOYe/Uj5jzwAMTfPn621Ef1ukGtLlpVwMO2jZXoLrY6/ OJjYrGn5EKV3IlnFB4pwNzKvVOCLiWbhlfYQoGFIMoK98whPPdoDuhoy7OMG9KGAoWAHjX AQBkBMj9yqUB4HjFKbF5/dWecO7LD8EkiYnHNJHyiJlEO9nNZajvUpNlvHsxCg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653469477; a=rsa-sha256; cv=none; b=oxfnOjXRQB+vM2yUfh2In/U69msm3G6jVQA/z3emyTtj5P1DUX1wLS2NWCjXVfgVNWyu90 Bt/EqMP9ELEU1zLe6XB1HUMzKqB45CjpZJE7Gr5L+TcwDU+1X0QbGr76DIUYUyUu9qtJuP bd+FA9u2v8liXGX8Jxhc6qkZ0pR+7mMWIwKLH4O3rniDOaHxdBmN05QBbcQN9QArFA5YOP a3hTHu5qwj6rVW7oUH0BTKScYf6LwzUQup6UXwkGS5XeiQ5jzcfuZFcfi1/8qAUNGeUe0o nfj7+jnNp+ykRXl+fIiDg8OdhuYEyBQiuTIzNHJqzb7r7jv+hulxz7Pa2Rgx2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264198 --- Comment #4 from Ole --- I could reduce it even more. Seems that the vlan play no role here. I picked one VM on the hosts. Stopped IPFW on the hosts so network is fine. Then I crated a bridge and an epair like before: vtnet0---bridge0---epaira0---epairb0 vm # ifconfig bridge create mtu 1400 vm # ifconfig epair create mtu 1400 vm # ifconfig bridge0 addm epair0a vm # ifconfig bridge0 addm vtnet0 vm # ifconfig epair0a up vm # ifconfig epair0b inet /28 mtu 1400 up vm # ifconfig bridge0 up vm # nc -v -l 2222 > /dev/null again, the only rule is vm # ipfw list 65535 allow ip from any to any from another host (in the same network) I send data with nc: dd if=3D/dev/zero bs=3D1024k count=3D6 | nc -v 2222 result: 6291456 bytes transferred in 70.693446 secs (88996 bytes/sec) after 'service ipfw stop' on vm-a, it is about 700 times faster )-: 6291456 bytes transferred in 0.100673 secs (62493675 bytes/sec) So I think the problem is related to IPFW and bridges. Maybe the MTU plays a role here. --=20 You are receiving this mail because: You are the assignee for the bug.=