NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Poor network performances




Hi,

I've been witnessing poor performances while using NetBSD 7.0/amd64 on a
Gigabit network. I tried this with 2 differents NICs.

Default scenario, either re(4) or alc(4):

$ ifconfig re0 # relevant bits
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
        capabilities=3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
        enabled=0
        ec_capabilities=3<VLAN_MTU,VLAN_HWTAGGING>
        ec_enabled=0
        address: f8:df:2f:f7:af:f2
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
[...]

On the actual gigabit LAN:

$ iperf3 -c coruscant -l16k
Connecting to host coruscant, port 5201
[  4] local 192.168.1.57 port 32792 connected to 192.168.1.249 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[ 4] 0.00-1.00 sec 6.73 MBytes 56.5 Mbits/sec 0 69.3 KBytes [ 4] 1.00-2.00 sec 12.1 MBytes 102 Mbits/sec 0 102 KBytes [ 4] 2.00-3.00 sec 14.1 MBytes 118 Mbits/sec 0 136 KBytes [ 4] 3.00-4.00 sec 15.0 MBytes 126 Mbits/sec 19 154 KBytes [ 4] 4.00-5.00 sec 16.4 MBytes 138 Mbits/sec 0 188 KBytes [ 4] 5.00-6.00 sec 16.7 MBytes 140 Mbits/sec 30 187 KBytes [ 4] 6.00-7.00 sec 18.3 MBytes 153 Mbits/sec 0 195 KBytes [ 4] 7.00-8.00 sec 17.8 MBytes 149 Mbits/sec 0 195 KBytes [ 4] 8.00-9.00 sec 18.1 MBytes 152 Mbits/sec 0 195 KBytes [ 4] 9.00-10.00 sec 18.0 MBytes 151 Mbits/sec 0 195 KBytes - - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   153 MBytes   129 Mbits/sec   49             sender
[  4]   0.00-10.00  sec   152 MBytes   128 Mbits/sec                  receiver

The client machine is a linux box which actually reaches Gb transfer with
another linux host.

Over my FO Internet connection:

NetBSD:
$ iperf3 -c ping.online.net
[...]
[ ID] Interval           Transfer     Bandwidth       Retr
[  6]   0.00-10.01  sec  44.3 MBytes  37.1 Mbits/sec   45             sender
[  6]   0.00-10.01  sec  44.1 MBytes  37.0 Mbits/sec                  receiver

Linux:
$ iperf3 -c ping.online.net
[...]
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   124 MBytes   104 Mbits/sec   49             sender
[  4]   0.00-10.00  sec   121 MBytes   102 Mbits/sec                  receiver

To be 100% honest, the Linux box is connected through a PLC while the NetBSD box
is directly connected to the ISP router...

I tried tweaking sysctl a bit like indicated here:

https://wiki.netbsd.org/tutorials/tuning_netbsd_for_performance/

without success.

Hints? Thoughts?

----------------------------------------------------------------
Emile `iMil' Heitor * <imil@{home.imil.net,NetBSD.org,gcu.info}>
                                                              _
            | http://imil.net        | ASCII ribbon campaign ( )
            | http://www.NetBSD.org  |  - against HTML email  X
            | http://gcu.info        |              & vCards / \


!DSPAM:57ee707c128551504132269!



Home | Main Index | Thread Index | Old Index