Bug 1194222
Summary: | [perf] dnf reinstall `rpm -qa` is slow | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Mach <dmach> |
Component: | dnf | Assignee: | rpm-software-management |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | dmach, jmracek, kparal, lkocman, mluscon, packaging-team-maint, pbrobinson, pnemade, tim.lauridsen, zkabelac |
Target Milestone: | --- | Keywords: | Reopened, Tracking, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-22 11:59:49 UTC | 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: | |||
Bug Depends On: | 1167239 | ||
Bug Blocks: | 1156501 |
Description
Daniel Mach
2015-02-19 11:13:18 UTC
Thanks for the report. The bottleneck could be in accessing yumdb (filesystem) for `from_repo` flag. This could be fixed by swdb arrival. Btw yum is a lot slower. Isn't yumdb loaded to memory when dnf/hawkey starts? I think this is rather caused by retrieving 1 package at a time. It would be nice if the query worked like this (I'm making this completely up): input: query([pattern1, pattern2, pattern3, ...]) output: [ [all pkgs matching pattern1], [], # <-- nothing matches pattern 2 [all pkgs matching pattern3], ... ] See my closed Bug 536818 From the POV of our 'rpm' developers problem is solved ;) Comment 2 relates only for the timing of 'rpm -qa' operation. *** Bug 1234907 has been marked as a duplicate of this bug. *** *** Bug 1236046 has been marked as a duplicate of this bug. *** This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Please can you try "sudo dnf reinstall '*' --assumeno" ? It required only 2.2s and it has same functionality as reported syntax (but it do not report if package cannot be reinstalled). Syntax "sudo dnf reinstall `rpm -qa` --assumeno" required 36.3s what is not terrible I would say. Syntax "sudo yum-deprecated reinstall `rpm -qa` --assumeno" required about 300s. Tested on dnf-2.1.1_1-11g5af2514.fc25.noarch. Are you satisfy with this result or 36s is too long? Reinstalling '*' works like a charm. It takes just couple seconds. I used the dnf reinstall `rpm -qa` command as an example of poor query performance. I think it works a bit faster. As I'm part of the DNF team now, I'm closing the bug myself. |