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:
4000 seed+peer limit per torrent
4000 seed+peer limit per torrent
- Attachments
-
- 4000-limit.PNG (22.29 KiB) Viewed 7137 times
Re: 4000 seed+peer limit per torrent
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?
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
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
Thank you, Cas.
Inserting this line right before applying settings helped.
Chunk of code for those who might be interested:
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
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
You can use any plaintext editor.on windows, how do you edit the files
Personally I prefer Notepad++ for python editing on windows.