Page 1 of 2

Slow SSL Downloads

Posted: August 3rd, 2012, 11:48 pm
by spazlon
I just installed sabnzbd on an Ubuntu Server 12.04 (64 bit) VM. I am trying to transition from a Windows 7 install which I have been using for the last year or so.

My problem is that my downloads are slow when I connect to an SSL server. By slow I mean like 35KBps. When I use a non-SSL server (both are Astraweb) I get normal download rates.

The problem is on my Ubuntu machine because SSL downloads work fine on my Windows 7 setup.

What can I do to fix this?

Thanks.

Re: Help With Categories

Posted: August 4th, 2012, 1:23 am
by shypike
Weird, i have no such problems with Ubuntu Server on both virtual
and real hardware. Astraweb works ok too.
The only difference is that I use 32bit variants of the OS.
Is Python for Ubuntu 32 or 64 bit?

Re: Slow SSL Downloads

Posted: August 13th, 2012, 3:20 am
by spazlon
I'm not sure. How can I check?

Re: Slow SSL Downloads

Posted: August 13th, 2012, 5:21 am
by shypike
Type "python" on the command line.
The signon will tell you.

Re: Slow SSL Downloads

Posted: August 13th, 2012, 5:29 am
by spazlon
Uhmm... I still don't know...


ryan@services:~$ python
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Re: Slow SSL Downloads

Posted: August 13th, 2012, 5:37 am
by shypike
OK, it doesn't tell you.
I'm also not really sure that it matters.
So far I have only tested on 32bit VMWare images.
I'll see if I can find some time to try a 64bit image.

Re: Slow SSL Downloads

Posted: August 13th, 2012, 5:38 am
by sander
This is how you can determine the bitness of python:

Code: Select all

sander@R540:~$ ll `which python`
lrwxrwxrwx 1 root root 9 Jun 27 14:13 /usr/bin/python -> python2.7*

sander@R540:~$ file /usr/bin/python2.7 
/usr/bin/python2.7: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x623b662458af705775fcbd2576ca06eaa82bc482, stripped

sander@R540:~$ 
My python is " x86-64", so 64bit.

HTH

Re: Slow SSL Downloads

Posted: August 13th, 2012, 6:23 am
by spazlon
Same, 64bit.


ryan@services:~$ ll `which python`
lrwxrwxrwx 1 root root 9 Apr 17 20:20 /usr/bin/python -> python2.7*
ryan@services:~$ file /usr/bin/python2.7
/usr/bin/python2.7: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x623b662458af705775fcbd2576ca06eaa82bc482, stripped


sander, do you have any issues with SSL downloads?

Re: Slow SSL Downloads

Posted: August 13th, 2012, 6:46 am
by sander
spazlon wrote:
sander, do you have any issues with SSL downloads?
No ... I never use SSL ... ;-). I now have activated sslreader.eweka.nl, disabled all other servers, and started a download ... just the usual 2.3 MB/s.

Re: Slow SSL Downloads

Posted: August 13th, 2012, 7:03 am
by spazlon
Is there anything I can show you guys so you can point me in the right direction for trouble shooting. I installed on Linux to force myself to become familiar with it, but at this point I may have to go back to using Win7.

Re: Slow SSL Downloads

Posted: August 13th, 2012, 8:08 am
by sander
spazlon wrote:Is there anything I can show you guys so you can point me in the right direction for trouble shooting.
You could check your SSL speed in general. Maybe there is something in the VM's network layer causing delay. Do this:

Code: Select all

wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.1.tar.bz2
wget https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.5.1.tar.bz2
... and report back the speeds.

Or even beter: install another news-downloader, and see it's SSL speed. Options: NNTPgrab and NZBget.

Or run Ubuntu from a live-USB-stick/CD on the bare metal and not in a VM.

spazlon wrote: I installed on Linux to force myself to become familiar with it, but at this point I may have to go back to using Win7.
But don't you think this is part of becoming familier with Linux?

But: If your only goal is running SABnzbd, and that works perfect for you on Windows, why switch?

.

Re: Slow SSL Downloads

Posted: August 13th, 2012, 8:22 am
by shypike
Did you install the VMWare tools on your virtual OS?
That way it will use optimized drivers instead of emulating the network hardware.

Re: Slow SSL Downloads

Posted: August 14th, 2012, 1:02 am
by spazlon
sander wrote:
spazlon wrote: I installed on Linux to force myself to become familiar with it, but at this point I may have to go back to using Win7.
But don't you think this is part of becoming familier with Linux?
Oh yeah, I didn't mean for it to sound like I was complaining. I was just at a loss for where to start troubleshooting. Thanks for giving some guidance.

So I installed the VMWare tools first since that seemed to be the most obvious thing I missed. Then I tried the HTTP download and got full 6Mb/s speeds. Downloaded from HTTPS and got the same speeds.

Then I tested the SSL connection from Astraweb and everything worked perfectly! VMWare tools was the problem.

Thanks to both of you for helping me out! I really appreciate it.

Re: Slow SSL Downloads

Posted: August 15th, 2012, 2:41 am
by spazlon
Ok, so it isn't working. It worked for one day, but now it is slow again.

It appears to be all SSL downloads because when I downloaded that kernel via HTTP it worked fine, but HTTPS was only 5KBps.

What could cause this problem in Linux?

Re: Slow SSL Downloads

Posted: August 15th, 2012, 8:09 am
by hanker
spazlon wrote:I just installed sabnzbd on an Ubuntu Server 12.04 (64 bit) VM. I am trying to transition from a Windows 7 install which I have been using for the last year or so.

My problem is that my downloads are slow when I connect to an SSL server. By slow I mean like 35KBps. When I use a non-SSL server (both are Astraweb) I get normal download rates.

The problem is on my Ubuntu machine because SSL downloads work fine on my Windows 7 setup.

What can I do to fix this?

Thanks.

I'm running sab under Debian squeeze. I have my max download speed set to 400 kB/s. This worked fine when I didn't have ssl enabled. However once I enabled ssl, my download speeds dropped to maybe 10 - 20 kB/s.

I raised my number of connections from 4 to 15, and that took care of it - downloads back to running at 400 kB/s. I'm not sure why this made a difference, but it did.