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

Uploading much more than I am downloading?

Tags: None
(comma "," separated)
jdong
Registered Member
Posts
358
Karma
0
On one of my torrents right now, I've downloaded 600MB but uploaded around 1400MB. Is this normal behavior for bittorrent and a swarm where there's few seeds but a lot of peers? Or is some client taking advantage of ktorrent?
stoeptegel
Registered Member
Posts
1075
Karma
0

Thu Sep 28, 2006 6:13 pm
I think it's normal when the other peers do not upload that fast into swarm. I don't think there are any wholes in the protocol for that matter we can go around, other than speed limiting from client side. But maybe i am wrong... (never say never ;) )

But i notice this too now and then, and it's almost like other users limit their upload, probably after they take notice the progress in swarm isn't that fast.
I think this would be a reason where per torrent speed limiting could be in handy.
cyrylas
Registered Member
Posts
59
Karma
0

Sun Oct 01, 2006 3:16 pm
Hmm... I have opposite problem with Ktorrent.

I'm mostly downloading from privte tracker, where ratio is very important. Thus there're many seeders and lack of leechers. Ktorrent has problem with uploading: 300-400MB max per day, but in Azureus on the same torrents I can upload over 1GB per day.

That makes I can't use Ktorrent all the time - I would have lost my account because of low ratio :(
George
Moderator
Posts
5421
Karma
1

Mon Oct 02, 2006 4:29 pm
cyrylas wrote:Hmm... I have opposite problem with Ktorrent.

I'm mostly downloading from privte tracker, where ratio is very important. Thus there're many seeders and lack of leechers. Ktorrent has problem with uploading: 300-400MB max per day, but in Azureus on the same torrents I can upload over 1GB per day.

That makes I can't use Ktorrent all the time - I would have lost my account because of low ratio :(


Have you tried playing with the number of upload slots ?
cyrylas
Registered Member
Posts
59
Karma
0

Sat Oct 07, 2006 8:48 pm
I have 10 upload slots, which looks similar to Azureus settings measured by eye (it's config window is so mess, that I couldn't find that)

I've tried setting it to 5 and 15, but didn'r see any changes.

Today I've made another test:
Seeding 11 torrents both on Azureus and Ktorrent for 4 hours.

Results:

Azureus
Time: 13:130 - 17:30
Seeders: 802
Peers: 72
Seed/Peer ratio: 11.13
Uploaded data: 387 MB

KTorrent
Time: 18:00 - 22:00
Seeders: 758
Peers: 48
Seed/Peer ratio: 15.9
Uploaded data: 200 MB


All the numbers were taken at the end of te test.
I've noticed, that for the first 1-1.5 hour KTorrent was so fast as Azureus.
At the end of the test KTorrent has granted 5 upload slots:
4 out of 5 had set 6th column to yes and 5 out of 5 had set 7th column to yes (sorry, don't know how to translate that columns to english :) ).

To get more accurate stats, tommorow I'll try to do the test again.
neuron
Registered Member
Posts
54
Karma
0

Sun Oct 08, 2006 2:35 pm
this could be because ktorrent correctly sets TOS, while azureus often doesn't (depending on os and java implementation).

If your isp is handling TOS wrongly (TOS in ktorrent is set to maximum throughput, which should send the data through low latency, high bandwidth routing) this could be the problem.
cyrylas
Registered Member
Posts
59
Karma
0

Sun Oct 08, 2006 8:45 pm
neuron wrote:this could be because ktorrent correctly sets TOS, while azureus often doesn't (depending on os and java implementation).

If your isp is handling TOS wrongly (TOS in ktorrent is set to maximum throughput, which should send the data through low latency, high bandwidth routing) this could be the problem.


How can I check if TOS is working correctly in Azureus?

Other thing is, that I found this setting:
* Outgoing packet type-of-service Sets traffic class / type-of-service (TOS) field in the IP header for outgoing packets.

Azureus leaves this unset by default, meaning the defaults for the underlying OS are used.
Example values are:

* 0x02 for IPTOS_LOWCOST
* 0x04 for IPTOS_RELIABILITY
* 0x08 for IPTOS_THROUGHPUT
* 0x10 for IPTOS_LOWDELAY

Underlying network implementations may ignore this value, so this option is highly dependent on OS and JRE versions.

On Windows 95/98/NT for TCP sockets the IP_TOS socket option is ignored and all packets are sent with the TOS set to 0.
On Mac OS X setting TOS does not work yet, due to a bug in Apple's JRE.
On Windows 2000 and XP IP TOS needs to be enabled via the registry setting HKEY\LOCAL MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\DisableUserTOSSetting as a REG DWORD type set to the value 0.

So I set it to 0x08 and will see if it does a difference...

Earlier I tred to set to set upload slots to 5 in KTorrent. Results:
KTorrent running 13:50-15:50 sent 120MB
Azuerus running 18:00-22:00 sent 243MB.


BTW, I've just found 'upload slots' setting in Azureus :) It's located not in program settings, but in torrent options. And default it's set to 4.
neuron
Registered Member
Posts
54
Karma
0

Sun Oct 08, 2006 8:55 pm
You can't really see if TOS is working without setting up traffic shaping and checking where the packets go.

Not that I know of anyway.

For me using java 1.5.0_06 on linux it does not work though. Ktorrent setting it properly helped my traffic shaping scripts a lot ;)
George
Moderator
Posts
5421
Karma
1

Mon Oct 09, 2006 4:14 pm
Maybe we should make TOS configurable.
neuron
Registered Member
Posts
54
Karma
0

Mon Oct 09, 2006 4:46 pm
George wrote:Maybe we should make TOS configurable.


Can't hurt, although maximum throughput should never mean less throughput, there's a lot of screwy isp's out there though.
cyrylas
Registered Member
Posts
59
Karma
0

Mon Oct 09, 2006 5:00 pm
Where's TOS set in the sources? I can try to set it to smth else, recompile KTorrent and see, if it chages anything...
neuron
Registered Member
Posts
54
Karma
0

Mon Oct 09, 2006 5:17 pm
cyrylas wrote:Where's TOS set in the sources? I can try to set it to smth else, recompile KTorrent and see, if it chages anything...


try searching for setsockopt
George
Moderator
Posts
5421
Karma
1

Mon Oct 09, 2006 5:52 pm
cyrylas wrote:Where's TOS set in the sources? I can try to set it to smth else, recompile KTorrent and see, if it chages anything...


On 3 locations in libktorrent/mse/streamsocket.cpp :

sock->setTOS(IPTOS_THROUGHPUT)
jdong
Registered Member
Posts
358
Karma
0

Mon Oct 09, 2006 9:05 pm
Just to chime in, I too have noticed while seeding Edgy Eft beta ISO's that KTorrent is not nearly as aggressive in seeding as Azureus or even the Python bittorrent/bittornado clients.

KTorrent uploads for a 30 seconds, goes silent for 10 seconds, then start uploading again, and so on, while Azureus is more or less constantly pumping data out.
neuron
Registered Member
Posts
54
Karma
0

Tue Oct 10, 2006 12:18 pm
jdong wrote:Just to chime in, I too have noticed while seeding Edgy Eft beta ISO's that KTorrent is not nearly as aggressive in seeding as Azureus or even the Python bittorrent/bittornado clients.

KTorrent uploads for a 30 seconds, goes silent for 10 seconds, then start uploading again, and so on, while Azureus is more or less constantly pumping data out.


how are you monitoring bandwidth? Azureus'es bandwidth monitoring atleast takes an average over longer time than ktorrent does, so it looks more constant, but in reality isn't.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]