Description of problem: $ grep exclude /etc/yum.conf exclude = *.i?86 $ grep exclude /etc/dnf/dnf.conf exclude = *.i?86 time dnf list gstreamer* real 5m43.861s user 5m33.169s sys 0m3.220s time yum list gstreamer* real 0m15.664s user 0m0.839s sys 0m0.614s Version-Release number of selected component (if applicable): dnf-0.5.2-1.fc20.noarch yum-3.4.3-148.fc20.noarch yum-langpacks-0.4.3-1.fc20.noarch yum-metadata-parser-1.1.4-9.fc20.x86_64 yum-utils-1.1.31-23.fc20.noarch How reproducible: 100% always reproducible Steps to Reproduce: 1. Try yum and dnf with the same 'exclude' Actual results: 'exclude' works dnf is significantly slower than yum dnf eating 100% CPU whole time Expected results: 'exclude' works dnf and yum has comparable speed Additional info:
Hello, thank you for the report. We'll take a look.
I can help you test or I can provide debug information if needed. Feel free to ping me, email me or needinfo me in case I can be helpful in fixing this issue.
Jan this is the performance issue we talked about. Please try to see whether something can be done about it with the new approach.
Hi Stanislav, some changes have been made for excludes in Hawkey. If you really wanna help, can you try hawkey-0.5.0 and tell the difference, please?
Still reproducible with latest: $ grep exclude /etc/yum.conf exclude = *.i?86 $ grep exclude /etc/dnf/dnf.conf exclude = *.i?86 $ rpm -qa 'hawkey*' 'dnf*' 'yum*' | sort dnf-0.5.5-1.fc21.noarch hawkey-0.5.0-1.fc21.x86_64 yum-3.4.3-153.fc21.noarch yum-langpacks-0.4.3-2.fc21.noarch yum-metadata-parser-1.1.4-13.fc21.x86_64 yum-utils-1.1.31-24.fc21.noarch $ time yum list 'gstreamer*' [...] real 0m5.518s user 0m0.624s sys 0m0.134s $ time dnf list 'gstreamer*' [...] real 5m48.631s user 5m16.906s sys 0m0.532s
Thanks for the feedback although you brough bad news. I did more testing: dnf list -> fine dnf list -x *.i686 -> slow dnf list -x *.786 -> fine :) dnf list -x python* -> fine dnf list -x p*.i?86 -> fine hawkey.Query(sack).filter(arch__glob="i?86") -> fine it's neithter libsolv issue, nor hawkey query issue. I need to do more profiling.
Fixed in the upstream.
hawkey-0.5.1-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/hawkey-0.5.1-1.fc21
Nice!!! Fixed the issue for me.
Package hawkey-0.5.1-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hawkey-0.5.1-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-11102/hawkey-0.5.1-1.fc21 then log in and leave karma (feedback).
hawkey-0.5.1-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.