This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Bad peer selection or chunk usage?

Tags: None
(comma "," separated)
Maex
Registered Member
Posts
5
Karma
0

Bad peer selection or chunk usage?

Thu Nov 27, 2008 9:19 am
Hi, I have read the topics on slow downloads and the references therin. However I really don't think my "problem" has to do with some network congestion/config problems on my side.

I am experiencing really slow downloads (eg the current Fedora 10 torrents) since I switched from FC5 and ktorrent 2.2.5 to F10 and 3.1.4.

What I am observing is that when I check the statistics for peers I see a lot of peers (within my limits) but most of them are "unused". Just if I look at the seeds (I assume this are those with 100% Availability) I have currently 22 for one torrent of which 12 seem to have never been selected (Up/Down 0B/0B) since I restarted ktorrent 3 hrs ago. This is leaving the download rate at crawling 30 KB/s at average. Sometimes the torrent even stalls.
However if I get a lucky hit, a really good connected peer gets selected and I gain download rates up to 500 KB/s (which is the max I have configured).

Also, the number of chunks being downloaded always stays in the range 5-10. Sometimes it really like jumps up to 30, but nevertheless most of them have 0 assigned peers.

What really puzzles me is that I have never ever seen such behaviour through the about last 2.5 years I have been using the older version of ktorrent.

Thanks,
\Maex
Maex
Registered Member
Posts
5
Karma
0
Kinda answering my own question.
I don't know why, but going to Settings -> Queue Manager and changing the values for Maximum downloads/seeds from default 3/5 to 120/60 really helped.

Maybe I am totally wrong, but I thought this defines how many *torrents* in parallel are downloaded/seeded and not how many peers get selected (and that is what I read from the tooltips).

\Maex
George
Moderator
Posts
5421
Karma
1
Maex wrote:Hi, I have read the topics on slow downloads and the references therin. However I really don't think my "problem" has to do with some network congestion/config problems on my side.

I am experiencing really slow downloads (eg the current Fedora 10 torrents) since I switched from FC5 and ktorrent 2.2.5 to F10 and 3.1.4.


I tried one of those fedora torrents with 3.1.5 and it starts running at full speed pretty fast.

What I am observing is that when I check the statistics for peers I see a lot of peers (within my limits) but most of them are "unused". Just if I look at the seeds (I assume this are those with 100% Availability) I have currently 22 for one torrent of which 12 seem to have never been selected (Up/Down 0B/0B) since I restarted ktorrent 3 hrs ago. This is leaving the download rate at crawling 30 KB/s at average. Sometimes the torrent even stalls.


How many upload slots have you got configured ?
George
Moderator
Posts
5421
Karma
1
Maex wrote:Kinda answering my own question.
Maybe I am totally wrong, but I thought this defines how many *torrents* in parallel are downloaded/seeded and not how many peers get selected (and that is what I read from the tooltips).


Yes, those settings configure how many torrents the queue manager will run at the same time.
Maex
Registered Member
Posts
5
Karma
0
George wrote:How many upload slots have you got configured ?


Default: 2
stoeptegel
Registered Member
Posts
1075
Karma
0

Fri Nov 28, 2008 1:50 pm
2 is a little bit low if you have great bandwidth, i would set it to 10KB/s per upload slot on one torrent.
Maex
Registered Member
Posts
5
Karma
0

Fri Nov 28, 2008 2:12 pm
stoeptegel wrote:2 is a little bit low if you have great bandwidth, i would set it to 10KB/s per upload slot on one torrent.


Does this have any implications on the download speed?

I have now installed "rtorrent".
I have selected 10 more or less random torrents for testing.
Set it up in ktorrent and it was crawling slow.
Stopped it.
Set it up in rtorrent with defaults and it was lightning fast using up to 550 KB/s download bandwith and the maximum of 35 KB/s (which were the only two things I did configure in rtorrent).

What I really don't understand is why ktorrent is listing so many peers (seeds) in the "peers statistics" which it doesn't even use. They don't get chunks assigned and they show no downloaded data.
As I said before, I have never seen this in ktorrent 2.2.x
George
Moderator
Posts
5421
Karma
1

Sat Nov 29, 2008 2:10 pm
This is probably the webseeds bug :

http://ktorrent.org/forum/viewtopic.php?t=2723
Maex
Registered Member
Posts
5
Karma
0

Sat Nov 29, 2008 3:48 pm
George, first of all: thanks for looking at it and taking care. Very much appreciated.

George wrote:This is probably the webseeds bug :
http://ktorrent.org/forum/viewtopic.php?t=2723


Checked my logs ... no webseeds messages.

But I get tons of
Sat Nov 29 16:23:28 2008: Authentication to XXX. : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX: failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX: failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure
Sat Nov 29 16:23:28 2008: Authentication to XXX : failure

Sometimes they seem to be timeout related (all XXX are different IP addresses, masked them to protect the innocent ;-), sometimes there are no "Timeout occured" messages.

Also from the webseeds posts I noticed:
Mi Nov 26 18:42:36 2008: Timeout occurred
Mi Nov 26 18:42:36 2008: Authentication to XXX.199.46 : failure
Mi Nov 26 18:42:36 2008: Timeout occurred
Mi Nov 26 18:42:36 2008: Authentication to XXX.199.46 : failure
Mi Nov 26 18:42:36 2008: Timeout occurred
Mi Nov 26 18:42:36 2008: Authentication to XXX.199.46 : failure
Mi Nov 26 18:42:36 2008: Timeout occurred
Mi Nov 26 18:42:36 2008: Authentication to XXX.199.46 : failure
why are there so many simultaneous(?) connection setup attempts to always the same IP address?

And I also get a lot of
Sat Nov 29 16:23:21 2008: Accepted connection from XXX:62276
Sat Nov 29 16:23:22 2008: Lets not connect to our self

Wouldn't it be good to store the own externally visible IP address and not connect to it all the time? If a disconnect happens and the hosts gets a new externally visible IP address it will be detected again and the new one will overwrite the old, so no problems.
George
Moderator
Posts
5421
Karma
1

Mon Dec 01, 2008 5:24 pm
Do you get any connections at all ?

Failed connection setups are not that uncommon, but if all of your connection setups fail something is going wrong.

It could be that your router can't handle so many half open connections, try setting maximum number of connection setups to 10 or 5 (Settings -> Network)

As for connecting to your self, ktorrent doesn't know your external IP address, we could find out using UPnP, but seeing that UPnP is part of a plugin, it is easier to just close those connections.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]