Deluge 1.3.15 does not respect upload speed limits

General support for problems installing or using Deluge
Post Reply
dacabdi89
New User
New User
Posts: 1
Joined: Wed Feb 08, 2017 11:37 pm

Deluge 1.3.15 does not respect upload speed limits

Post by dacabdi89 »

Deluge is not respecting my upload speed settings. I have it set to 100 KiB/s and it keeps uploading ~2 MiB/s. I'm running Deluge 1.3.15 as a systemd service unit on Xubuntu 16.04. The configuration file

Code: Select all

/var/lib/deluge/.config/deluge/core.conf
is properly grabbing the value on set. However, the upload is not what I set it to be.
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 1.3.15 does not respect upload speed limits

Post by mhertz »

This has been reported before in older times, but the bugs should be fixed in recent versions of deluge/libtorrent - one reported the issue fixed by simply reinstalling:
In the end, a sudo apt-get purge deluged deluge-console deluge-web && sudo apt-get autoremove and a sudo apt-get install deluged deluge-console deluge-web resolved this really strage problem!
(If still persisting, please disable all used 3'rd party plugins temporarily and test that it's not in there the problem lies, before going further with this)
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

Re: Deluge 1.3.15 does not respect upload speed limits

Post by Shryp »

This is a "bug/feature" in libtorrent specifically related to uTP connections. It was introduced in 1.1.5 and they just fixed it in version 1.1.9 which was released 5 days ago. It will take some time to trickle down to the different distro's repos. If you feel like building the source yourself here is their github:
https://github.com/arvidn/libtorrent/releases

Here is some more reading on the issue on the libtorrent bug tracker:
https://github.com/arvidn/libtorrent/issues/2857

According to them, you can "fix" this issue by installing the LtConfig plugin and enabling the option: rate_limit_utp.
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 1.3.15 does not respect upload speed limits

Post by mhertz »

@dacabdi89 - I'm sorry for posting wrong information.

@Shryp - Sorry too, and thank's for the info :)
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Deluge 1.3.15 does not respect upload speed limits

Post by shamael »

Hi guys,

to share my own "solution" about this: I'm using the PPA Deluge repository for the installion to stick with the couple Deluge 1.3.15/Libtorrent 1.0.11.
Of course any system update will upgrade the libtorrent version so simply freeze it :

#if not done yet add the PPA repo, Zesty with the example here (adapt for your version)
https://launchpad.net/~deluge-team/+archive/ubuntu/ppa
Add the source below:
deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu zesty main
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu zesty main

#remove current updated libtorrent version and install the lasst one from the PPA (1.0.11)
sudo systemctl stop deluged deluge-web
sudo apt-get remove deluged libtorrent-rasterbar9
sudo apt-get install -t zesty deluged

#freeze the package so it will no more be updated (until unfreeze of course)
sudo apt-mark hold libtorrent-rasterbar8 python-libtorrent
Spadge
Seeder
Seeder
Posts: 111
Joined: Sat Dec 13, 2008 4:17 pm

Re: Deluge 1.3.15 does not respect upload speed limits

Post by Spadge »

I've just noticed speed limits are now being obeyed again.

Client: 2.0.0.dev7187
Server: 2.0.0.dev7187

libtorrent: 1.1.9.0

Code: Select all

spadge@Moya:~$ dpkg -l | grep libtorrent
ii  libtorrent-rasterbar9                 1.1.9~dev8823+149c24e+201808030031~ubuntu18.04.1 armhf        libtorrent C++ BitTorrent Library (rasterbar)
ii  python-libtorrent                     1.1.9~dev8823+149c24e+201808030031~ubuntu18.04.1 armhf        libtorrent Python Bindings (rasterbar)
Thanks!
mhertz
Moderator
Moderator
Posts: 2195
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge 1.3.15 does not respect upload speed limits

Post by mhertz »

Yes, from libtorrent-1.1.9 changelog:

* uTP connections are no longer exempt from rate limits by default
Post Reply