Bug 455594 - RFE: sort download list smallest package first
RFE: sort download list smallest package first
Product: Fedora
Classification: Fedora
Component: pungi (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: David Cantrell
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-07-16 10:17 EDT by John Reiser
Modified: 2013-01-09 20:51 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-16 10:36:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Reiser 2008-07-16 10:17:28 EDT
Description of problem: Please enhance pungi to sort the list of packages to be
downloaded into ascending order by size of download.  Downloading the smaller
packages first increases the chances that potential problems with package
mirrors or a random individual package will occur sooner, and thus can be
detected and fixed sooner.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. clear the package cache
2. run pungi
Actual results:
Packages downloaded in apparently-random order.

Expected results:
Packges downloaded by size, smallest first.

Additional info:
Sorting the list by size is the first step towards a very good multi-threaded
download strategy.  Have two threads, one which downloads the smallest remaining
package, and the other which downloads the largest remaining package.  In the
beginning the large download utilizes the bandwidth that is lost by setup times
for small packages.  For downloading 1000 packages using 1.5Mb/s DSL, the
savings is about half an hour over six hours (8%.)
Comment 1 Jesse Keating 2008-07-16 10:36:12 EDT
Packages get downloaded in the order that yum wants to do it, since we use yum
to download them.  If you have at least yum 3.2.16 you'll get downloads ordered
in this way.

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