Difference Between aria2 -s and -x Flags

This article provides a clear comparison between the -s (--split) and -x (--max-connection-per-server) flags in the aria2 download utility. While both flags are essential for optimizing download speeds by enabling parallelism, they serve entirely different functions in how connections are allocated. Understanding the distinction between splitting a single file into segments and establishing multiple concurrent connections to a host will help you configure aria2 for maximum efficiency without getting blocked by remote servers.


The -s Flag: –split

The -s flag determines the number of connections used to download a single file. When you specify -s N, aria2 attempts to split the file into N pieces and download those pieces simultaneously.

The -x Flag: –max-connection-per-server

The -x flag specifies the maximum number of parallel connections that aria2 is allowed to establish to one specific server or host.

How They Work Together

To optimize your downloads effectively, you must understand how these two parameters interact. The actual number of connections made to a single server for a specific download is bounded by the lower of the two values.

Summary of Differences