LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-12-2016, 12:34 PM   #1
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Rep: Reputation: 51
Slow transfer speeds?


Hello!

I am running Slackware64 14.1 on a dedicated server that I lease each month. Up until December 28th, everything was great and had been since I started using it about 2 years ago.

I went to reboot the server and upon rebooting, things seemed to have changed in download speeds. I have tried doing a traceroute to the server from various locations(U.K., Kansas City, MO, USA, My Home(USA)) and everything comes out ok. I checked the logs, nothing seems to have changed anywhere. When I do a speed test out of the server, I get fantastic speeds (500 Mbps up and down), when I update the server with Slackpkg, I get decents speeds (2 Mbps), when I redownloaded the Slackware Torrents, I get 200-300 Mbps...but when I try to use SCP, SFTP or just download files through a browser, I am lucky if I get 4 Mbps. I used to get up to two or three files downloading at once through SFTP or SCP at 200 Mbps without a problem.

I also copy files to a service via WEBDAV, and I get great speeds to it (60Mbps), but now it seems there are errors. It never completes sending the file. It'll send 500 MB, then restart, send 400MB, then restart, send 600MB, then restart...it'll do that 15 times before it gives up sending it.

I've checked for errors with the NIC, nothing seems to be there. Nothing is in the logs that stand out...

My guess is it has something to do with the Secure part in SFTP, SCP and WEBDAV using HTTPS. Is it possible something with SSHD or some other secure config or setup is messed up? How would you check that?

Any ideas to troubleshoot this would be great, thank you.

James
 
Old 01-12-2016, 04:47 PM   #2
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
Is the CPU maxing out during secure transfers?
If the number of bits that the SSL / SSH keys were generated with was very high, it could in theory slow down the transfers. Not sure why it would only become apparent after a reboot though.

You can check an rsa key with something like;
Code:
openssl rsa -noout -text -in /path/to/rsa_key_file
(Or whatever you named your ssh key.)

The SSL private cert can be checked in the same way.
You can check the SSL public cert with something like;
Code:
openssl x509 -noout -text -in /etc/httpd/wherever.your.public.cert.pem
Public-Key: (2048 bit)

If the keys have nothing to do with it, the only other thing I can think of right now is if there are some weirdy firewall processing rules that only apply to SSH/SCP/HTTPS.

There's also a "Compression" option for sshd_config that can be good for slower connections but can slow down faster connections.
 
Old 01-12-2016, 05:48 PM   #3
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,597

Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
And, at a lower level,

Check the detected duplex of the eth interfaces on the server and nearest switch. I have seen one lock to full, and the other lock to half, and it worked just fine: with tons of error packet resends and sharply reduced throughput.
 
Old 01-12-2016, 06:59 PM   #4
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
try disabling ipv6.
 
Old 01-15-2016, 09:33 AM   #5
Fred-1.2.13
Member
 
Registered: Jan 2006
Location: Midwest USA
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124

Rep: Reputation: 59
Quote:
Originally Posted by JamesGT View Post
Hello!

I am running Slackware64 14.1 on a dedicated server that I lease each month. Up until December 28th, everything was great and had been since I started using it about 2 years ago.

I went to reboot the server and upon rebooting, things seemed to have changed in download speeds. I have tried doing a traceroute to the server from various locations(U.K., Kansas City, MO, USA, My Home(USA)) and everything comes out ok. I checked the logs, nothing seems to have changed anywhere. When I do a speed test out of the server, I get fantastic speeds (500 Mbps up and down), when I update the server with Slackpkg, I get decents speeds (2 Mbps), when I redownloaded the Slackware Torrents, I get 200-300 Mbps...but when I try to use SCP, SFTP or just download files through a browser, I am lucky if I get 4 Mbps. I used to get up to two or three files downloading at once through SFTP or SCP at 200 Mbps without a problem.

I also copy files to a service via WEBDAV, and I get great speeds to it (60Mbps), but now it seems there are errors. It never completes sending the file. It'll send 500 MB, then restart, send 400MB, then restart, send 600MB, then restart...it'll do that 15 times before it gives up sending it.

I've checked for errors with the NIC, nothing seems to be there. Nothing is in the logs that stand out...

My guess is it has something to do with the Secure part in SFTP, SCP and WEBDAV using HTTPS. Is it possible something with SSHD or some other secure config or setup is messed up? How would you check that?

Any ideas to troubleshoot this would be great, thank you.

James
I will just throw this out there... some time back I experienced a similar effect, I never figured it out and ended up reloading... however, I did notice an oddity when troubleshooting, if I logged on as root my speeds were normal, if I logged on as a regular user it was painfully slow.

Anyway, just throwing that against the wall
 
Old 01-16-2016, 08:47 PM   #6
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by Hangaber View Post
Is the CPU maxing out during secure transfers?
Nope.

Quote:
Originally Posted by Hangaber View Post
If the keys have nothing to do with it, the only other thing I can think of right now is if there are some weirdy firewall processing rules that only apply to SSH/SCP/HTTPS.
That might be. I will check that as I used this: http://docs.slackware.com/howtos:security:ssh

to set it all up, except for changing the ports.

Quote:
Originally Posted by Hangaber View Post
There's also a "Compression" option for sshd_config that can be good for slower connections but can slow down faster connections.
I didn't fool with that, but I checked and there is nothing in there for compression being on.

Thank you!
 
Old 01-16-2016, 08:51 PM   #7
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by wpeckham View Post
Check the detected duplex of the eth interfaces on the server and nearest switch. I have seen one lock to full, and the other lock to half, and it worked just fine: with tons of error packet resends and sharply reduced throughput.
There's only 1 eth interface, and it's on full. :/
 
Old 01-16-2016, 08:56 PM   #8
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by number22 View Post
try disabling ipv6.
That didn't have a noticeable effect.
 
Old 01-16-2016, 08:58 PM   #9
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by Fred-1.2.13 View Post
I will just throw this out there... some time back I experienced a similar effect, I never figured it out and ended up reloading... however, I did notice an oddity when troubleshooting, if I logged on as root my speeds were normal, if I logged on as a regular user it was painfully slow.

Anyway, just throwing that against the wall
I'll give that whirl and see what happens.
 
Old 01-17-2016, 07:30 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,597

Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Expanding ... and correction.

Quote:
Originally Posted by JamesGT View Post
There's only 1 eth interface, and it's on full. :/
Quite wrong, actually. That eth interface has a CAT5/CAT5e jumper connecting it to ANOTHER eth interface on some device that gives it access to the rest of the network (and, I assume, internet). Is it also on full?


That asked, I rather suspect it is just fine and there is a different cause. The error count on that interface would climb were it the duplex issue.
You might see if there is an update to OpenSSH, zlib, or OpenSSL in the chain that addresses
 
Old 01-18-2016, 01:02 PM   #11
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
Did you try to turn off Autonegotiation for Ethernet? When cable or Ethernet card degrading, testing different speed help to identify this problem.
 
Old 01-20-2016, 06:29 AM   #12
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,597

Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Here is a test you can try:
If possible, run an FTP listener (in a private chroot with limited resources and permissions for security, if you are, like me, not very trusting). Then do a file transfer of a file on the order of the common size, the size that has been displaying the performance hit.
The performance under FTP will depend upon the underlying infrastructure and networking, not OpenSSH. This will either confirm or disprove the software application component.
If it is slow, it will leave hardware, Kernel, and drivers only to be considered.
If it is fast, then you have an OpenSSH issue (or one of the libraries it depends upon) and can focus on the real cause of the problem.

Either way, disable ftp when you have completed the test, and let us know what you find.

Last edited by wpeckham; 01-20-2016 at 06:30 AM.
 
Old 01-24-2016, 03:41 PM   #13
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Looks like this may have been a culmination of many things just happening at once.

A couple days later, without any other changes, my speed improved to all my typical locations except home. I could download at full speed from my work, from my UK VPS, from my Kansas City VPS...everywhere but home. In checking my speed(should be 100 down/4 up), I was only getting 7 down and 3 up. I reset the modem and router to no change.

I checked the router for an update, and it had several. I updated them and upon resetting the router, my speeds went back to normal. In downloading from my server, I am back to getting my regular download speeds.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow USB transfer speeds iball8888 Linux - Hardware 16 12-15-2010 08:17 PM
Slow USB transfer speeds iball8888 Linux Mint 1 12-14-2010 09:40 PM
Slow transfer speeds lew Linux - Networking 8 09-14-2009 07:52 AM
Slow NTFS Transfer Speeds OpenCircuit Slackware 1 12-11-2005 05:27 PM
Very slow transfer speeds via LAN TBomb Linux - Networking 6 07-26-2005 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration