These are chat archives for anacrolix/torrent

24th
Apr 2018
Matt Joiner
@anacrolix
Apr 24 2018 05:00
@elgatito When you say number of peers, are you talking about how many addresses you're scraping from various sources?
@toby That's right, currently the DHT servers created by a torrent Client have a few things tweaked, but the primary link is that the Client announces on each server, and announces received are added back to the appropriate Torrent. I'm heading in the direction of allowing arbitrary DHT servers to be attached to the Client, so you can do whatever else you want with those servers, including intercepting and manually handling any announces.
@elgatito If I understand correctly, you're expecting every peer address obtained to result in a connection. Unfortunately it just never happens. Peer addresses stick around in the system for hours to weeks, clients pop up and disappear all the time, don't respond for a while, go down, are overloaded with other activity etc.
In my experience, 10-20 peers might result in 2-3 flaky connections on average. 100+ peers you start to get somewhere very reliable. Of course sometimes you get lucky and hit a generous peer right away. Let me know if I've misunderstood the issue.
Matt Joiner
@anacrolix
Apr 24 2018 05:09
Here's how mine looks on the same torrent, maybe you can see something in it: https://paste.ubuntu.com/p/MfKS95jB7S/
Denis
@elgatito
Apr 24 2018 05:09
@anacrolix yes, i was talking about making more connections for a low-seeded torrents. I will try to investigate low speed that happens sometimes at the start of a download, when it comes to hundreds of KBsec, stays that level for about 30 sec andthen gets to 8000KBsec in few seconds
Matt Joiner
@anacrolix
Apr 24 2018 05:09
other clients typically have timer-based choking routines, every 10s they're supposed to reevaluate their connections and decide to whom to upload
Denis
@elgatito
Apr 24 2018 05:13
I just want to try to find the reason. When J stop the torrent and start another frkm same tracker - speed gets to max bandwidth in few seconds
Sometimes I wait for a minute, i see there are 10 peers, 0 connected, and nils stay for minute, then suddenly speed comes to maximum
That is why i'm saying that is looks like some lock is on fire
Matt Joiner
@anacrolix
Apr 24 2018 05:17
i really couldn't say, you're at the whims of the network and your peers. can you do some profiling? have you captured the output of /debug/perf and /debug/lockTimes?
Denis
@elgatito
Apr 24 2018 05:18
No, sorry, not yet, but I remember. Trying to fix all the raisec issues and then will proceed with debiugging /i hope/
Toby Padilla
@toby
Apr 24 2018 13:19
@anacrolix allowing arbitrary DHT servers sounds like a great idea! Happy to help if possible.
Matt Joiner
@anacrolix
Apr 24 2018 22:48
Thanks @toby