[Samba] poor read/write performance due to TCP window size
configuration
Mike Gallamore
mike at mpi-cbg.de
Mon Jan 5 10:07:51 GMT 2009
I haven't played around with this much but I seem to recall reading
that things in packet/window size seem to work on a lowest common
denominator approach. Does something in the path not have the window
scale option enabled? The "old" standard had a max size for the window
of 64k. According to: http://en.wikipedia.org/wiki/TCP_window_scale_option
routers and firewalls are notorious for not implementing TCP Window
scaling.
On Jan 5, 2009, at 10:44 AM, Low Tee Chong wrote:
> Hi,
>
> 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,
> Gary
>
> [global]
> 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 ==============
> [teststg01]
> path = /mnt/thumb
> hosts allow = 192.168.37.199
> 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
> attachments:
> *.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!
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list