Slow write speeds on new system

typhonragewind

Dabbler
Joined
Dec 1, 2018
Messages
26
Hello everyone!

I've recently (2 days ago) joined the ranks of FreeNas owners, after building my machine and i have been learning to operate it. I'm very, very green when it comes to networking, so please bear with me.

Hardware:
Motherboard: Supermicro X11SCN-F
RAM: 16gb ECC
CPU: Intel Xeon E-2136
Disks:
-6x4tb WD reds
-120gb SSD (freenas installation)
- 240g ssd (plugin and jail installation disk)
Nas is connected to the network through a TPLINK 1GB switch (single cable to the NAS yet)

I've successfully created datasets and a samba share for it, and have it now mapped in my windows pc. However when I try to copy large files to the share i get extremely slow speeds (max i've gotten is 11mb/s). Storage is empty. CPU is not under any high load and RAM is detected and sits a idle usage of about 5gb.
I'm not sure if i configured something badly and other posts om similar issues haven't been very helpful to me. Many of them asked for a /ifconfig result which i'll post below, if it helps.

Code:
FreeBSD 11.2-STABLE (FreeNAS.amd64) #0 r325575+6aad246318c(HEAD): Mon Jun 24 17:25:47 UTC 2019

        FreeNAS (c) 2009-2019, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS

Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

root@nexus[~]# ifconfig
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=6403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether ac:1f:6b:7b:a2:56
        hwaddr ac:1f:6b:7b:a2:56
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
igb1: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=6403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether ac:1f:6b:7b:a2:57
        hwaddr ac:1f:6b:7b:a2:57
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo


I have no experience with FreeBSD and very little with networking, so i'm somewhat at a loss on how to diagnose this. Followed Uncle Fester's Basic FreeNAS 11.2 Configuration Guide for my initial setup and configuration.

Any help would be greatly appreciated.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Your client connect with 1gbps? 11MB/s is exactly 100mbps.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Your client connect with 1gbps? 11MB/s is exactly 100mbps.
And that includes the entire Ethernet path, we have seen people insert a slow switch in the middle of a path and it causes the issue or even a bad Ethernet cable can cause it, and assuming you are not using a slow WiFi connection. If in doubt just plug the two devices directly together if possible, it can speed up troubleshooting.
 

typhonragewind

Dabbler
Joined
Dec 1, 2018
Messages
26
Your client connect with 1gbps? 11MB/s is exactly 100mbps.
And that includes the entire Ethernet path, we have seen people insert a slow switch in the middle of a path and it causes the issue or even a bad Ethernet cable can cause it, and assuming you are not using a slow WiFi connection. If in doubt just plug the two devices directly together if possible, it can speed up troubleshooting.

Yes the client is connected also by a wired 1gb connection. Both the client, the FreeNas, my router and my crummy old MyCloud NAS are linked through the same switch. I can get speeds of about 60mb/s on that crummy old NAS.
Just to be sure it was not the cable, i switched the cable from the old mycloud, with the mycloud port on the switch(which is known to be good) to the FreeNAS with the same 11mb/s result

EDIT: I just retested the speed again (this problem was last night before going to sleep) and now it suddenly somewhat fixed itself. I have no idea what happened. It is now at 100mb/s. Still not the full speed it should, but manageable.
 
Last edited:

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Yes the client is connected also by a wired 1gb connection. Both the client, the FreeNas, my router and my crummy old MyCloud NAS are linked through the same switch. I can get speeds of about 60mb/s on that crummy old NAS.
Just to be sure it was not the cable, i switched the cable from the old mycloud, with the mycloud port on the switch(which is known to be good) to the FreeNAS with the same 11mb/s result

EDIT: I just retested the speed again (this problem was last night before going to sleep) and now it suddenly somewhat fixed itself. I have no idea what happened. It is now at 100mb/s. Still not the full speed it should, but manageable.
Just run an iperf test to make sure it's not a networking problem.

A single HDD can easily read/write over 1gbps steaming workload. So something in your system is really slow.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
It is now at 100mb/s.
In future postings please make sure you use proper lettering, I'm sure you meant to say 100MB/s = Mega Bytes vice mb/s = Mega Bits. It makes a difference when someone is trying to help.

Glad it resolved itself.
 

typhonragewind

Dabbler
Joined
Dec 1, 2018
Messages
26
Just run an iperf test to make sure it's not a networking problem.

A single HDD can easily read/write over 1gbps steaming workload. So something in your system is really slow.

Can you please give me an example command? Never used iperf before

In future postings please make sure you use proper lettering, I'm sure you meant to say 100MB/s = Mega Bytes vice mb/s = Mega Bits. It makes a difference when someone is trying to help.

Glad it resolved itself.

You're right, I confused the units and i'll be more careful in the future :)
And by the way, have you got any extra tips for a FreeNAS novice? I loved your advice when i asked about my build (a few months ago)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
And by the way, have you got any extra tips for a FreeNAS novice? I loved your advice when i asked about my build (a few months ago)
Honestly, I don't recall the advice I provided but there are times that I do give good advice, maybe you were one of the lucky few ;)

Tips: RTFM x2, there is a ton of information in that document that tends to answer many questions. Read the forum rules, there is some good information in there so we can provide good quick help. Never assume we know your situation nor how your system is configured or works and again we will be able to provide good help. If you have a problem, can it be repeated? That is always good to know.

Link to good reading and advice:
https://www.ixsystems.com/community/resources/links-to-useful-threads.108/

Otherwise no real tips in general but if you have any questions, just post them and someone will provide you an answer.

Oh, the last tip which is most valuable, be humble in your postings, never be cocky or rude or act like you know it all. As my momma use to say, if you can't say anything nice... Don't say anything at all.

Can you please give me an example command? Never used iperf before
This is where I tell you to RTFM becasue iperf is covered in there. I'd also do an internet search for "freenas iperf" and maybe the same thing for your other computer maybe it's windoze 10 so "windows iperf" so you find some examples of how to run it. It's not terribly hard.

I hope you report your iperf results and have a great rest of your day!
 

typhonragewind

Dabbler
Joined
Dec 1, 2018
Messages
26
Honestly, I don't recall the advice I provided but there are times that I do give good advice, maybe you were one of the lucky few ;)

Tips: RTFM x2, there is a ton of information in that document that tends to answer many questions. Read the forum rules, there is some good information in there so we can provide good quick help. Never assume we know your situation nor how your system is configured or works and again we will be able to provide good help. If you have a problem, can it be repeated? That is always good to know.

Link to good reading and advice:
https://www.ixsystems.com/community/resources/links-to-useful-threads.108/

Otherwise no real tips in general but if you have any questions, just post them and someone will provide you an answer.

Oh, the last tip which is most valuable, be humble in your postings, never be cocky or rude or act like you know it all. As my momma use to say, if you can't say anything nice... Don't say anything at all.


This is where I tell you to RTFM becasue iperf is covered in there. I'd also do an internet search for "freenas iperf" and maybe the same thing for your other computer maybe it's windoze 10 so "windows iperf" so you find some examples of how to run it. It's not terribly hard.

I hope you report your iperf results and have a great rest of your day!

That is some great advice! I did not know the RTFM expression and laughed a lot when i searched for it, it's very true :P

I've seen the proper documentation for the iperf now and will be performing the test once my current data transfer finishes...which I'm not sure will be today.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I did not know the RTFM expression and laughed a lot when i searched for it, it's very true :p
Glad you laughed, some people take it as an insult. Hopefully by now you realize that I'm not here to insult people but to actually try to help. Most of the folks here are well meaning and sometimes our words are not taken as we expected. Hopefully iperf gives you some good results.
 

typhonragewind

Dabbler
Joined
Dec 1, 2018
Messages
26
Just run an iperf test to make sure it's not a networking problem.


Hopefully iperf gives you some good results.

Hopefully this is what you were asking me. I followed FreeNAS manual using JPerf on my windows, while no other network activity was happening on both machines. I'm not sure if UDP would be useful here, but i included it anyways.

I must say that despite the frustations from learning something completely new, I'm having a lot of fun configuring my FreeNAS :D

Code:
bin/iperf.exe -c 192.168.1.3 -P 1 -i 1 -p 5001 -f k -t 10
------------------------------------------------------------
Client connecting to 192.168.1.3, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[352] local 192.168.1.69 port 59574 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[352]  0.0- 1.0 sec  115776 KBytes  948437 Kbits/sec
[352]  1.0- 2.0 sec  114792 KBytes  940376 Kbits/sec
[352]  2.0- 3.0 sec  115808 KBytes  948699 Kbits/sec
[352]  3.0- 4.0 sec  114928 KBytes  941490 Kbits/sec
[352]  4.0- 5.0 sec  114784 KBytes  940311 Kbits/sec
[352]  5.0- 6.0 sec  114808 KBytes  940507 Kbits/sec
[352]  6.0- 7.0 sec  114800 KBytes  940442 Kbits/sec
[352]  7.0- 8.0 sec  114928 KBytes  941490 Kbits/sec
[352]  8.0- 9.0 sec  114800 KBytes  940442 Kbits/sec
[352]  9.0-10.0 sec  114792 KBytes  940376 Kbits/sec
[352]  0.0-10.0 sec  1150224 KBytes  940245 Kbits/sec
Done.



Code:
bin/iperf.exe -c 192.168.1.3 -P 1 -i 1 -p 5001 -f k -t 10
------------------------------------------------------------
Client connecting to 192.168.1.3, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[352] local 192.168.1.69 port 59574 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[352]  0.0- 1.0 sec  115776 KBytes  948437 Kbits/sec
[352]  1.0- 2.0 sec  114792 KBytes  940376 Kbits/sec
[352]  2.0- 3.0 sec  115808 KBytes  948699 Kbits/sec
[352]  3.0- 4.0 sec  114928 KBytes  941490 Kbits/sec
[352]  4.0- 5.0 sec  114784 KBytes  940311 Kbits/sec
[352]  5.0- 6.0 sec  114808 KBytes  940507 Kbits/sec
[352]  6.0- 7.0 sec  114800 KBytes  940442 Kbits/sec
[352]  7.0- 8.0 sec  114928 KBytes  941490 Kbits/sec
[352]  8.0- 9.0 sec  114800 KBytes  940442 Kbits/sec
[352]  9.0-10.0 sec  114792 KBytes  940376 Kbits/sec
[352]  0.0-10.0 sec  1150224 KBytes  940245 Kbits/sec
Done.

bin/iperf.exe -c 192.168.1.3 -u -P 1 -i 1 -p 5001 -f k -b 1.0M -t 10 -T 1
------------------------------------------------------------
Client connecting to 192.168.1.3, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 64.0 KByte (default)
------------------------------------------------------------
[328] local 192.168.1.69 port 57123 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[328]  0.0- 1.0 sec   123 KBytes  1011 Kbits/sec
[328]  1.0- 2.0 sec   122 KBytes  1000 Kbits/sec
[328]  2.0- 3.0 sec   122 KBytes  1000 Kbits/sec
[328]  3.0- 4.0 sec   122 KBytes  1000 Kbits/sec
[328]  4.0- 5.0 sec   122 KBytes  1000 Kbits/sec
[328]  5.0- 6.0 sec   122 KBytes  1000 Kbits/sec
[328]  6.0- 7.0 sec   122 KBytes  1000 Kbits/sec
[328]  7.0- 8.0 sec   122 KBytes  1000 Kbits/sec
[328]  8.0- 9.0 sec   122 KBytes  1000 Kbits/sec
[328]  9.0-10.0 sec   122 KBytes  1000 Kbits/sec
[328]  0.0-10.0 sec  1223 KBytes  1000 Kbits/sec
[328] Sent 852 datagrams
Done.

 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
EDIT nvm
 
Top