Bug 1837982
| Summary: | ldif2db can be very slow | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | sgouvern |
| Component: | 389-ds-base | Assignee: | LDAP Maintainers <idm-ds-dev-bugs> |
| Status: | NEW --- | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 9.3 | CC: | idm-ds-dev-bugs, mreynolds, msauton, pasik, progier, spichugi, tbordaz, tmihinto, vashirov |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 9.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | sync-to-jira | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
sgouvern
2020-05-20 10:26:44 UTC
While I still can not figure out why imports are slow in the testing framework, I was able to reproduce very slow imports that appears to be systematic. Here are the steps:
[1] Attempt an import with a typo in the LDIF file name so that the import fails:
# dsconf slapd-localhost backend import userroot 1mil-typo.ldif
[2] Fix the typo and do the import:
# dsconf localhost backend import userroot 1mil.ldif
[02/Nov/2020:16:44:06.244158418 -0500] - INFO - import_monitor_threads - import userroot: Processed 58 entries -- average rate 2.9/sec, recent rate 2.9/sec, hit ratio 0%
[02/Nov/2020:16:44:26.281630749 -0500] - INFO - import_monitor_threads - import userroot: Processed 108 entries -- average rate 2.7/sec, recent rate 2.7/sec, hit ratio 100%
[02/Nov/2020:16:44:46.314696042 -0500] - INFO - import_monitor_threads - import userroot: Processed 158 entries -- average rate 2.6/sec, recent rate 2.5/sec, hit ratio 100%
...
[3] Restart the server, and try the import again:
[02/Nov/2020:16:51:19.259511417 -0500] - INFO - import_monitor_threads - import userroot: Processed 85095 entries -- average rate 4254.8/sec, recent rate 4254.7/sec, hit ratio 0%
[02/Nov/2020:16:51:39.516911186 -0500] - INFO - import_monitor_threads - import userroot: Processed 153041 entries -- average rate 3825.9/sec, recent rate 3825.9/sec, hit ratio 97%
[02/Nov/2020:16:51:59.708787576 -0500] - INFO - import_monitor_threads - import userroot: Processed 217130 entries -- average rate 3618.8/sec, recent rate 3300.9/sec, hit ratio 96%
I can keep reimporting the same LDIF file over and over and the import is fast, but as soon as an import fails all future attempts are really slow until the server is restarted.
https://github.com/389ds/389-ds-base/issues/4432 --> This fixes terrible import performance after a import fails (because the cache size was incorrectly set to zero after the failure), but the issue inside of py.test is still a mystery. |