Bug 1095847
| Summary: | CoS cache re-scanning severely impacts performance | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | mreynolds |
| Component: | 389-ds-base | Assignee: | mreynolds |
| Status: | CLOSED ERRATA | QA Contact: | Sankar Ramalingam <sramling> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.6 | CC: | amsharma, jgalipea, mreynolds, nhosoi, nkinder, rmeggins |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.2.11.15-34.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 07:55:02 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: | |||
|
Description
mreynolds
2014-05-08 16:11:50 UTC
Fixed upstream. Requesting you to provide steps to reproduce the problem. (In reply to Sankar Ramalingam from comment #2) > Requesting you to provide steps to reproduce the problem. I was only able to reproduce this with the customer's private data. I will start working on a new "generic" testcase to reproduce the issue. Verification Steps
[1] Create a single instance of 389, using "dc=example,dc=com"
[2] Import the cos-db.ldif file
[3] restart the server - just to be sure the cos cache gets created.
[4] Run this ldapmodify:
ldapmodify -D "cn=directory manager" -w password -f mod-entry.ldif
If the ldapmodify completes in under 5 seconds, the bug is verified. Previously it would take 5 - 10 minutes to complete.
HI Mark,
Modify operation does not take much time ::
[root@dhcp201-155 ~]# tail -f /var/log/dirsrv/slapd-dhcp201-155/errors
[17/Jul/2014:02:01:56 -0400] - import userRoot: Indexing complete. Post-processing...
[17/Jul/2014:02:01:56 -0400] - import userRoot: Generating numSubordinates complete.
[17/Jul/2014:02:01:58 -0400] - import userRoot: Flushing caches...
[17/Jul/2014:02:01:58 -0400] - import userRoot: Closing files...
[17/Jul/2014:02:02:03 -0400] - All database threads now stopped
[17/Jul/2014:02:02:03 -0400] - import userRoot: Import complete. Processed 216303 entries in 98 seconds. (2207.17 entries/sec)
[17/Jul/2014:02:46:03 -0400] - 389-Directory/1.2.11.15 B2014.183.1827 starting up
[17/Jul/2014:02:46:03 -0400] - WARNING: userRoot: entry cache size 10485760B is less than db size 185778176B; We recommend to increase the entry cache size nsslapd-cachememsize.
[17/Jul/2014:02:46:04 -0400] - I'm resizing my cache now...cache was 417939456 and is now 8000000
[17/Jul/2014:02:46:59 -0400] - slapd started. Listening on All Interfaces port 389 for LDAP requests
[root@dhcp201-155 ~]# service dirsrv start
Starting dirsrv:
dhcp201-155... [ OK ]
[root@dhcp201-155 ~]# ldapmodify -x -h localhost -p 389 -D "cn=Directory Manager" -w Secret123 -f /export/mod-entry.ldif
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
modifying entry "uid=st8, ou=people, dc=example,dc=com"
But restarting dirsrv taking more time than usual approx. 1 min..
Is it due to large db?
Is it OK and as expected.
Please confirm.
[root@dhcp201-155 ~]# date
Thu Jul 17 02:51:20 EDT 2014
[root@dhcp201-155 ~]# service dirsrv restart
Shutting down dirsrv:
dhcp201-155... [ OK ]
Starting dirsrv:
dhcp201-155... [ OK ]
[root@dhcp201-155 ~]# date
Thu Jul 17 02:52:21 EDT 2014
Yes, this is expected. At start up the cos plugin builds its cache (which is quite large in this particular testcase). This looks verified to me. Marking bug as VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1385.html |