Page 1 of 1

4000 seed+peer limit per torrent

Posted: Sat Nov 03, 2012 8:05 am
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:

Re: 4000 seed+peer limit per torrent

Posted: Mon Jan 21, 2013 6:52 pm
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?

Re: 4000 seed+peer limit per torrent

Posted: Mon Jan 21, 2013 10:58 pm
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

Re: 4000 seed+peer limit per torrent

Posted: Tue Jan 22, 2013 3:59 pm
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)

Re: 4000 seed+peer limit per torrent

Posted: Wed Feb 13, 2013 5:54 am
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?

Re: 4000 seed+peer limit per torrent

Posted: Fri Sep 13, 2013 9:03 am
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.