I have a HP N40L Microserver running FreeNAS 8.3.1-RELEASE-p2-x64 from a USB stick, with 16GB of ECC RAM and 4 x 2TB HDDs in RAIDZ2 configuration, with encryption enabled.
I've set it all up, configured shares etc, but I am getting extremely slow file transfer speeds (~7MB) when copying files from a Windows machine via a wired gigabit connection (Windows machine -> cat6 -> gigabit switch -> cat6 -> Microserver). When copying files FROM the NAS, I get ~40MB/s sustained transfers. It's just copying files TO the NAS that is very slow.
I also tried enabling 'Large RW support', 'Send files with sendfile(2)', and 'Enable AIO' in the CIFS service settings (as per the suggestion in the FreeNAS user manual), but this didn't make any discernable difference to the file transfer speed. I also enabled the 'autotune' checkbox in the 'Advanced Settings' page; again, this didn't really make any discernable difference.
I ran 'dd' several times with different block sizes and counts to benchmark the disk I/O; here are the results:
I also ran 'iperf' several times to test the network bandwidth/performance:
The results of the tests (all run one after another, while the box was otherwise idle) are pretty inconsistent and vary wildly - what would be the reason for this? And what other reasons could there be for such slow file transfers? I really need to figure this out, as I have several TBs of data which I need to transfer over to the FreeNAS box ASAP.
I've set it all up, configured shares etc, but I am getting extremely slow file transfer speeds (~7MB) when copying files from a Windows machine via a wired gigabit connection (Windows machine -> cat6 -> gigabit switch -> cat6 -> Microserver). When copying files FROM the NAS, I get ~40MB/s sustained transfers. It's just copying files TO the NAS that is very slow.
I also tried enabling 'Large RW support', 'Send files with sendfile(2)', and 'Enable AIO' in the CIFS service settings (as per the suggestion in the FreeNAS user manual), but this didn't make any discernable difference to the file transfer speed. I also enabled the 'autotune' checkbox in the 'Advanced Settings' page; again, this didn't really make any discernable difference.
I ran 'dd' several times with different block sizes and counts to benchmark the disk I/O; here are the results:
Code:
[knubbze@freenas] /> dd if=/dev/zero of=/mnt/storage/Public/test1.dd bs=2M count=10000 10000+0 records in 10000+0 records out 20971520000 bytes transferred in 739.207902 secs (28370259 bytes/sec) [knubbze@freenas] /> dd if=/dev/zero of=/mnt/storage/Public/test2.dd bs=1M count=1000 1000+0 records in 1000+0 records out 1048576000 bytes transferred in 14.258437 secs (73540740 bytes/sec) [knubbze@freenas] /> dd if=/dev/zero of=/mnt/storage/Public/test3.dd bs=1M count=1000 1000+0 records in 1000+0 records out 1048576000 bytes transferred in 35.538892 secs (29505028 bytes/sec) [knubbze@freenas] /> dd if=/dev/zero of=/mnt/storage/Public/test4.dd bs=2M count=1000 1000+0 records in 1000+0 records out 2097152000 bytes transferred in 58.855795 secs (35632039 bytes/sec) [knubbze@freenas] /> dd if=/dev/zero of=/mnt/storage/Public/test5.dd bs=1M count=10000 10000+0 records in 10000+0 records out 10485760000 bytes transferred in 346.735037 secs (30241420 bytes/sec)
I also ran 'iperf' several times to test the network bandwidth/performance:
Code:
[knubbze@freenas] /> iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 64.0 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.1.2 port 5001 connected with 192.168.1.3 port 49345 [ ID] Interval Transfer Bandwidth [ 4] 0.0-30.0 sec 1.61 GBytes 461 Mbits/sec [ 5] local 192.168.1.2 port 5001 connected with 192.168.1.3 port 49348 [ 5] 0.0-10.0 sec 633 MBytes 530 Mbits/sec [ 4] local 192.168.1.2 port 5001 connected with 192.168.1.3 port 49349 [ 4] 0.0-10.0 sec 513 MBytes 429 Mbits/sec [ 5] local 192.168.1.2 port 5001 connected with 192.168.1.3 port 49350 [ 5] 0.0-10.0 sec 656 MBytes 549 Mbits/sec [ 4] local 192.168.1.2 port 5001 connected with 192.168.1.3 port 49351 [ 4] 0.0-60.0 sec 3.51 GBytes 502 Mbits/sec
The results of the tests (all run one after another, while the box was otherwise idle) are pretty inconsistent and vary wildly - what would be the reason for this? And what other reasons could there be for such slow file transfers? I really need to figure this out, as I have several TBs of data which I need to transfer over to the FreeNAS box ASAP.