Red Hat Bugzilla – Bug 455594
RFE: sort download list smallest package first
Last modified: 2013-01-09 20:51:09 EST
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):
Steps to Reproduce:
1. clear the package cache
2. run pungi
Packages downloaded in apparently-random order.
Packges downloaded by size, smallest first.
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%.)
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.