Samba Optimization config


#1

If you have ssh enabled and get hold of Winscp you can get easy access to samba’s config file to do some minor optimization.

You just have to add a few commands to the socket options entry so it looks like this.

before:

socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536

after:

socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536

 

A discription on what they do:

IPTOS_LOWDELAY is another option trading off throughput for lower delay, but which affects routers and other systems, not the server. All the IPTOS options are new; they’re not supported by all operating systems and routers though. If they are supported, set IPTOS_LOWDELAY whenever you set TCP_NODELAY. This option gives us a minor speed up around 20%.

SO_KEEPALIVE initiates a periodic check every four(4) hours to see if the client is still there. This option eventually arranges to close dead connections, returning unused memory and process-table entries to the operating system. Using this option is conjunction with “deadtime = 15” to close idle connection as fast as your working environment will allow.


#2

Jummmm, Cool!!.