Re: Performance issues with vnet jails + epair + bridge

From: Doug Rabson <dfr_at_rabson.org>
Date: Mon, 16 Sep 2024 09:08:52 UTC
On Sun, 15 Sept 2024 at 18:56, Sad Clouds <cryintothebluesky@gmail.com>
wrote:

> On Sun, 15 Sep 2024 18:01:07 +0100
> Doug Rabson <dfr@rabson.org> wrote:
>
> > I just did a throughput test with iperf3 client on a FreeBSD 14.1 host
> with
> > an intel 10GB nic connecting to an iperf3 server running in a vnet jail
> on
> > a truenas host (13.something) also with an intel 10GB nic and I get full
> > 10GB throughput in this setup. In the past, I had to disable LRO on the
> > truenas host for this to work properly.
> >
> > Doug.
>
> Hello Doug, can you please confirm that you are NOT using if_epair(4)? I
> imagine you dedicate one of the Intel 10Gb ports to a jail. This is not
> an option for some of us, so a virtual NIC of some sort is the only
> option with vnet jails. Other people also mentioned that vnet by itself
> is not an issue and your test confirms this, however I'm observing poor
> scalability specifically with the epair virtual NIC.
>
> I will be trying netgraph when I have some more time. If there are
> other alternatives to if_epair then I would be interested to learn
> about them.
>

I am using epair on the server side of that test. On the truenas server, I
have an if_bridge instance which has one vlan of the physical intel nic as
member along with one side of an epair for each of the several jails
running on the host. As I mentioned, disabling LRO on the physical nic was
helpful in reaching this throughput.

Doug.