Debugging slow network performance

stephenreda

Dabbler
Joined
Oct 28, 2012
Messages
29
Could you please guide my into the right direction to find out where my slow connectivity is coming from?

My main Freenas NIC has a gigabit capable interface
Code:
root@freenas:~ # ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
    ether blabla
    hwaddr blabla
    inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active


The switch is a gigabit switch, and the 1000MB indicator light blinks on the cable to my laptop as well as on the cable going to Freenas.

Iperf Freenas to Laptop
Code:
[  3] local 192.168.1.100 port 40166 connected with 192.168.1.110 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  2.12 MBytes  1.78 Mbits/sec
[  3] 10.0-20.0 sec  2.12 MBytes  1.78 Mbits/sec
[  3] 20.0-30.0 sec  1.12 MBytes   944 Kbits/sec
[  3] 30.0-40.0 sec  6.00 MBytes  5.03 Mbits/sec
[  3] 40.0-50.0 sec  6.50 MBytes  5.45 Mbits/sec
[  3] 50.0-60.0 sec  5.75 MBytes  4.82 Mbits/sec
[  3]  0.0-60.0 sec  23.6 MBytes  3.30 Mbits/sec


iperf laptop to freenas
Code:
^hostname:~ username$ iperf -t 60 -i 10 -c 192.168.1.100
------------------------------------------------------------
Client connecting to 192.168.1.100, TCP port 5001
TCP window size:  129 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.110 port 62302 connected with 192.168.1.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  2.88 MBytes  2.41 Mbits/sec
[  4] 10.0-20.0 sec  2.88 MBytes  2.41 Mbits/sec
[  4] 20.0-30.0 sec  1.25 MBytes  1.05 Mbits/sec
[  4] 30.0-40.0 sec  2.65 MBytes  2.23 Mbits/sec
[  4] 40.0-50.0 sec  0.00 Bytes  0.00 bits/sec
[  4] 50.0-60.0 sec  0.00 Bytes  0.00 bits/sec
[  4]  0.0-62.9 sec  9.65 MBytes  1.29 Mbits/sec


System stats:
CPU usage is about 6%,
RAM is also okay i think
Screen Shot 2019-08-19 at 08.52.37.png
OS Version:
FreeNAS-11.2-U5
(Build Date: Jun 24, 2019 18:41)
Processor:
Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz (4 cores)
Memory:
16 GiB


Write tests on the machine itself (to test the pool) seem okay

Code:
root@freenas:~ # dd if=/dev/zero of=/mnt/Main/Downloads/test.bac bs=2048k count=10000
10000+0 records in
10000+0 records out
20971520000 bytes transferred in 6.668802 secs (3144720816 bytes/sec)
root@freenas:~ # dd if=/dev/zero of=/mnt/Main/Downloads/test.bac bs=2048k count=10000
10000+0 records in
10000+0 records out
20971520000 bytes transferred in 7.784909 secs (2693868493 bytes/sec)
root@freenas:~ # dd if=/dev/zero of=/mnt/Main/Downloads/test.bac bs=2048k count=10000
10000+0 records in
10000+0 records out
20971520000 bytes transferred in 6.468069 secs (3242315575 bytes/sec) 


However, when using FTP or any other fileshare protocol I get terrible speeds (Below 1MBps)

Any ideas?
 
Last edited:

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
These are terrible connection rates. Are you sure the laptop traffic is not going via WiFi?
Even if you have plugged an ethernet cable into the laptop make sure WiFi is off.
Switch cables to make sure this low rate is not due to a damaged cable.
 
Joined
Jul 2, 2019
Messages
648
What are you using for a switch? What type of NICs (brand, model) do you have on the FreeNAS box and the remove host? These could be an issue as well.
 
Top