High load smbd processes

Chris chris at ormond.unimelb.edu.au
Thu Apr 29 02:01:15 GMT 1999


Hi all,

Our system has just recently begun experiencing smbd processes comsuming
enormous amounts of cpu time.  I am totally unsure of the cause of this.

We are using samba version 2.0.0 (packaged for debian linux).  

seldon:~$ /usr/sbin/smbd -h
Usage: /usr/sbin/smbd [-D] [-p port] [-d debuglevel] [-l log basename] [-s services file]
Version 2.0.0

We have not recently upgraded the samba installation.

A strace of a smbd process, seems to indicate that it is in a continuous loop.
An extract from the strace is below.

The smb.conf file was checked with testparm and appears ok, but is also
included below.

Any help would be appreciated....and if more information is required please
contact me.


Best regards,


Chris Leishman




------ strace extract --------
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {60, 0})
read(7, "\0\0\0T", 4)                   = 4
read(7, "\377SMB\240\0\0\0\0\30\3\0{\200\0"..., 84) = 84
time(NULL)                              = 925292355
write(7, "\0\0\0#\377SMB\240\2\0\377\377\210"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {59, 990000})
read(7, "\0\0\0V", 4)                   = 4
read(7, "\377SMB2\0\0\0\0\30\3\0{\200\0\0"..., 86) = 86
time(NULL)                              = 925292355
stat("’›w", 0xbfffe51c)                = -1 ENOENT (No such file or directory)
stat("’›w", 0xbfffe51c)                = -1 ENOENT (No such file or directory)
stat(".", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK)          = 9
fcntl(9, F_SETFD, FD_CLOEXEC)           = 0
lseek(9, 0, SEEK_CUR)                   = 0
getdents(9, /* 55 entries */, 3933)     = 1124
lseek(9, 0, SEEK_CUR)                   = 1024
getdents(9, /* 13 entries */, 3933)     = 328
lseek(9, 0, SEEK_CUR)                   = 2048
getdents(9, /* 0 entries */, 3933)      = 0
close(9)                                = 0
stat("./", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
open("./", O_RDONLY|O_NONBLOCK)         = 9
fcntl(9, F_SETFD, FD_CLOEXEC)           = 0
lseek(9, 0, SEEK_CUR)                   = 0
getdents(9, /* 55 entries */, 3933)     = 1124
lseek(9, 0, SEEK_CUR)                   = 1024
getdents(9, /* 13 entries */, 3933)     = 328
lseek(9, 0, SEEK_CUR)                   = 2048
getdents(9, /* 0 entries */, 3933)      = 0
close(9)                                = 0
write(7, "\0\0\0#\377SMB2\1\0\2\0\210A\0\0"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {60, 0})
read(7, "\0\0\0T", 4)                   = 4
read(7, "\377SMB\240\0\0\0\0\30\3\0{\200\0"..., 84) = 84
time(NULL)                              = 925292355
write(7, "\0\0\0#\377SMB\240\2\0\377\377\210"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {60, 0})
read(7, "\0\0\0V", 4)                   = 4
read(7, "\377SMB2\0\0\0\0\30\3\0{\200\0\0"..., 86) = 86
time(NULL)                              = 925292355
stat("’›w", 0xbfffe51c)                = -1 ENOENT (No such file or directory)
stat("’›w", 0xbfffe51c)                = -1 ENOENT (No such file or directory)
stat(".", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK)          = 9
fcntl(9, F_SETFD, FD_CLOEXEC)           = 0
lseek(9, 0, SEEK_CUR)                   = 0
getdents(9, /* 55 entries */, 3933)     = 1124
lseek(9, 0, SEEK_CUR)                   = 1024
getdents(9, /* 13 entries */, 3933)     = 328
lseek(9, 0, SEEK_CUR)                   = 2048
getdents(9, /* 0 entries */, 3933)      = 0
close(9)                                = 0
stat("./", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
open("./", O_RDONLY|O_NONBLOCK)         = 9
fcntl(9, F_SETFD, FD_CLOEXEC)           = 0
lseek(9, 0, SEEK_CUR)                   = 0
getdents(9, /* 55 entries */, 3933)     = 1124
lseek(9, 0, SEEK_CUR)                   = 1024
getdents(9, /* 13 entries */, 3933)     = 328
lseek(9, 0, SEEK_CUR)                   = 2048
getdents(9, /* 0 entries */, 3933)      = 0
close(9)                                = 0
write(7, "\0\0\0#\377SMB2\1\0\2\0\210A\0\0"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {59, 990000})
read(7, "\0\0\0T", 4)                   = 4
read(7, "\377SMB\240\0\0\0\0\30\3\0{\200\0"..., 84) = 84
time(NULL)                              = 925292355
write(7, "\0\0\0#\377SMB\240\2\0\377\377\210"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {60, 0})
read(7, "\0\0\0V", 4)                   = 4
lseek(9, 0, SEEK_CUR)                   = 2048
getdents(9, /* 0 entries */, 3933)      = 0
close(9)                                = 0
write(7, "\0\0\0#\377SMB2\1\0\2\0\210A\0\0"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {60, 0})
read(7, "\0\0\0T", 4)                   = 4
read(7, "\377SMB\240\0\0\0\0\30\3\0{\200\0"..., 84) = 84
time(NULL)                              = 925292356
write(7, "\0\0\0#\377SMB\240\2\0\377\377\210"..., 39) = 39
select(9, [7 8], NULL, NULL, {60, 0})   = 1 (in [7], left {60, 0})
read(7, "\0\0\0V", 4)                   = 4
read(7, "\377SMB2\0\0\0\0\30\3\0{\200\0\0"..., 86) = 86
time(NULL)                              = 925292356
stat("’›w", 0xbfffe51c)                = -1 ENOENT (No such file or directory)
stat("’›w", 0xbfffe51c)                = -1 ENOENT (No such file or directory)


<repeats almost endlessly>
-------



---- smb.conf ----
;
; /etc/smb.conf
;

[global]
   printing = bsd
   printcap name = /etc/printcap.smb
   load printers = yes
   guest account = nobody
   invalid users = root
   security = user
   workgroup = STUDENT 
   server string = %h server
   socket options = TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
   update encrypted = no
   encrypt passwords = yes
   wins support = yes
   domain master = yes
   preferred master = yes
   domain logons = yes
   name resolve order = lmhosts host wins bcast
   dns proxy = no
   preserve case = yes
   short preserve case = yes
   unix password sync = true
   passwd program = /usr/bin/pam-apps/passwd %u
   passwd chat = *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n *Password\schanged.* .
   max log size = 1000
   password level = 8
   read prediction = True
   unix realname = no
   postscript = TRUE
   logon script = netlogon.bat


[homes]
   comment = Home Directories
   browseable = yes
   read only = no
   create mask = 0700
   directory mask = 0700

[netlogon]
   path = /boot/netlogon
   writeable = yes
   browseable = yes

[pc_progs]
   comment = PC Related Software
   path = /pub/pc_programs
   browseable = yes
   writeable = yes

[pub_docs]
   comment = Public Acces Directory
   path = /pub/documents
   browseable = yes
   writeable = yes

[software]
	comment = Downloadable software
	path = /pub/software
	browseable = yes
	writeable = yes
	create mode = 775

[submit]
   comment = Submissions Directory
   path = /pub/submissions
   browseable = yes
   writeable = yes
   create mode = 0700

[systemweb]
   comment = Web Directory
   path = /var/www
   browseable = yes
   writeable = yes
   valid users = caleishm, kymble
   force group = web

[gc]
   comment = Web Directory
   path = /pub/general_committee
   browseable = yes
   writeable = yes
   valid users = @gc
   force group = gc
   create mode = 770
   directory mode = 770

[mcrexec]
	comment = MCR Executive
	path = /pub/mcrexec
	browseable = yes
	writeable = yes
	valid users = @mcrexec
	force group = mcrexec
	create mode = 770
	directory mode = 770

[webpage]
   comment = Personal Web Page Directory
   path = %H/public_html
   browseable = yes
   writeable = yes
   create mode = 644

[quake]
   comment = Forget it
   valid users = @quake
   force group = quake
   create mode = 770
   directory mode = 770
   path = /home/quake/
   browseable = yes
   writeable = yes

[cdrom1]
   comment = SCSI CD-ROM 1
   path= /cdrom1
   locking = no
   browsable = yes
   writeable = no

[cdrom2]
   comment = SCSI CD-ROM 2
   path= /cdrom2
   locking = no
   browsable = yes
   writeable = no

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

-- 

----------------------------------------------------------------------
The box said "Windows 95, NT or better" .. so I installed Debian Linux
----------------------------------------------------------------------
Reply with subject 'request key' for PGP public key.  KeyID 0xA9E087D5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 464 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/19990429/8712a29d/attachment.bin


More information about the samba mailing list