Removing interface speed up the trunk . Snapshot + pkg_add iperf # cat /etc/rc.conf.local pflogd_flags=NO # add more flags, e.g. "-s 256" smtpd_flags=NO sndiod_flags=NO
Nothing else The network : configuration of device one# uname -a OpenBSD beta.test 6.2 GENERIC.MP#89 amd64 one#for v in `ls /etc/hostname.*`; do echo file:$v; cat $v; done file:/etc/hostname.bridge0 add em0 add em5 up file:/etc/hostname.bridge1 add trunk0 add vether1 up file:/etc/hostname.em0 down file:/etc/hostname.em5 dhcp file:/etc/hostname.em7 up file:/etc/hostname.em8 up file:/etc/hostname.trunk0 up trunkport em7 trunkport em8 file:/etc/hostname.vether1 rdomain 1 inet 10.0.0.2 255.0.0.0 device two is exactly the same with file:/etc/hostname.vether1 rdomain 1 inet 10.0.0.1 255.0.0.0 <boot both> two# ping -V 1 10.0.0.2 PING 10.0.0.2 (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=1.039 ms <starting iperf server> two#route -T1 exec iperf -s <starting client> one# route -T1 exec iperf -c 10.0.0.1 ------------------------------------------------------------ Client connecting to 10.0.0.1, TCP port 5001 TCP window size: 17.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.2 port 23507 connected with 10.0.0.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.1 sec 70.4 MBytes 58.6 Mbits/sec Wow super slow :o two# (iperf output server ) [ 4] local 10.0.0.1 port 5001 connected with 10.0.0.2 port 17665 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 97.0 MBytes 81.1 Mbits/sec [ 5] local 10.0.0.1 port 5001 connected with 10.0.0.2 port 36997 [ 5] 0.0-10.0 sec 781 MBytes 655 Mbits/sec one#ifconfig trunk0 -trunkport em7 one#route -T1 exec iperf -c 10.0.0.1 ------------------------------------------------------------ Client connecting to 10.0.0.1, TCP port 5001 TCP window size: 17.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.2 port 9762 connected with 10.0.0.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 9.9 sec 770 MBytes 650 Mbits/sec With more time the speed reach almost the expected 1 gb /s Afaik the rdomain/vether/bridge shenenigans is just my test glu, sorry about that. With more interface in the trunk ( i put 5 interfaces in it ) the speed goes to 200Mb/s With this two it s terrible. Because i expect some reader to ask more, pci0 at mainbus0 bus 0 ppb7 at pci0 dev 28 function 2 "Intel Bay Trail PCIE" rev 0x0e: msi pci8 at ppb7 bus 8 ppb8 at pci8 dev 0 function 0 "Pericom PI7C9X2G608GP PCIE" rev 0x00 pci9 at ppb8 bus 9 ppb11 at pci9 dev 3 function 0 "Pericom PI7C9X2G608GP PCIE" rev 0x00: msi ppb12 at pci9 dev 4 function 0 "Pericom PI7C9X2G608GP PCIE" rev 0x00: msi pci13 at ppb12 bus 13 pci12 at ppb11 bus 12 em7 at pci12 dev 0 function 0 "Intel I210 Fiber" rev 0x03: msi, address 00:30:18:13:41:b2 em8 at pci13 dev 0 function 0 "Intel I210 Fiber" rev 0x03: msi, address 00:30:18:13:41:b3 and get 'amused' by all the [pci bridging] same behavior with em1 + em8 pci0 at mainbus0 bus 0 ppb0 at pci0 dev 28 function 0 "Intel Bay Trail PCIE" rev 0x0e: msi pci1 at ppb0 bus 1 ppb1 at pci1 dev 0 function 0 "Pericom PI7C9X2G608GP PCIE" rev 0x00 pci2 at ppb1 bus 2 ppb3 at pci2 dev 2 function 0 "Pericom PI7C9X2G608GP PCIE" rev 0x00: msi pci4 at ppb3 bus 4 em1 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address 00:30:18:03:b8:c8 or em4 pci0 at mainbus0 bus 0 ppb6 at pci0 dev 28 function 1 "Intel Bay Trail PCIE" rev 0x0e: msi pci7 at ppb6 bus 7 em4 at pci7 dev 0 function 0 "Intel I211" rev 0x03: msi, address 00:30:18:04:3f:b3 which perform a tiny bit better # route -T1 exec iperf -c 10.0.0.1 ------------------------------------------------------------ Client connecting to 10.0.0.1, TCP port 5001 TCP window size: 17.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.2 port 6334 connected with 10.0.0.1 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.1 sec 97.4 MBytes 81.0 Mbits/sec I hope this help . you can ask more ( i hope i ll be able to compile from this snap ) -- -- --------------------------------------------------------------------------------------------------------------------- Knowing is not enough; we must apply. Willing is not enough; we must do