[Samba] Performance problem executing programs from shares
Gerhard Vögel
gjv at 4consult.de
Mon Oct 21 23:21:50 GMT 2002
Hello,
recently I migrated 3 Netware 4.11 server to one Linux/Samba-box running on
Suse Enterprise Server 7. Everything seemed fine, until performance problems
were detected, especially when starting programs located on shares.
Samba is a domain member using an NT4 PDC for authentication. The current
samba version is 2.2.6 and the kernel is 2.4.19, but with 2.2.4 and 2.4.18
there was no difference.
Campared with another samba server configured as PDC (without ldap) on a much
smaller machine, startime of programs executed from shares is 3 to 4 times
slower, normal copies are faster.
I think I tried every parameter that could effect performance but had no
success. Increasing debug level to 4 produced a windbind log file with the
following lines:
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_uid_to_sid(173)
[30983]: uid to sid 10001
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_gid_to_sid(202)
[30983]: gid to sid 10002
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_gid_to_sid(202)
[30983]: gid to sid 10001
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_gid_to_sid(202)
[30983]: gid to sid 10005
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_gid_to_sid(202)
[30983]: gid to sid 10029
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_uid_to_sid(173)
[30983]: uid to sid 10001
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_gid_to_sid(202)
[30983]: gid to sid 10002
[2002/10/21 18:11:35, 3] nsswitch/winbindd_sid.c:winbindd_gid_to_sid(202)
[30983]: gid to sid 10001
From 18:11.35 till 18:12.03 there are 96400 lines, repeating almost always the
same gids. And thats only part of it, I already deleted a log with more than
4 MB zipped size, consisting only of those lines.
Since I have no more ideas, I hope anybody can give me a hint, what's causing
this problem.
Tank you
Gerhard
smb.conf
[global]
log file = /var/log/samba/log.%m
; max xmit = 16384
encrypt passwords = yes
server string = %L
netbios name = cdivw
workgroup = CDI
domain master = no
preferred master = no
local master = yes
security = domain
password server = *
client code page = 850
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind separator = +
; winbind cache time = 10
template homedir = /cifs/home/%D/%U
wins server = 172.31.1.50
wins support = no
guest account = nobody
socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT SO_SNDBUF=8192
SO_RCVBUF=8192
mangled stack = 1024
mangling method = hash2
debug level = 1
...
[Share]
valid users = @CDI+Share, at CDI+Domänen-Admins
force group = +CDI+Share
browseable = yes
create mode = 0660
directory mode = 770
writeable = yes
path = /cifs/common/Share
hide unreadable = yes
...
More information about the samba
mailing list