[Samba] nmbd eats near of 40% of cpu with Samba 3.01

Jose Luis Rodriguez Garcia jose.l.rodriguez at getronics.com
Sat Jan 10 01:18:03 GMT 2004


My operating system is Solaris 8 SPARC and it runs Samba 3.0.1

Any suggestions?

I have included configuration/logs and traces.

This is the smb.conf file:


# Samba config file created using SWAT
# from 151.184.34.182 (151.184.34.182)
# Date: 2003/09/17 20:34:48

# Global parameters
[global]
        netbios name = dali
        workgroup = DALIUNIX
        passdb backend = tdbsam
        os level = 33
        preferred master = yes
        domain master = yes
        local master = yes
        security = user
        domain logons = Yes
        logon path = \\%N\profiles\%U
        logon drive = H:
        logon home = \\dali\%U\winprofile
        logon script = logon.cmd

        client lanman auth = No
        client plaintext auth = No
#       log level = 10
        add user script = /usr/local/custom-sbin/useradd %u
        delete user script = /usr/sbin/userdel %u
        add group script = /usr/bin/ksh /usr/local/custom-sbin/groupadd
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/bin/ksh 
/usr/local/custom-sbin/add_user_
to_group %u %g
        delete user from group script = /usr/bin/ksh 
/usr/local/custom-sbin/dele
te_user_from_group %u %g
        set primary group script = /usr/sbin/usermod -g '%g' '%u'
        wins server = 151.184.80.50
        ldap ssl = no
        admin users = root, jlrgarcia

[proyectos]
        comment = Share para proyectos
        path = /disco01/proyectos
        read only = No

[netlogon]
        path=/disco01/netlogon
        read only = yes
        write list = ntadmin

[profiles]
        path=/disco01/profiles
        read only = no
        create mask = 0600
        directory mask = 0700
#


I don't see any special on the log file of nmbd (the last lines):


[2004/01/12 14:44:38, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x12
[2004/01/12 14:49:17, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x7
[2004/01/12 15:01:18, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x7
[2004/01/12 15:13:19, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x7
[2004/01/12 15:14:39, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x12
[2004/01/12 15:25:20, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x7
[2004/01/12 15:37:20, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x7
[2004/01/12 15:49:21, 1] nmbd/nmbd_processlogon.c:process_logon_packet(95)
  process_logon_packet: Logon from 151.184.34.194: code = 0x7


I have done this trace of nmbd for a few seconds: truss -d -p pid-nmbd, 
and I obtain this trace:

Base time stamp:  1073918670.1997  [ Mon Jan 12 15:44:30 MET 2004 ]
 0.0273 poll(0xFFBED498, 5, 10000)                      = 1
 0.0279 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.0283 recvfrom(7, "8DF60110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.0288 time()                                          = 1073918670
 0.0765 time()                                          = 1073918670
 0.0769 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.0772 poll(0xFFBED498, 5, 10000)                      = 1
 0.0775 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.0778 recvfrom(7, "DB j0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.0782 time()                                          = 1073918670
 0.1251 time()                                          = 1073918670
 0.1255 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.2127 poll(0xFFBED498, 5, 10000)                      = 1
 0.2131 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.2135 recvfrom(7, "C6\n0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.2140 time()                                          = 1073918670
 0.2600 time()                                          = 1073918670
 0.2603 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.2693 poll(0xFFBED498, 5, 10000)                      = 1
 0.2697 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.2700 recvfrom(7, "C1C20110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.2706 time()                                          = 1073918670
 0.3166 time()                                          = 1073918670
 0.3169 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.3172 poll(0xFFBED498, 5, 10000)                      = 1
 0.3175 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.3178 recvfrom(7, "9EE80110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.3183 time()                                          = 1073918670
 0.3650 time()                                          = 1073918670
 0.3653 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.4758 poll(0xFFBED498, 5, 10000)                      = 1
 0.4763 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.4766 recvfrom(7, "8BF00110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.4771 time()                                          = 1073918670
 0.5236 time()                                          = 1073918670
 0.5239 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.7220 poll(0xFFBED498, 5, 10000)                      = 1
 0.7224 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.7228 recvfrom(7, "C0820110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.7232 time()                                          = 1073918670
 0.7695 time()                                          = 1073918670
 0.7698 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.7778 poll(0xFFBED498, 5, 10000)                      = 1
 0.7781 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.7784 recvfrom(7, "8DF60110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.7846 time()                                          = 1073918670
 0.8495 time()                                          = 1073918671
 0.8499 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.8503 poll(0xFFBED498, 5, 10000)                      = 1
 0.8506 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.8510 recvfrom(7, "CA1A0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.8515 time()                                          = 1073918671
 0.8982 time()                                          = 1073918671
 0.8985 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.8988 poll(0xFFBED498, 5, 10000)                      = 1
 0.8991 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.8994 recvfrom(7, "DB l0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.8999 time()                                          = 1073918671
 0.9469 time()                                          = 1073918671
 0.9472 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 0.9638 poll(0xFFBED498, 5, 10000)                      = 1
 0.9641 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 0.9644 recvfrom(7, "C6\n0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 0.9648 time()                                          = 1073918671
 1.0130 time()                                          = 1073918671
 1.0133 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.0205 poll(0xFFBED498, 5, 10000)                      = 1
 1.0208 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.0211 recvfrom(7, "C1C20110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.0216 time()                                          = 1073918671
 1.0678 time()                                          = 1073918671
 1.0681 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.2605 poll(0xFFBED498, 5, 10000)                      = 1
 1.2610 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.2613 recvfrom(7, "8BF00110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.2618 time()                                          = 1073918671
 1.3189 time()                                          = 1073918671
 1.3193 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.4732 poll(0xFFBED498, 5, 10000)                      = 1
 1.4737 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.4740 recvfrom(7, "C0820110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.4745 time()                                          = 1073918671
 1.5217 time()                                          = 1073918671
 1.5221 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.5281 poll(0xFFBED498, 5, 10000)                      = 1
 1.5284 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.5288 recvfrom(7, "8DF60110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.5292 time()                                          = 1073918671
 1.5760 time()                                          = 1073918671
 1.5763 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.5766 poll(0xFFBED498, 5, 10000)                      = 1
 1.5769 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.5772 recvfrom(7, "CA1A0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.5777 time()                                          = 1073918671
 1.6649 time()                                          = 1073918671
 1.6653 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.6657 poll(0xFFBED498, 5, 10000)                      = 1
 1.6660 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.6663 recvfrom(7, "DB l0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.6668 time()                                          = 1073918671
 1.7538 time()                                          = 1073918671
 1.7542 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.7545 poll(0xFFBED498, 5, 10000)                      = 1
 1.7548 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.7552 recvfrom(7, "C6\n0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.7556 time()                                          = 1073918671
 1.8020 time()                                          = 1073918671
 1.8024 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
1.8027 poll(0xFFBED498, 5, 10000)                      = 1
 1.8030 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.8033 recvfrom(7, "C1C20110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.8037 time()                                          = 1073918671
 1.8594 time()                                          = 1073918672
 1.8597 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 1.9780 poll(0xFFBED498, 5, 10000)                      = 1
 1.9785 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 1.9788 recvfrom(7, "8BF00110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 1.9793 time()                                          = 1073918672
 2.0256 time()                                          = 1073918672
 2.0260 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 2.2243 poll(0xFFBED498, 5, 10000)                      = 1
 2.2247 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 2.2250 recvfrom(7, "C0820110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 2.2255 time()                                          = 1073918672
 2.2728 time()                                          = 1073918672
 2.2731 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 2.3216 poll(0xFFBED498, 5, 10000)                      = 1
 2.3220 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 2.3223 recvfrom(7, "CA1A0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 2.3228 time()                                          = 1073918672
 2.3685 time()                                          = 1073918672
 2.3688 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 2.3691 poll(0xFFBED498, 5, 10000)                      = 1
 2.3694 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 2.3697 recvfrom(7, "DB l0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 2.3702 time()                                          = 1073918672
 2.4164 time()                                          = 1073918672
 2.4167 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 2.4860 poll(0xFFBED498, 5, 10000)                      = 1
 2.4864 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 2.4867 recvfrom(7, "C6\f0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 2.4872 time()                                          = 1073918672
 2.5330 time()                                          = 1073918672
 2.5333 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 2.5527 poll(0xFFBED498, 5, 10000)                      = 1
 2.5532 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 2.5535 recvfrom(7, "C1C40110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 2.5540 time()                                          = 1073918672
 2.6409 time()                                          = 1073918672
 2.6413 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 2.9953 poll(0xFFBED498, 5, 10000)                      = 1
 2.9957 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 2.9961 recvfrom(7, "C0840110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 2.9966 time()                                          = 1073918673
 3.0431 time()                                          = 1073918673
 3.0434 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.2371 poll(0xFFBED498, 5, 10000)                      = 1
 3.2375 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.2379 recvfrom(7, "C6\f0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.2384 time()                                          = 1073918673
 3.2856 so_socket(2, 1, 0, "", 1)                       = 15
 3.2861 ioctl(15, 0xC0086914, 0xFFBEE948)               = 0
 3.2866 ioctl(15, 0xC020690D, 0xFFBEC968)               = 0
 3.2870 ioctl(15, 0xC0206911, 0xFFBEC968)               = 0
 3.2874 ioctl(15, 0xC0206919, 0xFFBEC968)               = 0
 3.2878 ioctl(15, 0xC020690D, 0xFFBEC948)               = 0
 3.2882 ioctl(15, 0xC0206911, 0xFFBEC948)               = 0
 3.2886 ioctl(15, 0xC0206919, 0xFFBEC948)               = 0
 3.2890 close(15)                                       = 0
 3.2892 time()                                          = 1073918673
 3.2895 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.2898 poll(0xFFBED498, 5, 10000)                      = 1
 3.2901 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.2905 recvfrom(8, "110E82 L97B8 !BC\08A\0BB".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 201
 3.2910 time()                                          = 1073918673
 3.2914 fcntl(14, F_SETLKW64, 0xFFBEEFD0)               = 0
 3.2918 fcntl(14, F_SETLKW64, 0xFFBEEF40)               = 0
 3.2921 fcntl(14, F_SETLKW64, 0xFFBEEF40)               = 0
 3.2924 fcntl(14, F_SETLKW64, 0xFFBEEFD0)               = 0
 3.3387 time()                                          = 1073918673
 3.3390 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.3393 poll(0xFFBED498, 5, 10000)                      = 1
 3.3396 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.3400 recvfrom(7, "CA1C0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.3405 time()                                          = 1073918673
 3.3858 time()                                          = 1073918673
 3.3861 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.3864 poll(0xFFBED498, 5, 10000)                      = 1
 3.3867 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.3870 recvfrom(7, "C1C40110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.3875 time()                                          = 1073918673
 3.4340 time()                                          = 1073918673
 3.4343 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.4346 poll(0xFFBED498, 5, 10000)                      = 1
 3.4349 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.4352 recvfrom(7, "DB n0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.4357 time()                                          = 1073918673
 3.4824 time()                                          = 1073918673
 3.4827 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.7464 poll(0xFFBED498, 5, 10000)                      = 1
 3.7469 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.7472 recvfrom(7, "C0840110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.7477 time()                                          = 1073918673
 3.7938 time()                                          = 1073918673
 3.7941 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.8028 poll(0xFFBED498, 5, 10000)                      = 1
 3.8032 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.8035 recvfrom(7, "9EEC0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.8040 time()                                          = 1073918673
 3.8493 time()                                          = 1073918674
 3.8496 sigprocmask(SIG_UNBLOCK, 0xFFBEF590, 0x00000000) = 0
 3.9882 poll(0xFFBED498, 5, 10000)                      = 1
 3.9886 sigprocmask(SIG_BLOCK, 0xFFBEF590, 0x00000000)  = 0
 3.9890 recvfrom(7, "C6\f0110\001\0\0\0\0\0\0".., 576, 0, 0xFFBEF2D8, 
0xFFBEF2D0
) = 50
 3.9894 time()                                          = 1073918674




More information about the samba mailing list