https://bugs.kde.org/show_bug.cgi?id=466671
Bug ID: 466671 Summary: Discover is very slow to fetch updates Classification: Applications Product: Discover Version: 5.27.1 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: PackageKit Assignee: plasma-b...@kde.org Reporter: zi...@kayari.org CC: aleix...@kde.org Target Milestone: --- SUMMARY When opening discover from the systray widget when it shows updates are available, it takes 30+ seconds to show the available updates. The previous cause of slowness was supposed to have been fixed (Bug 457408) but I see no improvement in the default use case of "click on the systray widget when it shows updates". Maybe something got fixed in the KNewStuff backend, but there's another cause of slowness, and it has the same symptom: the "Fetching updates..." progress bar goes to about 97% immediately, then stops for 30 seconds. The same slowness happens when clicking the "Refresh" button. STEPS TO REPRODUCE 1. plasma-discover --mode Update 2. click Refresh 3. waaaaaaaiiiiiiiiiiiiiit OBSERVED RESULT Slow EXPECTED RESULT More fastish! SOFTWARE/OS VERSIONS Operating System: Fedora Linux 37 KDE Plasma Version: 5.27.1 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.11-200.fc37.x86_64 (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz Memory: 31.1 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 ADDITIONAL INFORMATION $ plasma-discover --listbackends Available backends: * fwupd-backend * kns-backend * flatpak-backend * packagekit-backend By a process of elimination I found that it's the packagekit backend that's slow. Clicking Refresh after running it as 'plasma-discover --mode Update --backends fwupd-backend,flatpak-backend,kns-backend' finished almost immediately, and any combination of backends that doesn't involve packagekit-backend is fast. Any combination that involves packagekit-backend (including just that one, i.e. --backends packagekit-backend) takes 30+ seconds. DNF and PackageKit can both refresh their package lists in far less time than Discover can: $ time pkcon refresh Refreshing cache [=========================] Loading cache [=========================] Finished [=========================] real 0m0.352s user 0m0.007s sys 0m0.007s $ time sudo dnf check-update --refresh Copr repo for centpkg owned by james 7.2 kB/s | 3.3 kB 00:00 Copr repo for elektroid owned by jwakely 7.3 kB/s | 3.3 kB 00:00 Fedora 37 - x86_64 35 kB/s | 18 kB 00:00 Fedora 37 openh264 (From Cisco) - x86_64 1.7 kB/s | 989 B 00:00 Fedora Modular 37 - x86_64 31 kB/s | 18 kB 00:00 Fedora 37 - x86_64 - Updates 29 kB/s | 14 kB 00:00 Fedora Modular 37 - x86_64 - Updates 37 kB/s | 17 kB 00:00 google-chrome 5.7 kB/s | 1.3 kB 00:00 RCM Tools for Fedora 37 (RPMs) 5.5 kB/s | 3.8 kB 00:00 RPM Fusion for Fedora 37 - Free 38 kB/s | 6.8 kB 00:00 RPM Fusion for Fedora 37 - Free - Updates 18 kB/s | 6.5 kB 00:00 RPM Fusion for Fedora 37 - Nonfree 40 kB/s | 6.9 kB 00:00 RPM Fusion for Fedora 37 - Nonfree - Updates 39 kB/s | 6.6 kB 00:00 RHEL8 CSB packages 6.2 kB/s | 3.0 kB 00:00 real 0m7.659s user 0m2.361s sys 0m0.227s In fact I can usually check *and install* all updates using dnf before Discover has even managed to show me the available updates. -- You are receiving this mail because: You are watching all bug changes.