CPU usage of Processes when authenticating against Ldap on Rehat Enterprise 4 with MP
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
CPU usage of Processes when authenticating against Ldap on Rehat Enterprise 4 with MP
Hi,
we changed some Redhat Enterprise Multiprocessor Workstations to authenticate against Active Directory LDAP with OpenLDAP client (not samba with winbind).
Login works fine but we ran in strange problems.
Note: These problems don't appear with Redhat Enterprise 3 (Kernel 2.4) or with Enterprise 4 (Kernel 2.6) booted with Single Processor kernel, only kernel 2.6 Multiprocessor with ldap authenticated user (not local user).
When authenticated against ldap (console or graphic, no difference) and starting a program (process), some background processes which idled before grab the whole cpu time. These are not only processes of this user but also of other ldap authenticated users. System is running at it's limit then. When killing the initial process the system becomes reusable and processes idle again.
Running nscd service does not change behaviour.
We don't know if it's a kernel or a ldap problem or something else.
Anyone has a clue for this strange behaviour?
Regards,
Peter
Last edited by VioletRain; 12-02-2005 at 04:15 AM.
I am getting a similar problem with RHEL5. We have RHEL5 running with an x86_64 kernel on dual xeons (dual core, 4 cores total). Same kind of setup: pam_ldap and nss_ldap, not samba or winbind, with AD servers.
Basically, what happens is if I do some operation that requires the directory, I see nscd go up to 100% cpu and doesn't come down. Some queries return successfully, some return after several seconds, and some just hang also sitting at 100% cpu (on another core, I guess). I'm basically just trying "id <username>" for the handful of users for whom I've setup UNIX attributes in the domain.
Initially, I was seeing a ton of messages in syslog from selinux, but I still get the same behaviour after disabling selinux.
This appears to be a problem in all Red Hat builds and their descendants. I’ve reproduced this on RHEL5, CentOS5, FC6 and FC7. My ldap.conf is as follows:
One interesting note is I don’t see this behavior when I use just the uri of ldap://example.com/, but if I use a list of FQDN for my Active Directory domain controllers then I can reproduce the issue easily. It seems to be a problem with nss_ldap as sshd fails during the account phase of the login and also hangs taking up 100% of the CPU.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.