What is the point of a torrent client that cannot even handle 50 running torrents?

Discussion of Transmission that doesn't fit in the other categories
Post Reply
bilalghouri
Posts: 2
Joined: Sat Feb 27, 2016 11:58 am

What is the point of a torrent client that cannot even handle 50 running torrents?

Post by bilalghouri »

What is the point of a torrent client that cannot even handle 50 running torrents?
It either says too many open files or freezes (when the torrent has too many seeds)
The global peer limit is set to 38527 and per torrent peer limit is 500
max openfiles in debian is set to 500000

Code: Select all

sysctl -n fs.nr_open: 1048576
fs.file-max = 9913074

ulimit -a:

ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 257803
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 500000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 257803
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
ulimit -Hn , -Sn all have 500000 as the limit
So I dont see why transmission should be freezing with just 1 torrent of archlinux iso file that tries to create 800 peer connections (that too is weird because per torrent max peers is 500)
Transmission is the latest stable for debian jessie (2.84)
DHT and UTP are enabled (disabling them does no good either, it ends up crashing later)
transmission-daemon is running as root. (no gui, its a server)

This is the torrent file: https://www.archlinux.org/releng/releas ... 1/torrent/
Even if the torrent client is freshly started, when I add this torrent file, the webgui freezes, then I have to restart transmission daemon
lsof shows about 865 open descriptors AFTER starting this torrent.
Before starting it, it shows 23 to 26

The other issue, after starting 50 to 60 low peer torrents, new torrents start giving "cannot save resume file too many open files". Seriously? Its running on a dedicated server and it cant even handle 60 torrents?
I dont want to look for alternative clients because I have the whole system setup with transmission's rpc, ill need to hire a developer again to write new code for some other client's api.
Is this behaviour normal of there is something wrong with my servers? all 3 of my servers are have the same issue.
cfpp2p
Posts: 290
Joined: Sat Aug 08, 2009 3:14 pm

Re: What is the point of a torrent client that cannot even handle 50 running torrents?

Post by cfpp2p »

This is the torrent file: https://www.archlinux.org/releng/releas ... 1/torrent/
archlinux torrent has 250 webseeds. What you are experiencing has been fixed with a great patch by x190 https://trac.transmissionbt.com/ticket/5923
bilalghouri
Posts: 2
Joined: Sat Feb 27, 2016 11:58 am

Re: What is the point of a torrent client that cannot even handle 50 running torrents?

Post by bilalghouri »

Thank you for the quick reply!
Okay so I need to apply all of the patches in series then?
Also, what about the too many open files issue?
cfpp2p
Posts: 290
Joined: Sat Aug 08, 2009 3:14 pm

Re: What is the point of a torrent client that cannot even handle 50 running torrents?

Post by cfpp2p »

Okay so I need to apply all of the patches in series then?
I'm not totally sure, I've forgotten. :? I think x190 might be able to clarify.
"cannot save resume file too many open files".
https://trac.transmissionbt.com/ticket/5161#comment:3
cfpp2p
Posts: 290
Joined: Sat Aug 08, 2009 3:14 pm

Re: What is the point of a torrent client that cannot even handle 50 running torrents?

Post by cfpp2p »

The global peer limit is set to 38527 and per torrent peer limit is 500
That's way too big. https://trac.transmissionbt.com/ticket/5306#comment:3
blinding
Posts: 29
Joined: Mon Mar 07, 2016 12:48 am

Re: What is the point of a torrent client that cannot even handle 50 running torrents?

Post by blinding »

Most residential gateways can only handle a few hundred connections at a time. Even if your program and OS can handle a lot of connections they will max out the gateway. This includes UDP connections as the NAT translation has a table to keep track of them. The usual symptoms of this are that your P2P will be unable to open new connections, you will not be able to browse the internet, and the gateway may lock up or crash.
Post Reply