What Is the Minimum Split Size in aria2?
The minimum split size parameter (--min-split-size) in
aria2 determines the smallest possible size of a file segment required
to trigger an additional download connection. By enforcing a lower limit
on segment sizes, this setting prevents the download manager from
splitting smaller files into too many tiny fragments, which would
otherwise cause unnecessary network overhead. Optimizing this parameter
allows users to strike the ideal balance between maximizing download
speeds and maintaining connection efficiency.
How the Parameter Works
When aria2 downloads a file, it can split the file into multiple
pieces and download them simultaneously using multiple connections
(controlled by the -x or
--max-connection-per-server parameter). However, aria2 will
only create a new connection if the size of the remaining pieces is
larger than the value specified in --min-split-size.
For example, if you have a 20 MB file:
- Scenario A: If
--min-split-sizeis set to 10M and connections are set to 4, aria2 can split the file into two 10 MB segments and use 2 connections. - Scenario B: If
--min-split-sizeis set to 30M, aria2 will not split the file at all. It will download the entire 20 MB file using a single connection because the file size is smaller than the minimum threshold.
Why This Parameter Matters
- Reduces Server Overhead: Establishing a connection with a server requires a handshake and network protocol overhead. Splitting a tiny file into dozens of pieces can actually slow down the download and strain the host server.
- Optimizes Multi-Connection Downloading: For massive files (like ISOs or videos), a smaller split size ensures that aria2 aggressively utilizes all allowed connections to maximize your bandwidth.
- Default Value: By default, aria2 sets this parameter to 20M (20 Megabytes). If you frequently download smaller files and want to utilize multiple connections on them, you must manually lower this value.
How to Use It in the Command Line
You can define this parameter directly in your terminal command using
the M (Megabytes) or K (Kilobytes)
suffixes.
aria2c -x 5 --min-split-size=5M "https://example.com/file.zip"In this example, aria2 is permitted to use up to 5 connections for the download, but it will only allocate a new connection if a file segment is at least 5 Megabytes in size.