Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

SOLVED freenas mini XL+ vnet Jail bridged to vlan extremely slow

EHN Admin

Neophyte
Joined
Jan 29, 2016
Messages
11
I have a brand new freenas mini XL+. My network switch is gigabit. I have a couple of vlans configured on the network.
transfers to host system is very near gigabit speeds.
I created a jail with vnet/vimage which is bridged to one of the vlans. Doing installs of packages such as 'pkg install tmux'
have a reported transfer rate of 8.2 kbps, downloads take forever to finish.
1) Has anyone else experienced this?
2) What can I do to diagnose the problem?
3) What information would be helpful?

Thanks in advance
 

blanchet

Member
Joined
Apr 17, 2018
Messages
212
To simplify the setup, try without VLAN.
 

EHN Admin

Neophyte
Joined
Jan 29, 2016
Messages
11
Were you able to resolve this?
No, I have not resolved this. A little more information.
I have tried using iperf to measure network throughput, in a couple situations...
local network(server) to the host(client) ~960 mb/s
local network(client) to the host(server) ~940 mb/s
local network(client) to the jail (server) wide range ~80 mb/s - ~400 mb/s
local network(server) to the jail (client) ~960 mb/s

Without the VLAN everything works fine. It's only with the VLAN in place does it all slow down.
 

Patrick M. Hausen

Dedicated Sage
Joined
Nov 25, 2013
Messages
1,588
Try to turn off all hardware acceleration features for the physical interface the VLAN is on. Like e.g. for igb
Code:
ifconfig igb0 -rxcsum -rxcsum6 -txcsum -txcsum6 -tso -vlanhwtag -vlanhwtso

If that helps you can add these into the interface setup of the GUI.

HTH,
Patrick
 

EHN Admin

Neophyte
Joined
Jan 29, 2016
Messages
11
Patrick, thank you.
That is a huge help, it is many magnitudes faster. What do these options do? I plan on playing with them to determine which are really necessary.
 

momobozo

Neophyte
Joined
Aug 16, 2017
Messages
8
It appears the only one that makes a real difference is the property -vlanhwtag.
Thank you for this. Per the FreeBSD man page:
Code:
     vlanmtu, vlanhwtag, vlanhwfilter, vlanhwcsum, vlanhwtso
         If    the driver offers user-configurable VLAN support, enable re-
         ception of    extended frames, tag processing    in hardware, frame
         filtering in hardware, checksum offloading, or TSO    on VLAN, re-
         spectively.  Note that this must be issued    on a physical inter-
         face associated with vlan(4), not on a vlan(4) interface itself.

     -vlanmtu, -vlanhwtag, -vlanhwfilter, -vlanhwtso
         If    the driver offers user-configurable VLAN support, disable re-
         ception of    extended frames, tag processing    in hardware, frame
         filtering in hardware, or TSO on VLAN, respectively.


Seems like this is a bug in FreeBSD that hasn't been resolved yet: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230996
 
Top