[Samba] Samba access slow
Jonathan Courtois
jonathan.courtois at gmail.com
Thu Feb 19 02:44:19 MST 2015
Hi everyone,
I configured a Samba serveur for a company, but it is quite slow to access
reading or writting files/directory and this slow the productivity of
everyone in the company. I might have missconfigure something, I will be
happy to have any advices.
I'm on a Debian Wheezy, Samba is installed on a LXC container also on
DEbian Wheezy. There is absolutly no Internet problem or speed issue, with
other services I have hightspeed service.
Some of my user access it via smb://ADDRESS (Mac) and other via Windows
\\ADDRESS
Here is smb.conf :
[global]
workgroup = WORKGROUP
server string = Controleur de domaine
netbios name = infrastructure
log level = 2
syslog = 0
log file = /var/log/samba/access.log
domain master = yes
local master = yes
domain logons = yes
client lanman auth = yes
client ntlmv2 auth = yes
lanman auth = yes
ntlm auth = yes
security = user
os level = 40
ldap ssl = off
ldap passwd sync = yes
passdb backend = ldapsam:ldap://192.168.1.3:389
ldap admin dn = uid=root,ou=Users,dc=imma,dc=fr
ldap suffix = dc=imma,dc=fr
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Machines
add user script = /usr/sbin/smbldap-useradd -m "%u"
ldap delete dn = yes
delete user script = /usr/sbin/smbldap-userdel "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
#delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
logon path = \\%L\profiles\%U
logon drive = P:
logon home = \\%L\%U
max xmit = 65535
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535
read raw = yes
write raw = yes
max connections = 65535
max open files = 65535
case sensitive = No
default case = lower
preserve case = yes
short preserve case = Yes
strict sync = no
sync always = no
#character set = iso8859-1
#domain admin group = @admin
dns proxy = No
wins support = Yes
winbind use default domain = Yes
nt acl support = Yes
msdfs root = Yes
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
# Desactiver printing
load printers = No
printable = No
printing = bsd
printcap name = /dev/null
# autre possibilité "veto files = "
#
# Reglage de l'encodage des caracteres :
unix charset = iso-8859-15
display charset = iso-8859-15
dos charset = 850
# Permissions
create mask = 0660
force create mode = 0660
security mask = 0660
force security mode = 0660
directory mask = 0770
force directory mode = 0770
directory security mask = 0770
force directory security mode = 0770
[netlogon]
path = /data/samba/home/imma/netlogon
writable = No
browseable = No
write list = Administrateur
#
[profiles]
path = /data/samba/home/imma/profiles
browseable = No
writeable = Yes
profile acls = yes
create mask = 0700
directory mask = 0700
# Show home folder
#[homes]
#comment = Repertoire Personnel
#browseable = No
#writeable = Yes
#
[01 Formation]
comment = Formation
path = /data/samba/01_Formation
read only = No
guest ok = No
browseable = Yes
writable = Yes
valid users = @"Domain Users"
#
Also on the "access.log" file I have numerouos line for each file access,
and even sometimes multiples lines for the same file. They look like this :
[2015/02/18 14:57:47.342247, 2] smbd/close.c:696(close_normal_file)
xxxx closed file Bybat HAR/._Planning projet Bybat HAR.xlsx (numopen=3)
NT_S$
[2015/02/18 14:57:47.423204, 2] smbd/open.c:746(open_file)
xxxx opened file Bybat HAR/._Planning projet Bybat HAR.xlsx read=Yes
write=N$
[2015/02/18 14:57:47.551210, 2] smbd/close.c:696(close_normal_file)
Thank you very much for your help, deeply appreciated.
John
More information about the samba
mailing list