[Samba] Please help: Re: Samba 2.0.6-3 (productive env.) slow down dramticaly
, rvmo1018 (192.168.1.54) closed..., 64) = 64 2419 time(NULL)= 1095364795 2419 geteuid32() = 0 2419 write(27, [2004/09/16 21:59:55, 3] smbd/co..., 64) = 64 2419 geteuid32() = 0 2419 write(27, Yielding connection to NETLOGO..., 34) = 34 2419 fcntl64(10, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=352, len=1}, 0xb170) = 0 2419 fcntl64(10, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=1944, len=1}, 0xb160) = 0 2419 fcntl64(10, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=1944, len=1}, 0xb160) = 0 2419 fcntl64(10, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=164, len=1}, 0xb0d0) = 0 2419 fcntl64(10, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=164, len=1}, 0xb0d0) = 0 2419 fcntl64(10, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=352, len=1}, 0xb1b0) = 0 2419 chdir(/)= 0 2419 time(NULL)= 1095364795 2419 geteuid32() = 0 2419 write(27, [2004/09/16 21:59:55, 3] smbd/se..., 57) = 57 2419 geteuid32() = 0 2419 write(27, setting sec ctx (0, 0) - sec_c..., 49) = 49 2419 geteuid32() = 0 2419 getegid32() = 0 2419 setgroups32(0, 0) = 0 2419 setresgid32(0x, 0, 0x) = 0 2419 getegid32() = 0 2419 setresuid32(0, 0, 0x) = 0 2419 geteuid32() = 0 2419 fcntl64(9, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=332, len=1}, 0xb480) = 0 2419 fcntl64(9, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=332, len=1}, 0xb4c0) = 0 2419 fcntl64(9, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=332, len=1}, 0xb480) = 0 2419 fcntl64(9, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=696, len=1}, 0xb470) = 0 2419 fcntl64(9, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=696, len=1}, 0xb470) = 0 2419 fcntl64(9, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=164, len=1}, 0xb3e0) = 0 2419 fcntl64(9, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=164, len=1}, 0xb3e0) = 0 2419 fcntl64(9, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=332, len=1}, 0xb4c0) = 0 2419 time(NULL)= 1095364795 2419 geteuid32() = 0 2419 write(27, [2004/09/16 21:59:55, 3] smbd/co..., 64) = 64 2419 geteuid32() = 0 2419 write(27, Yielding connection to \n, 26) = 26 2419 fcntl64(10, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=340, len=1}, 0xb9d0) = 0 2419 fcntl64(10, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=340, len=1}, 0xb9d0) = 0 2419 time(NULL)= 1095364795 2419 geteuid32() = 0 2419 write(27, [2004/09/16 21:59:55, 3] smbd/co..., 64) = 64 2419 geteuid32() = 0 2419 write(27, yield_connection: tdb_delete f..., 82) = 82 2419 time(NULL)= 1095364795 2419 select(25, [20 24], NULL, NULL, {0, 1000}) = 0 (Timeout) 2419 munmap(0x40501000, 696) = 0 2419 close(11) = 0 2419 munmap(0x40554000, 8192) = 0 2419 close(12) = 0 2419 time(NULL)= 1095364795 2419 geteuid32() = 0 2419 write(27, [2004/09/16 21:59:55, 3] smbd/se..., 56) = 56 2419 geteuid32() = 0 2419 write(27, Server exit (normal exit)\n, 28) = 28 2419 semget(IPC_PRIVATE, 0, 0) = -1 ENOSYS (Function not implemented) 2419 _exit(0) = ? The tcpdump is attached to this mail. Heiko Boeringer wrote: Hello together, since today morning I have an massive performance issue with samba 2.0.6-3 (Debian - Testing-Tree) in my samba production environment. Samba responds very slowly within the logon process (2-3 Minutes for each line in the netlogon.cmd). Later during normal operations opening from files works very slowly and often breaks connection. There is no cpu or memory load on the system. Also the network traffic is low. The network connections between the server and the clients is fine. FTP Transfer works with high speed. The last thing I´ve done is to install the nagios-mysql package (debian, unstable tree). But I´m not sure if there are dependencies. I do all the things from DIAGNOSIS.TXT and many others - but I have no mor idea where ! Does anybody has an idea what´s going wrong here. I have atteched a the log.smbd, log.nmdd and from an machine - showing the logon process . Hope that helps by analyzing the issue. Here some informations regarding the system. I would be very thankful for all help support regards, Heiko Systemconfiguration - Debian 3.0 (Woody) - Samba with an the samba3.0.6-3.deb from the testing tree (but happends with all other
[Samba] Samba 2.0.6-3 (productive env.) slow down dramticaly
Hello together, since today morning I have an massive performance issue with samba 2.0.6-3 (Debian - Testing-Tree) in my samba production environment. Samba responds very slowly within the logon process (2-3 Minutes for each line in the netlogon.cmd). Later during normal operations opening from files works very slowly and often breaks connection. There is no cpu or memory load on the system. Also the network traffic is low. The network connections between the server and the clients is fine. FTP Transfer works with high speed. The last thing I´ve done is to install the nagios-mysql package (debian, unstable tree). But I´m not sure if there are dependencies. I do all the things from DIAGNOSIS.TXT and many others - but I have no mor idea where to look! Does anybody has an idea what´s going wrong here. I have atteched a the log.smbd, log.nmdd and from an machine - showing the logon process . Hope that helps by analyzing the issue. Here some informations regarding the system. I would be very thankful for all help support regards, Heiko Systemconfiguration - Debian 3.0 (Woody) - Samba with an the samba3.0.6-3.deb from the testing tree (but happends with all other versions too) - Configured als PDC with SMBPASSWD Authentification (no windbind, kerberos, ldap..) - Client: Windows XP Germany, SP1 TOP (means the machine hs nothing to do) # 99 processes: 98 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.4% user, 0.4% system, 0.0% nice, 99.2% idle Mem:516100K total, 510616K used, 5484K free,69040K buffers Swap: 385552K total, 1652K used, 383900K free, 376280K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 7181 netinsta 16 0 3620 3616 3268 S 0.3 0.7 0:00 smbd 235 root 10 0 592 592 512 S 0.1 0.1 1:37 syslogd 7035 root 12 0 1028 1028 804 R 0.1 0.1 0:00 top 1 root 8 0 496 492 448 S 0.0 0.0 0:00 init SMB.CONF [global] unix charset = ISO8859-1 display charset = ISO8859-1 workgroup = RVMO.DE server string = %h obey pam restrictions = Yes # unix password sync = false # encrypt passwords = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . #For verbose debug: 10 #For Standard logging: 3 log level = 3 syslog = 3 # End logging section log file = /var/log/samba/log.%m max log size = 1000 logon script = netlogon.cmd logon path = logon drive = L: logon home = domain logons = Yes # wins support = Yes os level = 40 preferred master = Yes domain master = Yes dns proxy = No ldap ssl = no panic action = /usr/share/samba/panic-action %d idmap uid = 100-2 idmap gid = 100-2 admin users = @smb-o-admin-it hosts allow = 127.0.0.1, 192.168.1.0/255.255.0.0 printing = cups printer admin = @smb-o-basisarbeitsplatz printcap name = /etc/printcap.cups # print command = lpr-cups -P %p -o raw %s -r load printers = Yes use client driver = No [print$] comment = Samba printer drivers path = /home/samba/print valid users = +smb-o-basisarbeitsplatz admin users = @smb-o-admin-it read list = @smb-o-basisarbeitsplatz write list = @smb-o-admin-it force user = nobody force group = nogroup # guest ok = Yes writeable = Yes [printers] comment = All Printers path = /var/spool/samba valid users = +smb-o-basisarbeitsplatz admin users = @smb-o-admin-it read list = @smb-o-basisarbeitsplatz write list = @smb-o-basisarbeitsplatz force user = nobody force group = nogroup printer admin = @smb-o-basisarbeitsplatz create mask = 0700 printable = Yes browsable = Yes public= Yes guest ok = Yes writeable = Yes [homes] comment = Home Directories read only = No create mask = 0700 directory mask = 0700 browseable = No csc policy = disable [NETLOGON] comment = NETLOGON auf LX2-RVMO-02 path = /home/netlogon admin users = @smb-o-admin-it write list = @smb-o-admin-it force user = root force group = smb-o-admin-it guest ok = Yes csc policy = disable here comes an syslog extract from an example filetransfer (copying from \\server\public to local desktop. Transfer ends with windows message
[Samba] Re: Samba 2.0.6-3 (productive env.) slow down dramticaly
20:49:53 lx2-rvmo-02 smbd[8410]: se_access_check: also S-1-5-21-29628934-819234659-1421906636-2083 Sep 15 20:49:53 lx2-rvmo-02 smbd[8410]: se_access_check: also S-1-5-21-29628934-819234659-1421906636-5075 Sep 15 20:49:53 lx2-rvmo-02 smbd[8410]: [2004/09/15 20:49:53, 5] lib/util_seaccess.c:se_access_check(309) Sep 15 20:49:53 lx2-rvmo-02 smbd[8410]: se_access_check: access (1) granted. Sep 15 20:49:53 lx2-rvmo-02 smbd[4125]: [2004/09/15 20:49:53, 3] smbd/server.c:exit_server(614) Sep 15 20:49:53 lx2-rvmo-02 smbd[8410]: [2004/09/15 20:49:53, 5] lib/username.c:user_in_netgroup_list(315) Sep 15 20:49:53 lx2-rvmo-02 smbd[4125]: Server exit (normal exit) Sep 15 20:49:53 lx2-rvmo-02 smbd[8410]: Unable to get default yp domain Heiko Boeringer wrote: Hello together, since today morning I have an massive performance issue with samba 2.0.6-3 (Debian - Testing-Tree) in my samba production environment. Samba responds very slowly within the logon process (2-3 Minutes for each line in the netlogon.cmd). Later during normal operations opening from files works very slowly and often breaks connection. There is no cpu or memory load on the system. Also the network traffic is low. The network connections between the server and the clients is fine. FTP Transfer works with high speed. The last thing I´ve done is to install the nagios-mysql package (debian, unstable tree). But I´m not sure if there are dependencies. I do all the things from DIAGNOSIS.TXT and many others - but I have no mor idea where to look! Does anybody has an idea what´s going wrong here. I have atteched a the log.smbd, log.nmdd and from an machine - showing the logon process . Hope that helps by analyzing the issue. Here some informations regarding the system. I would be very thankful for all help support regards, Heiko Systemconfiguration - Debian 3.0 (Woody) - Samba with an the samba3.0.6-3.deb from the testing tree (but happends with all other versions too) - Configured als PDC with SMBPASSWD Authentification (no windbind, kerberos, ldap..) - Client: Windows XP Germany, SP1 TOP (means the machine hs nothing to do) # 99 processes: 98 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.4% user, 0.4% system, 0.0% nice, 99.2% idle Mem:516100K total, 510616K used, 5484K free,69040K buffers Swap: 385552K total, 1652K used, 383900K free, 376280K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 7181 netinsta 16 0 3620 3616 3268 S 0.3 0.7 0:00 smbd 235 root 10 0 592 592 512 S 0.1 0.1 1:37 syslogd 7035 root 12 0 1028 1028 804 R 0.1 0.1 0:00 top 1 root 8 0 496 492 448 S 0.0 0.0 0:00 init SMB.CONF [global] unix charset = ISO8859-1 display charset = ISO8859-1 workgroup = RVMO.DE server string = %h obey pam restrictions = Yes # unix password sync = false # encrypt passwords = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . #For verbose debug: 10 #For Standard logging: 3 log level = 3 syslog = 3 # End logging section log file = /var/log/samba/log.%m max log size = 1000 logon script = netlogon.cmd logon path = logon drive = L: logon home = domain logons = Yes # wins support = Yes os level = 40 preferred master = Yes domain master = Yes dns proxy = No ldap ssl = no panic action = /usr/share/samba/panic-action %d idmap uid = 100-2 idmap gid = 100-2 admin users = @smb-o-admin-it hosts allow = 127.0.0.1, 192.168.1.0/255.255.0.0 printing = cups printer admin = @smb-o-basisarbeitsplatz printcap name = /etc/printcap.cups # print command = lpr-cups -P %p -o raw %s -r load printers = Yes use client driver = No [print$] comment = Samba printer drivers path = /home/samba/print valid users = +smb-o-basisarbeitsplatz admin users = @smb-o-admin-it read list = @smb-o-basisarbeitsplatz write list = @smb-o-admin-it force user = nobody force group = nogroup # guest ok = Yes writeable = Yes [printers] comment = All Printers path = /var/spool/samba valid users = +smb-o-basisarbeitsplatz admin users = @smb-o-admin-it read list = @smb-o-basisarbeitsplatz write list = @smb-o-basisarbeitsplatz force user = nobody force group = nogroup printer admin = @smb-o-basisarbeitsplatz create mask = 0700
Re: [Samba] Solved! - Samba 3.0.x and high processor utilication caused by /etc/passwd access
Andrew, thanks for this hot tip! Works fine. Since deleting one non-existent user from /etc/group I have fixed two issues: - High processor utilization - Slow network logons with some users (all users which are included in the affected group) Now I feel better ;-) regards, Heiko On Fri, 2004-07-30 at 09:04, Heiko Boeringer wrote: Jeremy, seems not to help. I have disabled nscd with /etc/init.d/nscd stop but the situation keeps unchanged. A few minutes after stopping and starting samba I have the same situation. Here is may nsswitch.conf. What should I change in it? Do you have any other idea? There is an issue (fixed in SVN?) when we have a group, with a member that does not 'exist'. Check that all your group members are valid accounts. Andrew Bartlett -- Andrew Bartlett [EMAIL PROTECTED] Authentication Developer, Samba Team http://samba.org Student Network Administrator, Hawker College [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.0.x and high processor utilication caused by /etc/passwd access
Jeremy, seems not to help. I have disabled nscd with /etc/init.d/nscd stop but the situation keeps unchanged. A few minutes after stopping and starting samba I have the same situation. Here is may nsswitch.conf. What should I change in it? Do you have any other idea? regads, Heiko /etc/nsswitch.conf ## passwd: compat group: compat shadow: compat hosts: files dns networks: files protocols: db files services: db files ethers: db files rpc:db files netgroup: nis Jeremy Allison wrote: On Thu, Jul 29, 2004 at 08:18:22PM +0200, Böringer, Heiko wrote: Hello together, since upgrading on samba 3.0.x (issue happens with all 3.0. release) the cpu-load on my samba PDC ist constantly near 100%. The cpu power ist consumed by all running smb-processes. Systrace shows me that the smb processes tried to access to /etc/passwd on a permanent basis. My question is: Why tries samba to access etc/passwd so often and produces this high cpu-load? Regards, Heiko Böringer Rights for smbpasswd are set as following -rw-r--r--1 root root 5540 Jul 27 15:15 passwd Systemconfiguration - Debian 3.0 (Woddy) - Samba with an the samba3.0.5.deb from the unstable tree (but happends with all other versions too) - Configured als PDC with SMBPASSWD Authentification (no windbind, kerberos, ldap..) TOP shows the following PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 19094 nobody18 0 3872 3872 3440 R 8.7 0.7 43:22 smbd 5213 nobody18 0 3784 3784 3400 R 8.7 0.7 29:43 smbd 9345 nobody17 0 4100 4100 3628 R 8.7 0.7 29:24 smbd 10237 nobody19 0 3772 3772 3400 R 8.7 0.7 29:06 smbd 17121 nobody17 0 4140 4140 3632 R 8.7 0.8 28:02 smbd 20776 nobody18 0 3668 3668 3324 R 8.7 0.7 27:48 smbd 17915 nobody18 0 3768 3768 3388 R 8.7 0.7 46:35 smbd 18441 nobody17 0 4128 4128 3640 R 8.5 0.7 45:16 smbd 25605 nobody18 0 3784 3784 3400 R 8.5 0.7 6:38 smbd 1065 root 16 0 5504 5504 3928 R 7.1 1.0 0:59 smbd 28475 root 9 0 4280 4280 3700 S 0.3 0.8 0:02 smbd Systrace on one of the smbd processes shows the following: open(/etc/passwd, O_RDONLY) = 26 fcntl64(26, F_GETFD)= 0 fcntl64(26, F_SETFD, FD_CLOEXEC)= 0 _llseek(26, 0, [0], SEEK_CUR) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 mmap2(NULL, 5540, PROT_READ, MAP_SHARED, 26, 0) = 0x4051 _llseek(26, 5540, [5540], SEEK_SET) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 munmap(0x4051, 5540)= 0 close(26) = 0 open(/etc/passwd, O_RDONLY) = 26 fcntl64(26, F_GETFD)= 0 fcntl64(26, F_SETFD, FD_CLOEXEC)= 0 _llseek(26, 0, [0], SEEK_CUR) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 mmap2(NULL, 5540, PROT_READ, MAP_SHARED, 26, 0) = 0x4051 _llseek(26, 5540, [5540], SEEK_SET) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 munmap(0x4051, 5540)= 0 close(26) = 0 open(/etc/passwd, O_RDONLY) = 26 fcntl64(26, F_GETFD)= 0 fcntl64(26, F_SETFD, FD_CLOEXEC)= 0 _llseek(26, 0, [0], SEEK_CUR) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 mmap2(NULL, 5540, PROT_READ, MAP_SHARED, 26, 0) = 0x4051 _llseek(26, 5540, [5540], SEEK_SET) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 munmap(0x4051, 5540)= 0 close(26) = 0 socket(PF_UNIX, SOCK_STREAM, 0) = 26 connect(26, {sin_family=AF_UNIX, path=/var/run/.nscd_socket}, 110) = -1 ECONNREFUSED (Connection refused) close(26) = 0 Looks like a nsswitch bug whilst talking to nscd. Turn off nscd from nsswitch.conf and see if the problem still occurs. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba