Does it help?

Story: Drastically Improve 'apt-get install' And 'upgrade' Speed [How-to]Total Replies: 7
Author Content
Sander_Marechal

Nov 26, 2009
7:17 PM EDT
The big question is, does it actually help? All the Debian and Ubuntu mirrors I have used so far don't cap the download speed (or cap it at such a high level that my 8 Mbit connection never reached it). Under those circumstances Axel doesn't help at all.
jezuch

Nov 27, 2009
3:06 AM EDT
I discovered that these "download accelerators" are pure crap a long time ago. I wonder how people still believe they help at all.
Sander_Marechal

Nov 27, 2009
4:08 AM EDT
Sometimes they help, but only if:

* The server you download from uses rate-limiting * Your internet connection is faster that the rate-limit on the server * Your internet connection is slower than the connection of the server * The server does not check IP addresses/sessions for rate-limiting

Only then does download accelleration work. With bandwidth being cheap, abundant and sold on fixed-fee it's increasingly unlikely that a server uses rate-limiting. Personally I would only rate-limit a server if you rent a pipe to internet that has to be paid by the percentile. In that case a traffic spike could cost a lot of money because it affects the price on an entire month worth of bandwidth. And in such cases it's probably still better to use a firewall with QoS and traffic shaping to manage all connections instead or rate-limiting individual connections.
hotice

Nov 27, 2009
1:52 PM EDT
The thing is that Axel downloads multiple files simultaneously, as opposed to apt-get. So it's not that it accelerates the download as in makes your internet faster, but it simply finishes the job in less tine.

Try to install something using apt-get and something using apt-fast. You will notice the difference...
jezuch

Nov 27, 2009
5:03 PM EDT
@Sander: do I need to meet all those conditions, or just one? :)

@hotice: apt-get downloads files simultaneously if they're from different hosts. And I can't for the life of me see how downloading 1 file at 1000kbit (let's assume that's my local bandwidth cap) is slower than downloading 5 files at 200kbit each...
azerthoth

Nov 27, 2009
5:26 PM EDT
Unless you have slow mirrors. This is where things like the Entropy package manager have a bit of polish. Adding in --multifetch=n , n being some number from 1 to 10 creates an aggregated download that will pull packages from a variety of slower mirrors upping your throughput to the max of your connection speed.

Much like while wget is nice, aria2 works even better as it will do concurrent segments to optimize throughput.
Sander_Marechal

Nov 27, 2009
7:11 PM EDT
@hotice: apt-get is deprecated. Aptitude is the new default and it does download files simultaneously.

Quoting:Unless you have slow mirrors.


I don't. My mirrors are fast enough to saturate my 8 Mbit home connection. Perhaps it helps that I am in The Netherlands. There's bandwidth a-plenty, only 17 million inhabitants and network-wise I'm real close to the Amsterdam Internet Exchange (the biggest and fastest in the world).
caitlyn

Nov 27, 2009
11:44 PM EDT
I agree with azerthoth about aria2c. It's really nice. I've used it to pull down packages on some of the Slackware derivatives which don't have a package manager with the features of aptitude.

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!