PDA

View Full Version : Time to burn some rubber


kripkenstein
November 4th, 2006, 06:36 AM
Ok, I am happy to announce that, at long last, Deluge should be nearly on par with other bittorrent clients in terms of speed. Deluge+python-libtorrent (both in SVN) now supports Mainline DHT (the same used by utorrent), and allows you to set the maximum number of connections. Both options appear in the networking->advanced settings in the preferences. Note that they require a restart to come into effect. In addition Deluge now reports the correct number of peers&seeds on the torrent.

A test seemed to indicate that things are working well, performance was about on a par with utorrent, on the torrent I tried. However, the one odd thing was that Deluge seemed to connect to fewer peers than utorrent, even though the speed was similar.

Please tell me how the bittorrent network behavior appear to you, if you are using the latest svn. This is a tricky thing to measure, so the more reports, the better.

baze
November 4th, 2006, 07:28 AM
i just found that maximum connections is set to 80, but in the status bar DHT currently is up to 156 and it's still rising..
"connections" in the statusbar is at 30, so what is the number displayed at DHT? this is just not obious to me as a user.

kripkenstein
November 4th, 2006, 07:53 AM
i just found that maximum connections is set to 80, but in the status bar DHT currently is up to 156 and it's still rising..
"connections" in the statusbar is at 30, so what is the number displayed at DHT? this is just not obious to me as a user.

You're right, this could be explained better (maybe we should have a help facility, eventually?).

The number after DHT is the number of nodes on on the DHT network (Kademlia) which are your 'neighbors'. This is only for DHT purposes, i.e. for getting tracker-type information (peers, metadata). The 'max connections', on the other hand, refers to the 'connections' in the start of the statusbar. These are the peers to which you are connected using the Bittorrent protocol, i.e. the ones with which you intend to share actual data from the torrent. I hope this helps.

Btw, interesting that you get 156 in DHT, I have seen only 5 or 6 at most on my system here. Hopefully other people will post more numbers here so we can compare.

mithras86
November 4th, 2006, 08:16 AM
Could you please provide a debian package for the latest libtorrent? At http://kripkensteiner.googlepages.com/ is only the 0.2.99 availeble.

When I'n back in the evening I'll install the latest libtorrent and Deluge and post my troubles if there're any.

baze
November 4th, 2006, 08:30 AM
The number after DHT is the number of nodes on on the DHT network (Kademlia) which are your 'neighbors'. This is only for DHT purposes, i.e. for getting tracker-type information (peers, metadata). The 'max connections', on the other hand, refers to the 'connections' in the start of the statusbar. These are the peers to which you are connected using the Bittorrent protocol, i.e. the ones with which you intend to share actual data from the torrent. I hope this helps.
Ok, this clears things up, thank you.
Btw, interesting that you get 156 in DHT, I have seen only 5 or 6 at most on my system here. Hopefully other people will post more numbers here so we can compare.
at the moment it's at 274 ;)

kripkenstein
November 4th, 2006, 09:01 AM
Could you please provide a debian package for the latest libtorrent? At http://kripkensteiner.googlepages.com/ is only the 0.2.99 availeble.

When I'n back in the evening I'll install the latest libtorrent and Deluge and post my troubles if there're any.

Ok, I put up a .deb of the current svn of python-libtorrent at the link above. I called it 0.3.2, but don't put too much meaning into the name :)

Just to clarify, though, I won't be making .debs of unstable svn code on any regular basis.

armin76
November 4th, 2006, 01:14 PM
Hm, so deluge is not going to use DHT from libtorrent?

kripkenstein
November 4th, 2006, 02:28 PM
Hm, so deluge is not going to use DHT from libtorrent?

Why not? This is the DHT from libtorrent (which is Mainline, not Azureus).

armin76
November 4th, 2006, 04:00 PM
Why not? This is the DHT from libtorrent (which is Mainline, not Azureus).

I got confused, sorry :)

zachtib
November 4th, 2006, 04:09 PM
Could you please provide a debian package for the latest libtorrent? At http://kripkensteiner.googlepages.com/ is only the 0.2.99 availeble.

When I'n back in the evening I'll install the latest libtorrent and Deluge and post my troubles if there're any.

I've been posting dev versions of python-libtorrent here: http://deluge.mynimalistic.net/downloads/

obviously our version numbers don't quite match up, but whatever...

buildid
November 5th, 2006, 08:34 AM
getting more then 300 in DHT , client from svn is working fine so far

kripkenstein
November 5th, 2006, 08:39 AM
getting more then 300 in DHT , client from svn is working fine so far

Sounds good. How about number of connections, and download speed? Working ok?

P.S. So it's just me with low DHT numbers? :) Maybe I need to talk to my ISP...

mithras86
November 5th, 2006, 09:17 AM
Ok, I don't get any DHT connections, and I get warnings to do some port mapping. I have in my preferences a portrange from 49152 to 49153. Both are forwarded through my router, both with upd and tcp protocol. I tested it with a topgear torrent from the finalgear.com tracker.

But something else: i saw some bugs in the gui you changed lately:
http://img130.imageshack.us/img130/6835/schermafdrukdelugevoorklc7.th.png (http://img130.imageshack.us/my.php?image=schermafdrukdelugevoorklc7.png)
Here the radiobuttons are both selected, and I cannot unselect them (but the preferences xml file says i choose a download location every time)
http://img138.imageshack.us/img138/7817/schermafdrukdelugevoorkjw8.th.png (http://img138.imageshack.us/my.php?image=schermafdrukdelugevoorkjw8.png)
When i change the ports, the label doesn't change. After restarting the dialog (closing it, and open the preferences again), it's set ok. But this could be better handled i think (although I don't know if it look pretty, seeing the label's caption change all the time when increasing/decreasing the port range)

kripkenstein
November 5th, 2006, 09:38 AM
Ok, I don't get any DHT connections, and I get warnings to do some port mapping. I have in my preferences a portrange from 49152 to 49153. Both are forwarded through my router, both with upd and tcp protocol. I tested it with a topgear torrent from the finalgear.com tracker.

Odd. Can you click the 'test port' button, near the active port, and see what that says?


But something else: i saw some bugs in the gui you changed lately:
http://img130.imageshack.us/img130/6835/schermafdrukdelugevoorklc7.th.png (http://img130.imageshack.us/my.php?image=schermafdrukdelugevoorklc7.png)
Here the radiobuttons are both selected, and I cannot unselect them (but the preferences xml file says i choose a download location every time)
http://img138.imageshack.us/img138/7817/schermafdrukdelugevoorkjw8.th.png (http://img138.imageshack.us/my.php?image=schermafdrukdelugevoorkjw8.png)
When i change the ports, the label doesn't change. After restarting the dialog (closing it, and open the preferences again), it's set ok. But this could be better handled i think (although I don't know if it look pretty, seeing the label's caption change all the time when increasing/decreasing the port range)

The first is indeed a bug, thanks. The second is an issue I'm not sure how to deal with yet. It seems the simplest way is just to say that a restart is needed to change port (it messes up some things with libtorrent).

mithras86
November 5th, 2006, 09:42 AM
Odd. Can you click the 'test port' button, near the active port, and see what that says?The port was tested fine... But it's now solved. I should wait just a couple of seconds; DHT isn't working immediately. Now i've 40 connections, 39 DHT. So that's 97.5% :D

kripkenstein
November 5th, 2006, 10:14 AM
The port was tested fine... But it's now solved. I should wait just a couple of seconds; DHT isn't working immediately. Now i've 40 connections, 39 DHT. So that's 97.5% :D

Glad to hear that. Yeah, sometimes it takes a while to connect to DHT, it seems.

buildid
November 5th, 2006, 10:44 AM
Sounds good. How about number of connections, and download speed? Working ok?



The performance is much better for me with this svn version then with the stable version.

The speed is higher , and as i can see dht can be unchecked , usefull for some trackers i believe who dont like the dht ..
80 connections from an default setting of 80 gonna raise that setting ..
DHT is 303

ps, i dont need to restart DeLuge after i raise my connections , doew work without restarting for me ..

kripkenstein
November 5th, 2006, 10:52 AM
ps, i dont need to restart DeLuge after i raise my connections , doew work without restarting for me ..

That is very important information, thanks. Then perhaps it was just a coincidence that I didn't get more connections here on my system.

drezha
November 5th, 2006, 06:43 PM
Upgraded to the svn version.

Getting 13 connections, DHT 45/80 (seems normal because the torrents aren't being used much)

Found a possible bug mind. I set the number of uploads to 4 and I have 3 seeding torrents. Only two of these would upload until I changed the downloads to 4 as well. (Not currently downloading anything) So it appears the amount of uploading torrents is actually currently linked to downloading torrents.;)