upstream usage

Feel free to talk about anything and everything in this board.
Post Reply
nutsy
Newbie
Newbie
Posts: 7
Joined: January 21st, 2011, 2:12 pm

upstream usage

Post by nutsy »

Hi There,

I have a 50Mb downstream and 1.5Mb upstream connection (i know  ::)) - when downloading, sabnzb doesn't seem to be able to get above 25-30Mb/sec - after scratching my head as to why for a while, I noticed that the upsteam on the connection was getting saturated at 1.5Mb/sec, which explains why the downloads wouldn't go any higher.

Interestingly enough, newsbin is able to manage a full 50Mb/s - and while downloading at this speed the upstream usage generally hovers around the 1Mb/s mark. Any idea's why sab's upsteam usage is notably higher? I'm using giganews with SSL. I've tried varying the number of connections with no success.

Is there anything I could adjust in sabnzb that might help, or should I perhaps be looking at TCP tuning in the OS?

It's worth noting that my sabnzb pc is freebsd, and the newsbin pc windows 7.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: upstream usage

Post by shypike »

The main thing that SABnzbd sends upstream are article numbers.
Are you using the same amount of connections?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: upstream usage

Post by jcfp »

Just tried on Linux, set the speed limit all the way down to 50 mbit. While downloading from 2 different servers, 12 connections total, upload was around 300 kbit (used iftop to check). To get the upload to average 1 Mbit, I had to set the download speed cap well north of 100 mbit.

Don't know if the specific download matters, i.e. like when some uploader made the file parts real small, that might need more upload?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: upstream usage

Post by shypike »

Article identifiers are fairly equal in size.
Smaller articles, mean more article requests.
But this would vary per NZB and the same NZB should have equal overhead on every client.
The only other factor increasing the upstream bandwidth would be frequent retries.
Like when you have a normal and a backup server and the normal server doesn't have the articles.
This would double the upstream bandwidth.
nutsy
Newbie
Newbie
Posts: 7
Joined: January 21st, 2011, 2:12 pm

Re: upstream usage

Post by nutsy »

Hi There,

Thanks for your replies - appreciate your input.

The upstream usage seems pretty consistent over multiple NZB files - I've tried less and more connections than newsbin, doesn't seem to make too much difference. I've also tried turning SSL off, again, no change.

Nothing complicated like fill servers, only one server set up - giganews.

I'm going to try an install of the latest on windows, see how that performs. Figure there must be something really funky with my network setup somewhere!
nutsy
Newbie
Newbie
Posts: 7
Joined: January 21st, 2011, 2:12 pm

Re: upstream usage

Post by nutsy »

so, the windows box performs identically to newsbin - downloads at close to 50Mb/s and uploads around 1Mb/sec

First I'm going to try updating the freebsd box to 0.5.6, then I'll look at network tuning. Anyone have any ideas where to start?
User avatar
john3voltas
Release Testers
Release Testers
Posts: 115
Joined: January 17th, 2008, 5:35 pm
Location: Lisbon/Portugal

Re: upstream usage

Post by john3voltas »

All I can say is I have a similar setup (sabnzbd/freebsd) and I can go as high as 30Mb with around 300~400kb/s.
My link is 30Mb, so I cannot go higher than that.
Linux performs equal to freebsd as I am currently testing on fedora 14.
Cheers
SABnzbd 0.6.0Alpha11 on Fedora 14-64bit laptop.
Usenet-News, TeraNews, newszilla6.xs4all.nl and reader.ipv6.xsnews.nl.
IPv6 connections powered by Hurricane Electric.
Can pull 30Mbit nntp on a 30Mbit FTTH link.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: upstream usage

Post by sander »

jcfp wrote: Just tried on Linux, set the speed limit all the way down to 50 mbit. While downloading from 2 different servers, 12 connections total, upload was around 300 kbit (used iftop to check).
Completely offtopic: tried iftop, and what a cool tool. Apart from my own traffic per site, I see a lot of Apple devices in my iftop overview ... I'm on a coffeecompany hotspot ... zeroconf at work, I guess ... 
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: upstream usage

Post by sander »

And now ontopic:

with only SAB using the network, I had iftop running, and here are the results:

Code: Select all

TX:             cumm:  3.56MB   peak:    238Kb
RX:                     190MB           11.1Mb
So my upstream:downstream ration is 1:53 (cumm) and 1:47 (peak). So in my case (ADSL) my downstream (11+ Mbps) is the bottleneck, not my upstream (1 Mbps).
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
nutsy
Newbie
Newbie
Posts: 7
Joined: January 21st, 2011, 2:12 pm

Re: upstream usage

Post by nutsy »

so, I solved this eventually - after messing around with various test's on clean installs and updating sabnzbd, I slowly ruled out hardware and other considerations until i found a few weird kernel network tuning parameters that I'd tried to use to speed up samba. Took them out, and walla, identical performance to windows/my clean freebsd test installs. Wish I'd remembered those first!

currently :

TX:             cumm:  44.6MB   peak:   0.99Mb
RX:                    1.94GB           42.7Mb


so not as good as others - can't get anywhere near 300kbps US at 50Mb/s DS, but it's working well enough for me now to stop worrying about it. In fairness there's also some background traffic in above stats - mainly just an SSH session and a sabnzbd webif open.

Thanks to all who took the time to reply - without your stat's I would probably have never gathered enough motivation to try and fix the issue. Owe you all some beers.
Last edited by nutsy on January 26th, 2011, 6:48 pm, edited 1 time in total.
User avatar
john3voltas
Release Testers
Release Testers
Posts: 115
Joined: January 17th, 2008, 5:35 pm
Location: Lisbon/Portugal

Re: upstream usage

Post by john3voltas »

As said, mine varies a bit between 300 and 400Kbps depending on the DS speed which can go as high as 30Mbps.
But usually it stays around 350kbps and 25Mbps, which means theoretically it should raise to 700kbps if my line could go as high as 50Mbps.
As said, all theory. ;)
SABnzbd 0.6.0Alpha11 on Fedora 14-64bit laptop.
Usenet-News, TeraNews, newszilla6.xs4all.nl and reader.ipv6.xsnews.nl.
IPv6 connections powered by Hurricane Electric.
Can pull 30Mbit nntp on a 30Mbit FTTH link.
Post Reply