[Samba] poor read/write performance due to TCP window size configuration

Low Tee Chong LOW_Tee_Chong at dsi.a-star.edu.sg
Mon Jan 5 09:44:05 GMT 2009


I am using a TCP link that requires TCP window size to be at least 256K.

Below is my smb.conf file.
I have tried to capture the packets using wireshark after the configuration.  However, the TCP windows size still cap at about 64k

How should I configure it?  My samba version is Version 3.0.24-11.fc6

Thank You.

Best Regards,

   workgroup = TESTBED
   server string = Samba Server
   security = user
   log level = 0
   read raw = yes
   write raw = yes
   kernel oplocks = yes
   max xmit = 262144
   dead time = 15
   getwd cache = yes
   encrypt passwords = yes
   log file = /var/log/samba/%m.log
   max log size = 50
   smb passwd file = /etc/samba/smbpasswd
   netbios name = stgsvr01
   disable spoolss = yes
   show add printer wizard = no
   cups options = raw
   socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY

#============================ Share Definitions ==============
   path = /mnt/thumb
   hosts allow =
   delete readonly = yes
   oplocks = yes
   read only = no
   browseable = yes
   valid users = teststg01


1) This email is confidential and may be privileged. If you are not the
intended recipient, please delete it and notify us immediately. Please
do not copy or use it for any purpose, or disclose its contents to any
other person.

2) If you believe you're receiving this e-mail in error or prefer not to
receive publicity materials from Data Storage Institute,
please send e-mail to admin at dsi.a-star.edu.sg with the subject "Unsubscribe".

Please remember to include the body text received.
Removal requests will be honored and respected. Please allow 1 to 3 days for processing.
You may still receive other e-mails from us within the grace period.

3) As an anti-virus measure, our mail server rejects the following
*.bat, *.com, *.cmd, *.exe, *.hta, *.Ink, *.pif, *.scr,
*.shs; *.vb*; *.{*, *.js, *.sct, *.wsh, *.jse, *.swf.

If you need to send us an attachment of this type, please contact us
at helpline at dsi.a-star.edu.sg.

Thank you!

More information about the samba mailing list