CIFS Auxiliary Parameters

Status
Not open for further replies.

nubrun

Dabbler
Joined
Aug 9, 2011
Messages
17
Hi all,

I just updated my firmware to the FreeNAS 8.0.2 RELEASE P3 and encountered the slow folder browsing as mentioned in this thread: http://forums.freenas.org/showthread.php?5338-Browsing-directories-slow. I have tried to apply the auxiliary parameters mentioned in that thread, but am running into a problem with the GUI. When I add the parameters I keep running into an error with the AIO read write size. CIFS Bug.JPG
Even if I hit the cancel button at the bottom of the box it won't cancel without those parameters filled in. Does anyone have a fix, or another way to use those parameters. The CIF browsing suddenly is painfully slow.

Thanks,
Nick
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
I just updated my firmware to the FreeNAS 8.0.2 RELEASE P3 and encountered the slow folder browsing as mentioned in this thread: http://forums.freenas.org/showthread.php?5338-Browsing-directories-slow.
Is that a typo or are you running 8.0.2? If you are upgrade to 8.0.4.

I have tried to apply the auxiliary parameters mentioned in that thread, but am running into a problem with the GUI. When I add the parameters I keep running into an error with the AIO read write size.
Put in values for AIO. Then uncheck it and it will disable AIO. I actually run with AIO on and get better performance, but I never had slow browsing or used 8.0.4.
 

nubrun

Dabbler
Joined
Aug 9, 2011
Messages
17
Is that a typo or are you running 8.0.2? If you are upgrade to 8.0.4.

I'm sorry that was a typo, I am running FreeNAS-8.0.4-RELEASE-p3-x64 (11703) .

Put in values for AIO. Then uncheck it and it will disable AIO. I actually run with AIO on and get better performance, but I never had slow browsing or used 8.0.4.
That is what I am trying to do, and where I am running into trouble. When I open the CIFS settings I see this: Before.JPG
You'll notice that the AIO parameters are populated.

Now just by clicking "cancel" or "ok" this is what I get. I did not change a single setting. Is this a bug, or am I missing something here? Once these warnings pop up about the AIO parameters I cant do anything including adding the additional aux params for CIFS.
After.JPG

Thank you for the help paleoN.
 

nubrun

Dabbler
Joined
Aug 9, 2011
Messages
17
Ok I think I found a bug with this and firefox. I don't run into this problem in internet explorer, but do hit it in firefox.
 

nubrun

Dabbler
Joined
Aug 9, 2011
Messages
17
So using internet explorer I can now add the CIFS aux parameters, but now after I add them I lose the CIFS share to my windows clients (7 and Vista). I am using the following parameters:

socket options = TCP_NODELAY
socket options = IPTOS_LOWDELAY
socket options = SO_KEEPALIVE
socket options = SO_RCVBUF=131072
socket options = SO_SNDBUF=131072
read raw = yes
write raw = yes
max xmit = 65536
getwd cache = yes

And I am seeing the following my my Samba log file:

"[2012/07/09 14:27:54.923177, 0] smbd/trans2.c:844(send_trans2_replies)
send_trans2_replies failed sanity useable_space = -62!!!192.168.254.144 (192.168.254.144) closed connection to service data
[2012/07/09 14:27:54.927110, 1] param/loadparm.c:9666(lp_load_ex)
WARNING: The security=share option is deprecated
[2012/07/09 14:27:54.929527, 1] smbd/service.c:1081(make_connection_snum)
192.168.254.144 (192.168.254.144) connect to service data initially as user www (uid=80, gid=80) (pid 4292)
[2012/07/09 14:27:54.930916, 0] smbd/trans2.c:844(send_trans2_replies)
send_trans2_replies failed sanity useable_space = -62!!!192.168.254.144 (192.168.254.144) closed connection to service data
"
If I remove the aux parameters everything seems to work (SLOWLY) but work again.

Any help would be much appreciated. This slow file traversing problem just started on friday after several months of working fine, and its really beginning to drive me crazy.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Lose the max xmit = 65536 option. You can try the options out one at a time to see what's causing the problem. I would turn off/on the CIFs service after each change.

You should have a single socket options value. All one line:
Code:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 IPTOS_THROUGHPUT
It's fine if the GUI wraps it, but no carriage returns or anything before you paste it in.

I would also try adding:
Code:
write cache size = 131072
That helped to bump my read speeds a bit.
 
Status
Not open for further replies.
Top