Deluge upload speed drops

General support for problems installing or using Deluge
Post Reply
Thiago_Rangel7
New User
New User
Posts: 7
Joined: Sat Feb 11, 2017 4:35 am

Deluge upload speed drops

Post by Thiago_Rangel7 »

Hi,
My maximum upload speed is 244kB/s (determined by speedtest.net), Deluge guides say we must set bandwidth max upload speed configuration to 80% of this value, then mine is set to 195kB/s.
When Deluged starts, my upload speeds rise to about this value, but after some time it drops to around 30~60kB/s and stays that way indefinitely. To fix it, I need to pause all torrents and then resume it; which is very inconvenient, cause I run torrents 24 hours per day.

I'd like to know how to fix this problem in order to maintain a relatively constant upload speed of 195kB/s.

Thanks in advance.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge upload speed drops

Post by shamael »

Hi,

I guess RPI, which one? Assuming the memory is not constraint (check with ssh) where are the torrent located ? (SD card/USB/network?)
what the config of Deluge (cache settings, upload slot etc)? Libtorrent/Deluge version?

If using the GTK client you can install the ltconfig plugin and select the high performance preset. It made a huge difference for me but take care about the settings applied and do not blindly apply all of thems. I have in mind the cache size/cache expiry/number of connections mainly

Assuming the leechers' demand is high enough for the torrents you share and a RPI 2/3 your goal is not problematic. You can always test with an Ubuntu torrent available on the official site to measure the setup performance (high demands). On my RPI3 I'm able to keep >800kb/s (connection limit)
Thiago_Rangel7
New User
New User
Posts: 7
Joined: Sat Feb 11, 2017 4:35 am

Re: Deluge upload speed drops

Post by Thiago_Rangel7 »

Thanks for your answer. I'm providing the information you requested.
shamael wrote: I guess RPI, which one? Assuming the memory is not constraint (check with ssh) where are the torrent located ? (SD card/USB/network?)
what the config of Deluge (cache settings, upload slot etc)? Libtorrent/Deluge version?
I'm using a Raspberry Pi 3 Model B. Torrents are located at a external 1TB External HDD plugged in RPi3, and these same files are shared with other computers on my local network via a samba share.

Version:
deluged: 1.3.10
libtorrent: 0.16.18.0

Deluge core.conf file:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "info_sent": 0.0, 
  "lsd": true, 
  "send_info": false, 
  "move_completed_path": "/home/pi/Downloads", 
  "enc_in_policy": 1, 
  "queue_new_to_top": false, 
  "ignore_limits_on_local_network": true, 
  "rate_limit_ip_overhead": true, 
  "daemon_port": 58846, 
  "natpmp": true, 
  "max_active_limit": -1, 
  "utpex": true, 
  "max_active_downloading": 5, 
  "max_active_seeding": 10, 
  "allow_remote": true, 
  "max_half_open_connections": 50, 
  "download_location": "/media/rangelserverHDD/Rangel NAS/.manager/Arquivos", 
  "compact_allocation": false, 
  "max_upload_speed": 195.0, 
  "cache_expiry": 60, 
  "prioritize_first_last_pieces": false, 
  "auto_managed": true, 
  "enc_level": 2, 
  "max_connections_per_second": 20, 
  "dont_count_slow_torrents": true, 
  "random_outgoing_ports": true, 
  "max_upload_slots_per_torrent": 7, 
  "new_release_check": true, 
  "enc_out_policy": 1, 
  "outgoing_ports": [
    0, 
    0
  ], 
  "seed_time_limit": 180, 
  "cache_size": 512, 
  "share_ratio_limit": 2.0, 
  "max_download_speed": 1100.0, 
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat", 
  "torrentfiles_location": "/media/rangelserverHDD/Rangel NAS/.manager/Arquivos/\u00b4Torrents", 
  "stop_seed_at_ratio": false, 
  "peer_tos": "0x00", 
  "listen_interface": "", 
  "upnp": true, 
  "max_download_speed_per_torrent": -1, 
  "max_upload_slots_global": 4, 
  "enabled_plugins": [
    "Stats"
  ], 
  "random_port": false, 
  "autoadd_enable": true, 
  "max_connections_global": 250, 
  "enc_prefer_rc4": true, 
  "listen_ports": [
    57100, 
    57100
  ], 
  "dht": false, 
  "stop_seed_ratio": 2.0, 
  "seed_time_ratio_limit": 7.0, 
  "max_upload_speed_per_torrent": -1, 
  "copy_torrent_file": true, 
  "del_copy_torrent_file": false, 
  "move_completed": false, 
  "proxies": {
    "peer": {
      "username": "", 
      "password": "", 
      "type": 0, 
      "hostname": "", 
      "port": 8080
    }, 
    "web_seed": {
      "username": "", 
      "password": "", 
      "type": 0, 
      "hostname": "", 
      "port": 8080
    }, 
    "tracker": {
      "username": "", 
      "password": "", 
      "type": 0, 
      "hostname": "", 
      "port": 8080
    }, 
    "dht": {
      "username": "", 
      "password": "", 
      "type": 0, 
      "hostname": "", 
      "port": 8080
    }
  }, 
  "add_paused": false, 
  "max_connections_per_torrent": 80, 
  "remove_seed_at_ratio": false, 
  "autoadd_location": "/media/rangelserverHDD/Rangel NAS/.manager/Arquivos/\u00b4Torrents/\u00b4Watch", 
  "plugins_location": "/home/pi/.config/deluge/plugins"
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge upload speed drops

Post by shamael »

Same setup on my side, able to reach the limit of my connection (>800kb/s) with Kodi on the same device.

I guess the version you taken is the one from the Debian repo, it's outdated. The current version of Deluge is 1.3.13 compatible with libtorrent 1.0.X. (not 1.1.X so far I read). I'm running the libtorrent 1.0.9 but it seems 1.0.11 make it too. The wiki can help if you want to compile by yourself, other source are possible (check the forum)

About your setup file I don't have my config file right know but I see:
"download_location": "/media/rangelserverHDD/Rangel NAS/.manager/Arquivos"
"move_completed_path": "/home/pi/Downloads"
--> I guess the move_completed is not checked in the Deluge config ?

Beside the version of Deluge/Libtorrent there are multiple settings I changed to max out the throughput, the easiest start is to install the ltconfig plugin with the high performance preset. About the thing to untick in this profile ( to setup manually) for a RPI and considering I have the same setup with kodi on top (less memory available):
cache size: 6144
cache expiry: 180
max_active_downloading: 2
max_connections_global: 200

You may try and customize depending your setup.

Enjoy
Post Reply