Unofficial

How Rtorrent 16 is built: what comes first

Rtorrent 16 is designed for fast downloads, efficient seeding and use with private trackers on a QNAP NAS.

This page explains the priorities behind Rtorrent 16 and the criteria we use to evaluate feature requests. Descriptions of default settings refer to the current release. Measurements are presented with their test conditions.

  1. Highest priorityDownload and seeding speed, private trackers, security, performance, professional setups and large archives
  2. Medium priorityLess powerful devices, slower internet connections and public torrents
  3. Lowest priorityQueueing, changes for a specific network or setup, and custom configurations

Three priority levels

Changes that support higher priorities come first. Changes that compromise those priorities do not become part of the default configuration.

Highest priority

  • Download and seeding speed. Download and upload speeds are unlimited by default, and rtorrent can use up to 2,048 MiB of memory for torrent pieces.
  • Efficient seeding. The download queue applies only to incomplete torrents. Completed torrents do not have to wait for a download slot before seeding.
  • Private trackers. Rtorrent 16 never adds the public tracker list to private torrents. DHT and peer exchange are disabled for them. Rtorrent 16 identifies itself to trackers as rtorrent 0.16.25, a version accepted by a private tracker that allows clients by exact version.
  • Security. An external IP address is blocked after login attempts using 5 distinct incorrect passwords within 5 minutes. Local network and Tailscale addresses are exempt from this block. Telemetry is sent as part of the daily update check: an anonymous installation ID, the NAS model, processor, firmware, install date and installed versions. One switch, Search for updates from nasutils.net, disables both.
  • Performance and large archives. Rtorrent 16 raises rtorrent's open-file limit to 65,536. On our test NAS, this left up to 60,672 sockets for peer connections, enough for a session of 10,000 torrents.
  • Professional setups. The Peers and their limits card on the Dashboard shows rtorrent's current limits alongside the values saved in Settings.

Medium priority

  • Less powerful devices. Rtorrent 16 is available in separate builds for Intel and AMD processors (x86-64) and for 64-bit ARM processors.
  • Slower internet connections. Connection profiles control the number of peers per torrent and the number of peer addresses requested from each tracker at each announce, with separate settings for private and public torrents.
  • Public torrents. New public torrents receive up to 16 public trackers, arranged in 4 groups. DHT and peer exchange are enabled by default.

Lowest priority

  • Queueing. By default, downloads are not queued. Max active downloads (experimental) works only when Developer mode is enabled.
  • Changes for a specific network or setup. These requests do not change the defaults for everyone. Use Extra rtorrent.rc lines to apply such changes on your own NAS.
  • Custom configurations. rtorrent reads your custom lines after the configuration generated by the panel.

How we evaluate feature requests

We ask five questions in this order. The first question that fits a request decides it; if none fits, the project's author decides.

  1. Does the change improve download or seeding speed, or meet a private tracker's requirements?

    Changes that improve download or seeding speed, or meet private tracker requirements, take priority.

  2. Does the change improve security or reduce resource usage?

    It can be accepted if download and seeding performance is maintained.

  3. Does the change help users with less powerful devices or slower connections, or improve public torrent support?

    It can be accepted if it does not reduce performance for other users.

  4. Would changing the defaults slow everyone down to address a problem on one network?

    Such a change does not become a default. Apply it on your own NAS using Settings or Extra rtorrent.rc lines.

  5. Does the change introduce queueing or delays?

    It remains restricted to Developer mode or is not included in the package.

You can change the defaults

The default configuration is shaped by user feedback, tracker requirements, and the folder and library requirements of Plex, Kodi, Jellyfin and Emby.

You can adjust the settings on your own NAS:

  • Settings → Connection profiles, with Advanced enabled, Custom: the number of peers per torrent and the number of peer addresses requested from each tracker at each announce, for private and public torrents.
  • Settings → Connection, with Advanced enabled: DHT, peer exchange and the public trackers added to new public torrents.
  • Settings → Advanced → Extra rtorrent.rc lines: commands supported by the installed version of rtorrent. These lines are appended to rtorrent.rc and processed after your own .rc files and rtorrent.rc.local.

Before you ask

Will Rtorrent 16 get a switch that starts torrents one at a time?

No. A startup queue delays waiting torrents every time Rtorrent 16 starts. Download and seeding speed take priority over queueing. We measured connection attempts at startup in two scenarios:

  • With 500 public torrents, the public tracker list disabled and no peer connection established, Rtorrent 16 made up to 41,000 connection attempts in the first 10 seconds.
  • In a separate test with 16 real-world public torrents, it made 3,076 connection attempts in the first minute.

If your network requires fewer connection attempts at startup, adjust the settings on your NAS. The next answer shows which settings to change.

My provider cuts my internet when Rtorrent 16 runs. What can I check?

A burst of connection attempts may trigger an ISP's flood protection and cause a disconnection. Check the following in order:

  • Dashboard → Peers and their limits: the number of sockets rtorrent uses now and the limit in force.
  • Settings → Connection, with Advanced enabled: set Add public trackers to new public torrents to Off and save. This applies to torrents added from that point onward.
  • Settings → Connection profiles, with Advanced enabled, Custom: reduce Public: peers each tracker is asked for and max under Public profile: peers per torrent.
  • Settings → Advanced → Extra rtorrent.rc lines: network.max_open_sockets.set = 4096. In a test with 2,000 public torrents and the public tracker list disabled, this reduced the number of connection attempts in the busiest 10-second interval from 60,672 to 4,475. A lower socket limit also means fewer peers at once to download from and to seed to. A large seeding archive then seeds only part of its torrents at a time. Use it only if your ISP cuts your connection.

We cannot change an ISP's flood-protection settings. The article below explains the measurements and the effect of each setting.

Why does a private torrent not get the public trackers?

Private trackers may prohibit adding other trackers and may ban accounts that violate this rule. Private torrents therefore keep only their original trackers, with DHT and peer exchange disabled.

Can I set it up my own way?

Yes. You can change the defaults and use Extra rtorrent.rc lines for commands supported by your installed version of rtorrent. rtorrent reads these lines at startup.

Why is the download queue only in Developer mode?

Queued downloads wait for an active download to finish or stop, even when active downloads are making little progress. This delays the remaining downloads, while speed is our highest priority.