Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Bug#513635: nss-ldap timeout=0 by default caused nscd 100%..

 
   Soft32 Home -> Linux -> Glibc RSS
Next:  Accepted xdotool 20090330-1 (source i386)  
Author Message
Douglas E. Engert

External


Since: Mar 31, 2009
Posts: 1



(Msg. 1) Posted: Tue Mar 31, 2009 1:20 pm
Post subject: Bug#513635: nss-ldap timeout=0 by default caused nscd 100% cpu loop
Archived from groups: linux>debian>bugs>dist, others (more info?)

We too have seen this behavior with Ubuntu Hardy and Intrepid
but may be seeing multiple problems.

There is an issue with the /etc/ldap.conf file. This has the comment:

# Search timelimit
#timelimit 30

But the default in the nss-ldap code is NO_LIMIT! We are now testing by
uncommenting this line.

We have seen this on more then one machine. One nscd worker thread
will call nss-ldap and it will then call ldap_result with a 0 timelimit.
ldap_result calls ldap_int_select that call poll. netstat -n | grep tcp
shows connection with CLOSE_WAIT. This thread holds a nss_ldap lock, so
with all the other threads are waiting for it at _nss_ldap_enter, thus
no worker threads are doing any work.

As new request are received by nscd, it will do the accept and queue them
for a worker thread. Each request uses an fd.

As each caller to nscd does not get a response, it times out seconds) and
appears to do its own ldap query so things sort of work but slowly. The used
fd count (/proc/<nscd-pid>/fd) continues to rise. Eventually nscd runs out
of fds, and goes in to the 100% cpu loop trying to do accepts.

So there appears to be three separate problems:
(1) timelimit = 0 is default in nss-ldap but /etc/ldap.conf implies it is 30

(2) ldap wait4msg does not recognize the connection is in CLOSED_WAIT
even with timeout = LDAP_NO_LIMIT

(3) nscd will accept requests (i.e. each using a FD)
and queue them for the worker threads until it runs out of FD's,
rather then not accepting new requests. It makes no allowance for
the fact the worker threads may also need to open files or sockets
too.

--

Douglas E. Engert <DEEngert.TakeThisOut@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] NSS + LDAP: My nscd daemon dies periodically - Hi my nscd daemon dies periodically and I don't know what is happening... any suggestion? (nss_ldap: failed to bind to...

nscd dies periodically - We have a series of Redhat Enterprise 3 AS machines. All of these machine authenticate using LDAP. The problem is, th...

[Samba] nscd dies - Fellow Sambanistas, Samba using ldapsam is working beautifully. I also have pam_ldap/nss_ldap working for users and..

[Samba] Problems with Openldap and nscd - The problem description below is relevant for those who use samba + LDAP. We installed four Intel Xeon servers with..

[gentoo-user] nscd won't start nor stop - Just for the record: I noticed that nscd will neither start nor stop with the current baselayout (/etc/init.d/nscd is a...

[gentoo-user] Nscd dies without reason - Hi, my system is configured to have a ldap based authentication. I put "bind_policy soft" on /etc/ldap.con...
       Soft32 Home -> Linux -> Glibc All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]