[Samba] Samba slow with some files.

Esteban Torres Rodríguez mortenol.torres at gmail.com
Thu Nov 25 06:39:50 MST 2010


In my samba server (3.2.5-4lenny13) I have problems of slowness in some
files.
Let me explain:

A word file of 155Mb when the user is the owner takes about 7 seconds, but
if the user is not the owner takes about 40 seconds (WAN).

I have monitored with wireshark and when the user owns is a 4096 bytes/frame
and when the user does not own is a 512 bytes/frame.

I have worked with this option: kernel oplocks = no

Why do ocurreo this?

My smb.conf

[Global]
   workgroup = domain
   realm = domain.com
   preferred master = no
   server string = Samba
   security = ADS
   encrypt passwords = yes
   password server = activedirectory.domain.com
   domain master = no
   encrypt passwords = yes
   SO_KEEPALIVE TCP_NODELAY socket options = SO_RCVBUF = 8192 SO_SNDBUF
IPTOS_LOWDELAY = 8192
   dns proxy = yes
   log level = 3
   syslog = 0
   log file = / var / log / samba /% m
   max log size = 50
   winbind enum users = Yes
   winbind enum groups = Yes
   winbind use default domain = Yes
   winbind nested groups = Yes
   idmap uid = 600-20000
   idmap gid = 600-20000
   read raw = yes
   write raw = yes
   oplocks = yes
   max xmit = 65535
   getwd cache = yes
  * **kernel oplocks = no*

[share]
   comment = myshare
   path = /opt/data/
   public = no
   writable = yes
   browseable = yes
   create mask = 770
   directory mask = 770
   force create mode = 0770
   force group = group_quota


More information about the samba mailing list