Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Speed up SMB (Samba) server performance' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Speed up SMB (Samba) server performance
Authored by: Anonymous on Mar 30, '04 10:04:47PM

The example config presented looks like it has some embedded HTML in it.

It needs to be said that tuning network daemons can be a bit of a black art. People interested in doing so for SMB are encouraged to read the freely-available O'Reilly book Using Samba.

OnLamp also has some OS X specific Samba advice.

In the interest of providing more working examples using these (and other) references, I've verified that the following TCP options really improved my local network throughput and latency:

TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8576 SO_RCVBUF=8576

The reason for the 8576 value is explained in the O'Reilly book.

[ Reply to This | # ]

Speed up SMB (Samba) server performance
Authored by: MartySells on Mar 30, '04 10:22:45PM

Agreed. Further testing showed that the config from my original post actually decreased performance in some cases. Use these instead. -m



[ Reply to This | # ]
'Using Samba' book included with 10.2 & 10.3
Authored by: victory on Mar 31, '04 04:33:59AM
Just a reminder that the aforementioned 'Using Samba' book is actually included as part of the standard Samba documentation set. If you're running 10.2 or 10.3, there's actually a copy of it already on your HD.

Open a browser and go to (note the three slashes):

file:///usr/share/swat/using_samba/toc.html

NOTE:This is not my tip -- I first read it here
Of course, O'reilly is a great publisher and if you're really into messing with Samba, you may want to support them and buy the dead-tree version anyway..

[ Reply to This | # ]
Speed up SMB (Samba) server performance
Authored by: morgion on Mar 31, '04 10:15:30AM

Should these options be used instead of everything in the originial post, or should we still use "read size" and "getwd cache" as well as the new "socket options"?

That is, should we use the following:

read size = 1024
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8576 SO_RCVBUF=8576
getwd cache = yes


[ Reply to This | # ]
Speed up SMB (Samba) server performance
Authored by: Anonymous on Mar 31, '04 11:49:08AM

I bumped the "read size" to 16384, as well. This value needs to be selected with some intelligence. I experimented with values like 4096, 8012 until things "felt" right. One should really measure the throughput properly when tweaking this value. See this Samba performance tuning reference. 16K is a pretty standard setting for BSD boxes.

I did not change the "getcwd cache" value from it's default .

According to Using Samba:

This global option specifies whether Samba should use a local cache for the Unix getwd() ( get current working directory) system call. You can override the default value of yes as follows:

[global] getwd cache = no

Setting this option to yes can significantly increase the time it takes to resolve the working directory, especially if the wide links option is set to no. You should normally not need to alter this option.

I've never noticed a problem accessing [homes] for any of my users.

[ Reply to This | # ]