making axel downloader multiprocess

Can i run few processes in parallel of axel to download same file? Each time I start new process:

axel -a -n 10 VRC2017_DET.tar.gz

I get notification:

Initializing download: gz
File size: 60855983982 bytes
Opening output file ILSVRC2017_DET.tar.gz.0
State file found: 5103495158 bytes downloaded, 55752488824 to go.
Starting download

Then all of my parallel processes shows the same downloaded % on status bar.

axel -a -n 10
[ 9%] [0 1 2 3 4 5 6 7 8 9 ] [ 2,5MB/s] [ 5h57]

only speed and time left is different then

When i run in multiprocess i have 10mb/s total, otherwise 2mb/s for process only.

2

1 Answer

According to the man page, axel will use multiple connections by itself, there is no need to run it multiple times.

Example download using 4 connection :

axel -a -n 4
Initializing download:
File size: 1921843200 bytes
Opening output file ubuntu-18.04-desktop-amd64.iso.0
Starting download
[ 30%] [....0 .....1 .....2 ....3 ] [ 11.1MB/s] [01:54]^C

The ....N shows clearly that it's using 4 connections

Example download using 6 connection :

axel -a -n 6
Initializing download:
File size: 1921843200 bytes
Opening output file ubuntu-18.04-desktop-amd64.iso.0
State file found: 583252805 bytes downloaded, 1338590395 to go.
Starting download
[ 32%] [....0 .....1 .....2 ....3 ] [ 9.9MB/s] [02:04]

There is still 4 connections! It seems that axel will re-use the partial download, but will continue using the same number of connections.

Example download using 6 connection (after erasing the temporary files):

rm ubuntu-18.04-desktop-amd64.iso*
axel -a -n 6 Initializing download: File size: 1921843200 bytes Opening output file ubuntu-18.04-desktop-amd64.iso Starting download
[ 2%] [0 1 2 3 4 5 ] [ 11.1MB/s] [02:40]

Now we can see axel using 6 connections.

Please note that the download speed may not be reduced because of the number of connection, and in this case you will only push more load to the network and to the remote host.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like