Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] please help: smbd 100% cpu usage

0 views
Skip to first unread message

li...@mhcsoftware.de

unread,
Jun 18, 2004, 2:40:10 AM6/18/04
to
hi,

i've a problem with samba 3.0.2. there is one windows ME client which used
to work with out any problems. now, as soon as the user connects
(sharelevel: user, or share - i've tried both) on smbd is forked which
causes 90 to 100% cpu load. when i stop samba (smbd/nmbd) this proces does
not die i can only get rid of it whit a kill -9. with this no data can be
transfered from or to the win ME client.

this is what a level 2 log stats:

[2004/06/16 16:28:44, 2] smbd/reply.c:reply_special(105)
netbios connect: name1=LINUX name2=NORBERT
[2004/06/16 16:28:44, 2] smbd/reply.c:reply_special(112)
netbios connect: local=linux remote=norbert, name type = 0
[2004/06/16 16:28:44, 2] smbd/sesssetup.c:setup_new_vc_session(591)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2004/06/16 16:28:44, 2] auth/auth.c:check_ntlm_password(305)
check_ntlm_password: authentication for user [NORBERT] -> [NORBERT] ->
[norbert] succeeded
[2004/06/16 16:28:44, 1] smbd/service.c:make_connection_snum(705)
norbert (192.168.0.4) connect to service windows initially as user
norbert (uid=1000, gid=1000) (pid 10759)

and top shows:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10759 norbert 25 0 10856 3652 8924 R 99.2 0.7 0:18.22 smbd


any suggestions ?

TIA
--


Matthias Henze matt...@mhcsoftware.de

Use PGP!! http://www.mhcsoftware.de/MatthiasHenze.asc
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
MHC SoftWare GmbH voice: +49-(0)9533-92006-0
Fichtera 17 fax: +49-(0)9533-92006-6
96274 Itzgrund/Germany e-Mail: in...@mhcsoftware.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba

Jason C. Waters

unread,
Jun 18, 2004, 8:10:12 AM6/18/04
to
Set your log level to 10 and then send us the log for smbd and the
machine name. Maybe that will tell us something.

Jason

li...@mhcsoftware.de wrote:


--

li...@mhcsoftware.de

unread,
Jun 19, 2004, 8:20:07 AM6/19/04
to
so here we go, atatched (gziped - i tougt that it would be no good idea to
paste 180KB here) there is the level 10 log. the machine names are:

samba server: linux
windows ME: norbert

perhaps some can suggest a solution ...

TIA
matthias


--On Freitag, Juni 18, 2004 08:01:45 -0400 "Jason C. Waters"
<jwa...@h2os.com> wrote:

--


li...@mhcsoftware.de

unread,
Jun 20, 2004, 4:40:06 AM6/20/04
to
next try - as i was not able to post the level 10 log as a mail (180kb)
i've put it here: <http://www.mhcsoftware.de/smbprob.txt>

the machine names are:

samba server: linux
windows ME: norbert

perhaps some can suggest a solution ...

TIA
matthias


--On Freitag, Juni 18, 2004 08:01:45 -0400 "Jason C. Waters"
<jwa...@h2os.com> wrote:

--


Matthias Henze matt...@mhcsoftware.de

Use PGP!! http://www.mhcsoftware.de/MatthiasHenze.asc
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
MHC SoftWare GmbH voice: +49-(0)9533-92006-0
Fichtera 17 fax: +49-(0)9533-92006-6
96274 Itzgrund/Germany e-Mail: in...@mhcsoftware.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

--

Jason C. Waters

unread,
Jun 20, 2004, 9:40:07 AM6/20/04
to
That look like your nmbd. What about the log.norbert file and the
log.smbd. Try tail -n 500 filename, for each that will output the last
500 lines of the file. You don't keep your log level at 10 do you? If
you have a busy server this will peg your CPU.

Jason

li...@mhcsoftware.de wrote:

--

Matthias Spork

unread,
Jun 20, 2004, 1:00:10 PM6/20/04
to
Hello,

check out, if you have a group, who has more members then users on the
system.

matze

Jason C. Waters schrieb:

li...@mhcsoftware.de

unread,
Jun 20, 2004, 1:30:20 PM6/20/04
to
a unix group? a group with members where the users do not exist ?

--On Sonntag, Juni 20, 2004 18:52:24 +0200 Matthias Spork
<ha...@matthiasspork.de> wrote:

--


Matthias Henze matt...@mhcsoftware.de

Use PGP!! http://www.mhcsoftware.de/MatthiasHenze.asc
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
MHC SoftWare GmbH voice: +49-(0)9533-92006-0
Fichtera 17 fax: +49-(0)9533-92006-6
96274 Itzgrund/Germany e-Mail: in...@mhcsoftware.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

--

Matthias Spork

unread,
Jun 20, 2004, 1:50:04 PM6/20/04
to
li...@mhcsoftware.de schrieb:

> a unix group? a group with members where the users do not exist ?


Jep. I had this Problem in our LDAP-Tree. Every time I added a
domain-group to a local windows-group
Samba gets up to 99%. I heard, this Bug is solved in Samba 305.
matze

--

li...@mhcsoftware.de

unread,
Jun 20, 2004, 1:50:09 PM6/20/04
to
i've checked this, as there are only 2 users on the machine and only one of
them uses windows it was not too difficult :-) all users in /etc/group do
exist in /etc/passwd

--On Sonntag, Juni 20, 2004 19:39:45 +0200 Matthias Spork
<ha...@matthiasspork.de> wrote:

--


Matthias Henze matt...@mhcsoftware.de

Use PGP!! http://www.mhcsoftware.de/MatthiasHenze.asc
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
MHC SoftWare GmbH voice: +49-(0)9533-92006-0
Fichtera 17 fax: +49-(0)9533-92006-6
96274 Itzgrund/Germany e-Mail: in...@mhcsoftware.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

--

li...@mhcsoftware.de

unread,
Jun 20, 2004, 2:10:04 PM6/20/04
to
you are right ... as log.norber is quite large i've placed it here:
<http://www.mhcsoftware.de/log.norbert.txt>

log.smbd is mutch shorter:


[2004/06/20 19:44:02, 6] param/loadparm.c:lp_file_list_changed(2661)
lp_file_list_changed()
file /etc/samba/dhcp.conf -> /etc/samba/dhcp.conf last mod_time: Thu Jan
1 01:00:00 1970

file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Sun Jun
20 19:32:20 2004

[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_KEEPALIVE = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_REUSEADDR = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_BROADCAST = 0
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option TCP_NODELAY = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option IPTOS_LOWDELAY = 16
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option IPTOS_THROUGHPUT = 16
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDBUF = 8192
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVBUF = 8192
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDLOWAT = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVLOWAT = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDTIMEO = 0
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVTIMEO = 0
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_KEEPALIVE = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_REUSEADDR = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_BROADCAST = 0
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option TCP_NODELAY = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option IPTOS_LOWDELAY = 16
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option IPTOS_THROUGHPUT = 16
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDBUF = 8192
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVBUF = 8192
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDLOWAT = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVLOWAT = 1
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_SNDTIMEO = 0
[2004/06/20 19:44:02, 5] lib/util_sock.c:print_socket_options(105)
socket option SO_RCVTIMEO = 0
[2004/06/20 19:44:02, 5] lib/gencache.c:gencache_init(59)
Opening cache file at /var/run/samba/gencache.tdb
[2004/06/20 19:44:02, 5] libsmb/namecache.c:namecache_enable(58)
namecache_enable: enabling netbios namecache, timeout 660 seconds
[2004/06/20 19:44:02, 10] registry/reg_cachehook.c:reghook_cache_add(60)
reghook_cache_add: Adding key
[/HKLM/SYSTEM/CurrentControlSet/Control/Print]
[2004/06/20 19:44:02, 8] lib/adt_tree.c:sorted_tree_add(247)
sorted_tree_add: Enter
[2004/06/20 19:44:02, 10] lib/adt_tree.c:sorted_tree_add(314)
sorted_tree_add: Successfully added node
[HKLM/SYSTEM/CurrentControlSet/Control/Print] to tree
[2004/06/20 19:44:02, 8] lib/adt_tree.c:sorted_tree_add(316)
sorted_tree_add: Exit
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_context_list(602)
Trying to load: smbpasswd
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend ldapsam
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'ldapsam'
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend ldapsam_compat
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'ldapsam_compat'
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend smbpasswd
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'smbpasswd'
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend tdbsam
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'tdbsam'
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(93)
Attempting to register passdb backend guest
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:smb_register_passdb(106)
Successfully added passdb backend 'guest'
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_methods_name(498)
Attempting to find an passdb backend to match smbpasswd (smbpasswd)
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_methods_name(519)
Found pdb backend smbpasswd
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_methods_name(522)
pdb backend smbpasswd has a valid init
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_context_list(602)
Trying to load: guest
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_methods_name(498)
Attempting to find an passdb backend to match guest (guest)
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_methods_name(519)
Found pdb backend guest
[2004/06/20 19:44:02, 5] passdb/pdb_interface.c:make_pdb_methods_name(522)
pdb backend guest has a valid init

--On Sonntag, Juni 20, 2004 09:33:06 -0400 "Jason C. Waters"
<jwa...@h2os.com> wrote:

--


Matthias Henze matt...@mhcsoftware.de

Use PGP!! http://www.mhcsoftware.de/MatthiasHenze.asc
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
MHC SoftWare GmbH voice: +49-(0)9533-92006-0
Fichtera 17 fax: +49-(0)9533-92006-6
96274 Itzgrund/Germany e-Mail: in...@mhcsoftware.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

--

0 new messages