Red Hat Bugzilla – Bug 646329
taking a long time to get a result of getent group when the group has a large number of users
Last modified: 2011-07-21 04:03:37 EDT
Description of problem:
A customer has some very large groups, and it takes a long time for their membership to be transferred via ldap which excessively delays our applications.
Their largest group takes almost three minutes to look up:
rhel5 ~ # time getent group students
This group has about 23000 users in it.
This can be fixed by a fix of http://bugzilla.padl.com/show_bug.cgi?id=293.
This added the nss_getgrent_skipmembers option, allowing group members not to be returned via ldap.
Actually, this customer confirmed the fix on their environment.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. configure the ldap server and ldap client
2. create a group with a large number of users. (In case of this customer, it's about 23000 users)
3. run getent
it takes a long time to get a result of getent group when the group has a large number of users.
getent group returns the result in a short time.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.