Bug 90912 - PackageKit does not respect private mirrors, seems to jump mirrors after every package download
Summary: PackageKit does not respect private mirrors, seems to jump mirrors after ever...
Alias: None
Product: PackageKit
Classification: Unclassified
Component: backend-yum (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
Depends on:
Reported: 2015-06-09 07:41 UTC by Kamil Páral
Modified: 2016-07-18 09:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

metalink.xml (19.10 KB, text/plain)
2015-06-09 07:41 UTC, Kamil Páral

Description Kamil Páral 2015-06-09 07:41:13 UTC
Created attachment 116388 [details]

PackageKit doesn't seem to respect private mirrors. When I access Fedora repository metalink at this address:


I see this:

      <resources maxconnections="1">
        <url protocol="http" type="http" location="CZ" preference="100" mm0:private="True">http://download.eng.brq.redhat.com/pub/fedora/linux/development/22/x86_64/os/repodata/repomd.xml</url>

yum and dnf respect this and use solely this mirror to download packages, therefore everything uses our internal 1Gbit network.

However, packagekit (used through gnome-software) does not. When looking into iptraf-ng, it seems that it is contacting a different mirror for every package download, probably picking in random or cycling through the list. The download speeds jump from 100kB/s to 100MB/s (when it randomly downloads a single package from our internal mirror).

The overall experience is that downloading updates with packagekit is extremely slow (I use pkmon to monitor progress). And I have a feeling that it is not just related to private mirrors. Even when I'm at home, packagekit feels an order of magnitude slower than yum/dnf. My theory is that by jumping the mirrors after each package download, it needs to open a new connection every time, so it does not allow for download pipelining, as you can do when downloading from a single host. (But that would be a different issue, I'm mentioning it just in case it was important.)

Please make PackageKit respect private mirrors. And ideally make the download logic synchronized with dnf (could it be somehow shared between the projects?). Thank you.

Comment 1 Kamil Páral 2016-07-18 09:34:48 UTC
This has been fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1336404

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.