Avoid getting stuck at 99.9 %

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Osq
Posts: 2
Joined: Fri Apr 01, 2011 7:29 pm

Avoid getting stuck at 99.9 %

Post by Osq »

I am sure this problem has been discussed hundreds of times before: A problem I feel has plagued all bittorrent clients since before time is the long delay in completing the last tiny bit of a transfer.

This is a very recent example, where downloading a 1.1 GB file wasted almost half the time at the 99.9 % stage, reducing the effective download speed by 50 %:
[21:00:00.155] Progress: 0.4%, dl from 11 of 60 peers (19 KiB/s)
[21:02:00.155] Progress: 5.6%, dl from 10 of 60 peers (2230 KiB/s)
[21:04:00.155] Progress: 34.9%, dl from 11 of 60 peers (1621 KiB/s)
[21:06:00.185] Progress: 64.3%, dl from 11 of 60 peers (1885 KiB/s)
[21:08:00.155] Progress: 93.3%, dl from 17 of 60 peers (1874 KiB/s)
[21:10:00.165] Progress: 99.9%, dl from 14 of 60 peers (7 KiB/s)
[21:12:00.165] Progress: 99.9%, dl from 4 of 60 peers (0 KiB/s)
[21:14:00.175] Progress: 99.9%, dl from 4 of 60 peers (0 KiB/s)
[21:16:00.175] Progress: 99.9%, dl from 5 of 60 peers (0 KiB/s)
[21:16:28.219] State changed from "Incomplete" to "Complete"
It seems to me that a relatively simple algorithm could resolve this.

At the stage where there are no remaining pieces not actively being transferred, request slow pieces in duplicate from preferably known fast peers, alternatively simply drop the download connection to extremely slow peers. In fact, dropping the download connection to extremely slow peers (say < 5 % of the average peer download rate) might be a good strategy at all times, freeing up both download slots for the client and an upload slot for the peer.

Thoughts?
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: Avoid getting stuck at 99.9 %

Post by gunzip »

what version of Transmission were you using when you posted those results? in TR 2.22 the endgame was improved/fixed, and from what i've seen pretty much eliminated that as a problem. but you're right, older versions did have a tendency to hang at the end.

https://trac.transmissionbt.com/wiki/Ch ... rsion-2.22
Osq
Posts: 2
Joined: Fri Apr 01, 2011 7:29 pm

Re: Avoid getting stuck at 99.9 %

Post by Osq »

Gunzip, I am unfortunately not able to check the version number at this time, but it is definitely an older version than 2.22. Since it seems 2.22 has resolved this, this request should be disregarded. BTW, I am really impressed by the recent pace of development.
Post Reply