Page 1 of 1

[SOLVED] Upload speed limiting download in raspberry pi

Posted: Sat Dec 29, 2012 8:04 am
by pilluli
Hi,

I have been successfully using deluge on a headless server for years now, no major problems and everything working perfectly (congrats and thanks to the devs for this excellent piece of software). My setup is ubuntu 10.04, libtorrent 0.14.10 (official ubuntu package in lucid) and deluge 1.3.5 (self compiled). Also tried with self-compiled libtorrent 0.16.5 and, as said, no complains.

However recently I wanted to "upgrade" my old server and I am trying a raspberry pi. I am using raspbian (so debian testing), libtorrent 0.15.10 (debian package) and again self compiled deluge 1.3.5. I am finding big problems if (and only if) I cap my *upload* speed (on a per torrent basis). I am trying with several torrent files with plenty of seeders and no leechers so basically I am only downloading. If I don't set the torrent *upload* speed (set it to -1) then everything works and I download at my maximum capacity (600KB/s). If I try to cap the upload speed (something like 5, 10 or 20 KB/s) then my download speed goes between to 20 - 40 KB/s. This is very reproducible, as soon as I apply the upload cap in the web-ui the download starts to go down. This is using both SD card and USB hdd as downloading folders. Funny thing is that if I set the upload speed to 0 KB/s the download does not seem to be limited... :-?

Of course, same torrent in the old ubuntu server works perfectly even setting the up speed to something ridiculous such as 1 KB/s. I am using the same config files for both machines.

Is this a known behavior? My internet speed is crap (specially the up speed) and need to control this for torrenting. Anyone using deluge and raspberry with success?

Best regards,


EDIT: Some more testing, first of all setting up speed to 0 KB/s is identical to -1 so not limiting and therefore download stays the same. :)
There seem to be a relation between the upload speed I set and the maximum download I get:

-1K upload gets me top download at 600K download
20K upload gets around 450K download
10K upload gets round 250K download

and so on... this actually seems sensible (to cap download based on upload) but:

1) Why does not happen in my ubuntu server?

2) What can people like me with such different upload / download speeds do? I usually keep my ratio by other means (bonuses, time seeding, ...)

Second regards and sorry for the long babbling!!

Re: Upload speed limiting download in raspberry pi

Posted: Sat Dec 29, 2012 7:42 pm
by pilluli
Finally I have solved the problem. I will post it here just in case it can help others.

It seems that the upload speed setting applied "per torrent" basis was affecting the global upload speed and thus the download speed was limited accordingly. This was happening in both self compiled and debian deluge package so my guess is that libtorrent may be the problem.

In any case, the solution has been to compile both deluge and libtorrent (I removed the debian package and let deluge compile its shipped version) from source code in the raspberry. After that, the upload speed was indeed affecting only the torrent and could lower it without affecting the general download speed.

Regards,