Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2022 08:43:07 +0000
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
Message-ID:  <bug-264198-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264198-27103>