On Fri, Feb 27, 2009 at 09:42:26AM -0700, John Hubbard wrote: > Colin Watson wrote: >> I'm confused by this report. apt already does this if downloading from >> multiple different hosts, and has done so for as long as I can remember. >> It does not do this for multiple downloads from the same host since that >> would increase server load for little benefit in practice. > > Is there a flag required to gain this functionality? If not, the > functionality does not APPEAR to provide by default.
It's always just worked for me. I am not aware of having configured it. Looking through the source, this is controlled by pkgAcquire::Enqueue() which calls pkgAcquire::QueueName() to get the name of the queue the acquisition job should go in; multiple queues are run in parallel. This method is quite simple and normally just combines the scheme and hostname (as you can see in e.g. "http://archive.ubuntu.com" in apt's progress output). I don't see any way in which this could be configuration-dependent. > If I have a fresh install of ubuntu, add the mediabuntu and virtualbox > repositories, and install w32codecs and virtual box with an 'apt-get > install w32codecs VirtualBox' from the command line it appears to > download one package and then after that package is complete it begins > downloading the next package. What are the relevant lines in /etc/apt/sources.list? Are you sure that it isn't just that one host is substantially slower than the other? Here's what it looks like for me. 'mirror' is my local mirror of archive.ubuntu.com, so packages are fetched preferentially from there if available. apt is entirely happy to fetch from both these hosts in parallel, as you can see from the progress bar output on the last line which shows two packages being downloaded at once: Get: 10 http://archive.ubuntu.com jaunty/main python-minimal 2.5.4-0ubuntu6 [14.4kB] Get: 11 http://archive.ubuntu.com jaunty/main libxft-dev 2.1.13-3ubuntu1 [64.1kB] Get: 12 http://archive.ubuntu.com jaunty/main libxft2 2.1.13-3ubuntu1 [50.9kB] Get: 13 http://mirror jaunty/main python2.6-minimal 2.6.1-0ubuntu9 [1325kB] Get: 14 http://archive.ubuntu.com jaunty/main libvolume-id-dev 139-1 [108kB] Get: 15 http://mirror jaunty/main python2.6-dbg 2.6.1-0ubuntu9 [9304kB] 8% [14 libvolume-id-dev 96665/108kB 89%] [15 python2.6-dbg 1040384/9304kB 11%] -- support for multiple simultaneous downloads https://bugs.launchpad.net/bugs/330565 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs