NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
matt_hargett
Mar 18, 2012Tutor
[4.1.9-T6] samba crash and general feedback
First, let me say a big THANK YOU for upgrading the Samba to a version that supports SMB2. Several friends and myself had all manually upgraded to Samba 3.6.1 (and then to 3.6.3) in order to make iTun...
matt_hargett
Mar 21, 2012Tutor
After researching and experimenting for months with jumbo frames, socket options, and other things that made small differences, turning on SMB2 seemed to be the last thing that resolved my problem. That being said, when I then worked backward -- keeping SMB2 enabled while reverting other configuration changes -- the improvements were diminished. Here is an excerpt of the diff between the original smb.conf and the new one I was using:
24a25
> max protocol = SMB2
28c29
< oplocks = 0
---
> oplocks = 1
30a32
> read size = 32768
33a36
> socket options = TCP_NODELAY
I was rebooting the ReadyNAS and my client machine running iTunes between each configuration change, using both browsing to a directory of photos and viewing them and starting up iTunes and syncing my iPhone as test scenarios.
I am aware that turning on SMB2 support does increase overall CPU usage, and shows a slight dip in raw throughput, but the two use cases above were dramatically improved. Since I knew I was buying a consumer-level NAS, I am expecting more of a focus on usability and interoperability than raw performance (not that those things are mutually exclusive). CPU does appear to be the bottleneck right now, so I've bootstrapped GCC 4.7.0 (which includes --with-tune=leon support) and will be rebuilding samba-3.6.3 with LTO support to see what effect that has on overall throughput. (In my experiences at several well-known networking companies, using -O3 -flto with GCC 4.6.x both increased throughput by ~5%, lowered CPU usage by ~10%, and decreased binary size by 10-20% on both MIPS- and x64-based products.)
Again, let me know if there's any information I can provide so that you guys can reproduce either the problems or improvements. This is my main project while I'm unemployed for a few more weeks, but beyond that my time will be more limited :)
24a25
> max protocol = SMB2
28c29
< oplocks = 0
---
> oplocks = 1
30a32
> read size = 32768
33a36
> socket options = TCP_NODELAY
I was rebooting the ReadyNAS and my client machine running iTunes between each configuration change, using both browsing to a directory of photos and viewing them and starting up iTunes and syncing my iPhone as test scenarios.
I am aware that turning on SMB2 support does increase overall CPU usage, and shows a slight dip in raw throughput, but the two use cases above were dramatically improved. Since I knew I was buying a consumer-level NAS, I am expecting more of a focus on usability and interoperability than raw performance (not that those things are mutually exclusive). CPU does appear to be the bottleneck right now, so I've bootstrapped GCC 4.7.0 (which includes --with-tune=leon support) and will be rebuilding samba-3.6.3 with LTO support to see what effect that has on overall throughput. (In my experiences at several well-known networking companies, using -O3 -flto with GCC 4.6.x both increased throughput by ~5%, lowered CPU usage by ~10%, and decreased binary size by 10-20% on both MIPS- and x64-based products.)
Again, let me know if there's any information I can provide so that you guys can reproduce either the problems or improvements. This is my main project while I'm unemployed for a few more weeks, but beyond that my time will be more limited :)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!