SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124
Rep:
Quote:
Originally Posted by JamesGT
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.
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.
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. :/
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.