Page 1 of 1

[Solved] I can't limit the speed with deluge-console

Posted: Thu Apr 28, 2011 8:43 am
by cit
Hello,

I've Deluge version 1.3.1 and use SliTaz GNU/Linux with a 2.6.37 kernel. The daemon is running and is downloading a file. When I type the following inside deluge-console nothing happens:

Code: Select all

config -s max_upload_speed 5
The same happens with max_download_speed. Deluge says "Configuration value successfully updated" but the speed is not limited. I've attached a screenshot [1] from the deluge client.

Deluge daemon logfile:

Code: Select all

[DEBUG   ] 08:21:07 alertmanager:123 performance_alert: big_buck_bunny_1080p_s
tereo.ogg: performance warning: max outstanding disk writes reached
[DEBUG   ] 08:21:07 config:216 Setting 'max_upload_speed' to 5.0 of <type 'flo
at'>
[DEBUG   ] 08:21:07 preferencesmanager:365 max_upload_speed set to 5.0..
[DEBUG   ] 08:21:07 rpcserver:466 intevents: {1: ['TorrentAddedEvent', 'Torren
tFinishedEvent'], 2: ['NewVersionAvailableEvent', 'PluginEnabledEvent', 'Sessi
onPausedEvent', 'TorrentAddedEvent', 'PluginDisabledEvent', 'ConfigValueChange
dEvent', 'PreTorrentRemovedEvent', 'TorrentStateChangedEvent', 'TorrentFinishe
dEvent', 'SessionResumedEvent', 'TorrentRemovedEvent']}
[DEBUG   ] 08:21:07 rpcserver:470 Emit Event: ConfigValueChangedEvent ['max_up
load_speed', 5.0]
[DEBUG   ] 08:21:09 alertmanager:123 performance_alert: big_buck_bunny_1080p_s
tereo.ogg: performance warning: max outstanding disk writes reached
Deluge-console logfile:

Code: Select all

[INFO    ] 08:20:55 ui:101 Deluge ui 1.3.1
[DEBUG   ] 08:20:55 ui:102 options: {'loglevel': 'debug', 'logfile': 'foo.txt', 'config': None, 'quiet': False}
[DEBUG   ] 08:20:55 ui:103 args: []
[INFO    ] 08:20:55 ui:104 Starting ui..
[DEBUG   ] 08:20:55 main:154 Using encoding: UTF-8
[INFO    ] 08:20:57 client:221 Connecting to daemon at 127.0.0.1:58846..
[DEBUG   ] 08:20:57 coreconfig:43 CoreConfig init..
[DEBUG   ] 08:20:57 screen:82 Screen init!
[INFO    ] 08:20:57 client:125 Connected to daemon at 127.0.0.1:58846..
[INFO    ] 08:21:54 client:228 Connection lost to daemon at 127.0.0.1:58846 reason: Connection was closed cleanly.
core.conf:

Code: Select all

{
  "file": 1, 
  "format": 1
}{
  "info_sent": 0.0, 
  "lsd": true, 
  "max_download_speed": 5.0, 
  "send_info": false, 
  "natpmp": true, 
  "move_completed_path": "/home/toor", 
  "peer_tos": "0x00", 
  "enc_in_policy": 1, 
  "queue_new_to_top": false, 
  "ignore_limits_on_local_network": true, 
  "rate_limit_ip_overhead": true, 
  "daemon_port": 58846, 
  "torrentfiles_location": "/home/toor", 
  "max_active_limit": 8, 
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat", 
  "upnp": true, 
  "utpex": true, 
  "max_active_downloading": 3, 
  "max_active_seeding": 5, 
  "allow_remote": false, 
  "outgoing_ports": [
    0, 
    0
  ], 
  "enabled_plugins": [], 
  "max_half_open_connections": 50, 
  "download_location": "/home/toor", 
  "compact_allocation": false, 
  "max_upload_speed": 5.0, 
  "plugins_location": "/home/toor/.config/deluge/plugins", 
  "max_connections_global": 200, 
  "enc_prefer_rc4": true, 
  "cache_expiry": 60, 
  "dht": true, 
  "stop_seed_at_ratio": false, 
  "stop_seed_ratio": 2.0, 
  "max_download_speed_per_torrent": -1, 
  "prioritize_first_last_pieces": false, 
  "max_upload_speed_per_torrent": -1, 
  "auto_managed": true, 
  "enc_level": 2, 
  "copy_torrent_file": false, 
  "max_connections_per_second": 20, 
  "listen_ports": [
    6881, 
    6891
  ], 
  "max_connections_per_torrent": -1, 
  "del_copy_torrent_file": false, 
  "move_completed": false, 
  "autoadd_enable": false, 
  "proxies": {
    "peer": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }, 
    "web_seed": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }, 
    "tracker": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }, 
    "dht": {
      "username": "", 
      "password": "", 
      "hostname": "", 
      "type": 0, 
      "port": 8080
    }
  }, 
  "dont_count_slow_torrents": false, 
  "add_paused": false, 
  "random_outgoing_ports": true, 
  "max_upload_slots_per_torrent": -1, 
  "new_release_check": true, 
  "enc_out_policy": 1, 
  "seed_time_ratio_limit": 7.0, 
  "remove_seed_at_ratio": false, 
  "autoadd_location": "/home/toor", 
  "max_upload_slots_global": 4, 
  "seed_time_limit": 180, 
  "cache_size": 512, 
  "share_ratio_limit": 2.0, 
  "random_port": true, 
  "listen_interface": ""
}
Any help is appreciated. Thanks in advance.

[1] http://dl.dropbox.com/u/136062/deluge-speed-problem.png

Re: I can't limit the speed with deluge-console

Posted: Thu Apr 28, 2011 9:48 am
by Cas
I have tested on my box and I cannot reproduce.

What version of libtorrent and can you confirm that deluged is also 1.3.1 ?

Re: I can't limit the speed with deluge-console

Posted: Thu Apr 28, 2011 10:44 am
by cit
Yes, I can confirm that deluged is also 1.3.1:

Code: Select all

toor@103:~$ deluged --version
1.3.1
The version of libtorrent is as follows:

Code: Select all

toor@103:~/Source$ tazpkg search libtorrent

Search result for: libtorrent

Installed packages
================================================================================
libtorrent-dev          0.12.6            development.
libtorrent-rasterbar    0.15.5            development.
libtorrent-rasterbar-de 0.15.5            development.
================================================================================
3 installed package(s) found for : libtorrent

Re: I can't limit the speed with deluge-console

Posted: Thu Apr 28, 2011 11:10 am
by Cas
Are you able to test with the gtk client, either locally or remotely?

Re: I can't limit the speed with deluge-console

Posted: Fri Apr 29, 2011 8:38 am
by cit
Yes I've tested the GTK client but with the same result [1]. I assume that the problem is in my special setup, because outside this setup I can't reproduce this, too. I have a local tracker and the complete BitTorrent session is in a virtualized network. But I have no idea how this can be a problem. I also tried Deluge 1.3.1 on Ubuntu 10.10 in my setup, but with the same result.

[1] http://dl.dropbox.com/u/136062/deluge/deluge-gtk.png

Re: I can't limit the speed with deluge-console

Posted: Fri Apr 29, 2011 10:09 am
by Cas
Oh its a local network tracker then I think this config value might be the reason:

Untick 'Ignore limits on local network' in Preferences -> Bandwidth

For console this would be:

Code: Select all

config -s ignore_limits_on_local_network False

Re: I can't limit the speed with deluge-console

Posted: Fri Apr 29, 2011 11:34 am
by cit
Now it works, awesome! Thank you very much. :D