upload rate sags when download rate is high

General support for problems installing or using Deluge
Post Reply
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

upload rate sags when download rate is high

Post by lvm »

I've noticed several times that when I start downloading several torrents and max out available bandwidth upload rate drops considerably. Check the chart - it was all fine when it was leeching 4-5 slow torrents during the night but when I've added several high-bandwidth torrents in the morning, upload rate dropped way below the maximum.

Image

I don't think it an ISP problem - uploading files with programs other than deluge runs at the expected bandwidth. I have a 2048/512 connection, bandwidth limit in deluge is set to 160/45. Max connections is set to 256, upload slots: 8, half-open: 8, others unlimited, tried going up and down 2 times with these - no perceptible effect. CPU usage seldom tops 40% of one core (2-core system). 12 torrents are being downloaded, 100 in total. So?
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: upload rate sags when download rate is high

Post by lvm »

Even more interesting: at around 4pm I've removed download bandwidth limitation in deluge and that had considerably improved upload rate, although not up to the possible maximum.

Image

And sorry, quite forgot in my first post: 0.5.8.9, linux 64-bit.
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: upload rate sags when download rate is high

Post by loki »

When you are fully utilizing your connection are you able to do other tasks like web browsing? Or is it really slow? It sounds to me like you are not getting the same upload speed as you were quoted therefore it's maxing out your connection. You could try a download speed test when you are not downloading or uploading and see if your rated speed is relatively close to your actual speed.
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: upload rate sags when download rate is high

Post by lvm »

loki, in my second message you can see that increasing download speed also increases upload speed, so you cannot be right. It is more likely that due to some design shortcoming 'service' packets utilize the same bandwidth and subject to the same limitations as 'data' packets so restricting upload bandwidth affect the deluge's ability to communicate with trackers and/or other clients (DHT is disabled though) and thus indirectly affects the upload speed as well. Only guessing, of course.
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: upload rate sags when download rate is high

Post by lvm »

I was able to raise upload speed by drastically reducing number of concurrent connections to about 48-64. Optimal zone is fairly narrow, a bit more and I start to run into the same problem again, a bit less and both upload and download rates start to drop. I don't understand why that helped though, NAT table is far from being exhausted and I cannot think of anything else.
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: upload rate sags when download rate is high

Post by loki »

The router?
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: upload rate sags when download rate is high

Post by lvm »

Nope. I've transferred the settings from rtorrent running on NSLU2/unslung (!) and it had no problems whatsoever with the same network gear.
lvm
Seeder
Seeder
Posts: 130
Joined: Sat Apr 19, 2008 6:05 am

Re: upload rate sags when download rate is high

Post by lvm »

lvm wrote:I was able to raise upload speed by drastically reducing number of concurrent connections to about 48-64.
I was wrong here, number of connections affects this problem but only very indirectly, now I hope I've cracked this bug - it is caused by the speed limiter plugin (Speed Limiter By: Marcos Pinto Version: 0.1 Set the desired speed limit per torrent.). If deluge starts to upload a torrent with upload speed limit set AND global speed limit it also set then torrent upload speed is indeed limited as set but overall upload speed drops way below the overall limit. After I removed all individual torrent upload limits I've never had a recurrence of this bug - nice and clean 100% outgoing bandwidth utilization even with unlimited connections.
Post Reply