Gerhard Vögel
2002-Oct-21 23:21 UTC
[Samba] Performance problem executing programs from shares
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,@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 ...
Gerald (Jerry) Carter
2002-Oct-23 13:19 UTC
[Samba] Performance problem executing programs from shares
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Oct 2002, Gerhard V?gel wrote:> > 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:Can you try setting enum winbind [users|groups] = no This can make a large difference for domains with lots of users and groups. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE9tqDFIR7qMdg1EfYRAqZIAJ9b3rRUmKz+JC0gFv/GXNJPUhTr8gCfaGdH 37zeY7tRX23hWI6v7fsNHVs=Br+f -----END PGP SIGNATURE-----