Professional Documents
Culture Documents
| FreeNAS Community
Log in or Sign up
Download Latest 9.3.1 STABLE
SOLVED Successful new build - but I have a 50% speed loss over
wifi - Only to freenas....
Discussion in 'New to FreeNAS?' started by Minty Trebor, Oct 27, 2015.
I have successfully built a very fast (well I think its fast!) 9.3 Freenas box, and I am
getting about 100 mb/sec (according to windows 10) sustained write speed to a 5 disk
zfs pool, over CIFS. As you can expect I am very happy with this. I also have a working
vbox jail, Logitech Media Server Jail, and Plex plugin/jail.
Offline
Minty Trebor But I have a very strange wifi transfer speed issue - Only to the Freenas server.
Member Since: Oct 26, (I understand that windows does not give accurate write speeds, but as a comparator
2015
Messages: Message 2
in this instance I think they are fine)
Count:
2 Using the same Windows 10 laptop as I used for the wired speed tests and the same
Likes Received: 0 test file; However I can only reach 20 mb/sec sustained write over wifi.
Trophy Points: 1
Location: UK
My wifi is using the AC protocol (5Ghz) and if I upload the same file to different
network share on a different machine (using basic windows network sharing) I see a
sustained transfer speed of around 40 mb/sec over wifi.
The network has been in place for a number of years, and the wifi has consistently
delivered around a 40 mb/sec transfer speed previously. I was running a Linux Mint
build (on the same H/W) with Native ZFS prior to converting it over to Freenas. With
the linux mint zfs pool, I used to get around 70 mb/sec wired, and 40 mb/sec
wireless.
The wireless data is not taking a different route to the server compared to the wired
data (all going through the same router and cables, except for the first hop over wifi of
course). I run 2 Nics, and I have tried direct writing to both IP's, instead of server
name, but this made no difference.
I have read the documentation around CIFS tuning and other posts spotted around the
forum about tuning NICS, but I fail to understand why this speed drop is only to the
Freenas box....
I'm probably missing something obvious, but any help or ideas would be
appreciated....
Specs below...
Server:
Core i5
12GB Ram
Asus P7H57D-V EVO
2 Nics (1 onboard, 1 PCI-E)
5 disk ZFS volume/pool (2tb WD reds)
2 disk stripe volume/pool (60GB SSD's) - running jails only
Minty Trebor, Oct 27, 2015 #1
That's completely normal for a board with a Realtek LAN. The little hamsters on the
wheels that push bits around inside a Realtek chipset sometimes get very tired, so you
may see various odd things related to them and performance. Perhaps one of your
hamsters is sick or deceased.
Offline
jgreco The simple fact is that Realtek chipsets are slanted towards extremely cheap desktop
Resident Grinch
connectivity for Windows PC's. As such, their ability to efficiently line up packet after
Member Since: May 29,
2011
packet and pump them out at full speed for billions of packets without issue is very
Messages: Messag 7,715 questionable. We recommend the Intel parts.
e
Count: jgreco, Oct 27, 2015 #2
7,715
Likes Received: 1,162
Trophy Points: 113
Location:
WHO(1)ville, Unixland
If it is only a problem on wireless, try increasing the TCP window size to 256Kb. I
think the default is 64Kb (not autoscaling?) and found that it limited performance on
my setup - apparently due to the effective latency of the wireless chain.
Online Temporarily:
FlynnVT sysctl net.inet.tcp.recvspace=262144
Newbie
sysctl net.inet.tcp.sendspace=262144
Member Since: Aug 12,
2013
Messages: Message 36 ...or you can use the -w option on iperf for experimentation.
Count: To make it permanent you can add the variables and values via:
36
http://olddoc.freenas.org/index.php/Sysctls
Likes Received: 11
Trophy Points: 8
More information, somewhat related:
http://www.anandtech.com/show/7085/the-2013-macbook-air-review-13inch/10
http://arstechnica.com/apple/2013/0...-the-2013-macbook-airs-802-11ac-wi-fi-
speeds/
I've never looked into autoscaling and don't know what the default is on FreeNAS:
https://en.wikipedia.org/wiki/TCP_window_scale_option#FreeBSD.2C_OpenBS
D.2C_NetBSD_and_Mac_OS_X
Also, make sure CIFS is configured to allow SMB3.
(http://doc.freenas.org/9.3/freenas_services.html#cifs, Table 11.3b). AFAIK there are
chattiness/efficiency improvements to the later protocol versions that handle this
latency better too.
I see 20Mb/sec a room away from the AP when the indicated MAC rate is about
~350mbps. This rises to over 40MB/sec with the laptop closer and an indicated
866mbps MAC rate.
FlynnVT, Oct 27, 2015 #3
Glad to see there's a mitigation of some sort, but obviously the 35 is less than the 40.
Usually people are trying this on wired ethernet and with Realtek, they just never get
anywhere near the native performance of a $35 desktop Intel LAN chipset.
jgreco said: ↑
The little hamsters on the wheels that push bits around inside a Realtek
chipset sometimes get very tired
Offline
Ericloewe It doesn't help that Realteks rely disproportionately on the little hamsters in the CPU.
not-very-passive-
but-aggressive
FreeNAS 9.3 Stable
Member Since: Feb 15,
2014 Supermicro X10SLM+-F with Intel Core i3 4330 and 2*8GB Crucial ECC 1.35V DDR3 1600MHz
Messages: Message 911 6 * WD30EFRX WD Red 3TB in RAIDZ2 and 2*16GB Toshiba USB drive, mirrored
Count: Sharkoon T9 Value with 2 * Icy Dock FatCage MB153SP-B 3-in-2 drive cages
911 Seasonic G-550Gee, you're bored.APC Back-UPS Pro 900
Likes Received: 794
Hardware Recommendations - ZFS basics (a.k.a Cyberjock's Guide)
Trophy Points: 113
Supermicro X10/X11 FAQ and X10 Memory Recommendations
Location: Portugal
Ericloewe, Oct 29, 2015 #6
Ericloewe said: ↑
Offline
jgreco Indeed. And just like hamsters, one crummy set of silicon seems to have evolved into
Resident Grinch an entire family of crummy silicon ...
Member Since: May 29,
2011 jgreco, Oct 29, 2015 #7
Messages: Messag 7,715
e Ericloewe likes this.
Count:
7,715
Likes Received: 1,162
Trophy Points: 113
Location:
WHO(1)ville, Unixland
jgreco said: ↑
Indeed. And just like hamsters, one crummy set of silicon seems to have
evolved into an entire family of crummy silicon ...
Offline
jgreco By the way, that's an obscure reference to the fact that all modern Golden hamsters
Resident Grinch are widely considered to have descended from a single brother/sister pair.
Member Since: May 29,
2011
http://www.smithsonianmag.com/ist/?...of-the-hamster-aka-mr-saddlebags-
Messages: Messag 7,715
e
1223774/?all
Count:
jgreco, Oct 29, 2015 #8
7,715
Likes Received: 1,162
Trophy Points: 113
Location:
WHO(1)ville, Unixland
jgreco said: ↑
By the way, that's an obscure reference to the fact that all modern Golden
hamsters are widely considered to have descended from a single
brother/sister pair.
Offline
anodos http://www.smithsonianmag.com/ist/?...of-the-hamster-aka-mr-
Belly-button Lint saddlebags-1223774/?all
Extraordinaire