4000 seed+peer limit per torrent

General support for problems installing or using Deluge
Post Reply
rez
Member
Member
Posts: 12
Joined: Sat Nov 03, 2012 7:38 am

4000 seed+peer limit per torrent

Post by rez »

I have noticed that currently my peer list cannot become larger than 4000 per torrent even after weeks of seeding.
Further investigation showed that 4000 is the sum of two columns: seeders + peers.
This is true for different trackers.

I wasn't able to find any trace of this limitation in my config files both client-side and server-side (I use a separate linux machine for torrents with deluged 1.3.3 from wheezy)
I am not ulimiting anything and I want to get rid of this limitation: most of torrents have over 4k peers.

Could you please advise on removing this limit?
Thank you.

My config:
deluged: 1.3.3 from wheezy
client: 1.3.3 on all instances
distrib: Debian 6.0.6 squeeze
uname: Linux torrents 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux

Screenshot from client is attached below:
Attachments
4000-limit.PNG
4000-limit.PNG (22.29 KiB) Viewed 7137 times
rez
Member
Member
Posts: 12
Joined: Sat Nov 03, 2012 7:38 am

Re: 4000 seed+peer limit per torrent

Post by rez »

After some digging I have discovered that this is not Deluge issue, this is related to libtorrent configuration, namely 'max_peerlist_size' parameter.
However this setting seems not to be exposed for configuration via deluge core.conf.

Could you please advise on a way to pass desired value to libtorrent without having to rebuild it from scratch?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: 4000 seed+peer limit per torrent

Post by Cas »

We are working on exposing all the lt settings in one preferences tab for future version but the solution until then would be to manually add it to deluge core.py after line ~100:

Code: Select all

self.settings.max_peerlist_size = 1234
rez
Member
Member
Posts: 12
Joined: Sat Nov 03, 2012 7:38 am

Re: 4000 seed+peer limit per torrent

Post by rez »

Thank you, Cas.
Inserting this line right before applying settings helped.

Chunk of code for those who might be interested:

Code: Select all

        # Set session settings
        self.settings.send_redundant_have = True
        if deluge.common.windows_check():
            self.settings.disk_io_write_mode = \
                lt.io_buffer_mode_t.disable_os_cache
            self.settings.disk_io_read_mode = \
                lt.io_buffer_mode_t.disable_os_cache
        # Change max peers to setting other than default 4000
        self.settings.max_peerlist_size = 8000
        self.session.set_settings(self.settings)
garnertr
Member
Member
Posts: 17
Joined: Sun Jan 06, 2008 7:42 pm
Location: North Las Vegas, Nevada

Re: 4000 seed+peer limit per torrent

Post by garnertr »

ok stupid question time, but hey it's how I learn, I'm on windows, how do you edit the files? what would you use? Notepad?
rez
Member
Member
Posts: 12
Joined: Sat Nov 03, 2012 7:38 am

Re: 4000 seed+peer limit per torrent

Post by rez »

on windows, how do you edit the files
You can use any plaintext editor.
Personally I prefer Notepad++ for python editing on windows.
Post Reply