Bug 582515 - RFE: Yum parallelized RPM download
Summary: RFE: Yum parallelized RPM download
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-15 08:33 UTC by Graham White
Modified: 2014-01-21 23:14 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-16 20:35:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Graham White 2010-04-15 08:33:25 UTC
This is more of a feature request than a bug report and I'm sure this must have come up in yum before but I can't find anything in bugzilla.

Can I request yum downloads RPMs from its various sources in a multi threaded fashion?

Today I performed a large yum update on my Fedora 12 laptop which pulled RPMS from four different sources.  The first RPM to download was a large file using a slow connection and delayed the whole update by quite some time.  If this had been parallelised with other downloads from other servers my update would have been far quicker.

Comment 1 James Antill 2010-04-15 14:39:51 UTC
Unlikely to be "threaded", but it is planned to do multiple downloads at once.

Comment 2 Billy Croan 2010-04-21 20:25:19 UTC
FEATURE CLARIFICATION/GOALS:
If a total of 60 packages must be downloaded to satisfy a yum install/update request, and there are 10 repo servers reachable, iterate over the available servers, pulling one download from each simultaneously.  In this example it should take one tenth the time assuming your client internet connection can keep up.

For extra credit:
When there are actually multiple IP addresses behind a repo server's publicly facing hostname (dns A records); pull multiple packages from the same "server" simultaneously; one per ip.

For even more extra credit:
1) wait a couple seconds between starting each new simultaneous download.
2) Trend the aggregate inbound kbps of all transfers and only start new simultaneous downloads if the number is > 90% of what the last ten samples were (on average)

This would maximally use the client's bandwidth, and server's bandwidth, without using any more transfer than would be used normally.

Comment 3 James Antill 2010-04-21 20:37:17 UTC
One problem with just going straight to "download 1 each from 10 of the mirror servers" is that Fedora has the notion of "private mirrors", but this info. isn't passed down to yum atm.

So we'd have to be a bit more clever, or get more info. and use it.

Otherwise, yes, we agree (and patches still accepted ;).

Comment 4 Graham White 2010-04-23 08:55:09 UTC
In the spirit of open source (I completely agree with James's comment about sending patches), I've had a look at the code.  Seems there are several ways we could go about this with various levels of complexity and implementation time involved right up to Billy's approach above which sounds perfect but time consuming to implement (particularly for someone new to the code in terms of patch submission).

Seems to me we could have an interim simpler solution where we could implement a configurable queue mechanism.  For example, say we allow 3 downloads simultaneously, we could add a simple queueing mechanism to getPackage() in yumRepo.py.  This would simply download up to 3 (configurable in yum.conf) packages at a time using the current mechanisms with little or no extra intelligence applied.  If packages happen to come from the same server then download time would change very little, but if they did happen to be from different sources there's a good chance of being more efficient.

This approach would certainly solve the case that lead to my raising this request i.e. where one slow server holds up the download of all the other packages.  Of course, if lots of packages were being downloaded from the slow server then the approach I've put forward would still have drawbacks.

Comment 5 Bug Zapper 2010-11-03 17:05:43 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Fedora End Of Life 2012-08-16 20:35:09 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.