Bug 617623
| Summary: | SSSD suffers from serious performance issues on initgroups calls | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Stephen Gallagher <sgallagh> |
| Component: | sssd | Assignee: | Stephen Gallagher <sgallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> |
| Severity: | high | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.0 | CC: | benl, dpal, grajaiya, jgalipea, pere, trondham, werner |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | sssd-1.2.1-23.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-11-10 21:40:05 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 579775 | ||
|
Description
Stephen Gallagher
2010-07-23 14:59:23 UTC
Testers: you can compile and run the following C program and run it with the 'time' command
getgroups.c:
#include <sys/types.h>
#include <unistd.h>
#include <grp.h>
int main(int argc, char **argv)
{
initgroups(argv[1], 0);
return 0;
}
Compile and run:
gcc -o initgroups.test getgroups.c
time ./initgroups.test <username>
Prior to this patch, time would have reported 3-5s for users in groups of ~300-500 users. After this patch it will average < 1s.
Please test this on users of varying sized groups and numbers of groups.
Setup: 1. Created a group bosgroup with 500 users, Group1 with 5000 users and mumgroup with 10000 users. 2. bos 500 is a member of Group1 and mumgroup. 3. pnq5000 is a member of mumgroup. 4. mum9999 is a member on mumgroup. [root@rhel6snap11 ~]# time ./initgroups.test bos500 real 0m0.173s user 0m0.000s sys 0m0.001s [root@rhel6snap11 ~]# time ./initgroups.test pnq5000 real 0m0.226s user 0m0.001s sys 0m0.000s [root@rhel6snap11 ~]# time ./initgroups.test mum9999 real 0m0.272s user 0m0.000s sys 0m0.001s Verified: sssd-1.2.1-26.el6. Where can I find the patch used to fix this issue? (In reply to comment #4) > Where can I find the patch used to fix this issue? http://git.fedorahosted.org/git/?p=sssd.git;a=commit;h=24a5809cbc96d10001535999a292cb26242ad01d However, as is being discussed right now at https://fedorahosted.org/pipermail/sssd-devel/2010-September/004540.html we've discovered that this patch has introduced some issues with group resolution under certain circumstances. Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |