LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-05-2009, 06:34 AM   #1
jaredscott
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Rep: Reputation: 0
SSH server Requirements


Hi guys

Please could someone assist me with a SSH query that I have

I plan on allowing 150-200 SSH connections to a Linux box and I was wondering what type of hardware and internet connection speed I would require

Each SSH connection will be transferring about 12kbps and although the maximum number of connections are 150-200, realistically I am sure that the server will only recieve about 80-120

Thanks in advance
 
Old 11-05-2009, 07:10 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
hmm. You can do the math. You want a capability for a max 2.4Mbps. I don't see any reason why most hardware shouldn't be able to handle that, it's the network that's at issue, and the question is whether you are connecting from your home, a colo, or what? You're probably not going to be able to do it from home, unless you have a very unusual home setup. See http://en.wikipedia.org/wiki/Broadband_Internet_access for a summary of speeds of various kinds of connections.
 
Old 11-05-2009, 07:30 AM   #3
jaredscott
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Thanks for your response

That line speed should be very easy to achieve

Does anyone know how much RAM and CPU is needed per SSH connection (average)
 
Old 11-05-2009, 08:48 PM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
According to top on my Sun server, I'm using about 5M+7M total size each ssh connection, but the actual resident memory varies and is less than that total. That's a root process and the user process (2 processes) that are spawned for each connection. If you have a Linux system, and have some ssh connections, try top. You can enter c while viewing top and then ssh, and it will show you just the ssh connections. Here's a sample from my Sun server:

Code:
   PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
 11557 user1      1  59    0 7424K 5264K sleep    0:00  0.00% sshd
  9491 user1      1  59    0 7424K 1488K sleep    0:09  0.00% sshd
 15429 user2      1  59    0 7424K 5336K sleep    0:01  0.00% sshd
  5519 user1      1  59    0 7424K 1808K sleep    0:01  0.00% sshd
 27151 user3      1  59    0 7424K 1792K sleep    0:01  0.00% sshd
  6583 user4      1  59    0 7552K 1648K sleep    0:01  0.00% sshd
 15428 root       1  59    0 5472K 3280K sleep    0:00  0.00% sshd
 11556 root       1  59    0 5472K 3112K sleep    0:00  0.00% sshd
  5597 root       1  59    0 4656K 1912K sleep    0:00  0.00% sshd
  5518 root       1  59    0 5472K 1080K sleep    0:00  0.00% sshd
 27150 root       1  59    0 5472K 1016K sleep    0:00  0.00% sshd
  6582 root       1  59    0 5472K  960K sleep    0:00  0.00% sshd
  9490 root       1  59    0 5472K  896K sleep    0:00  0.00% sshd
According to the top man page

Code:
     SIZE Total size of the process (text, data, and stack) given
          in kilobytes.

     RES  Resident memory: current amount of process memory  that
          resides in physical memory, given in kilobytes.
 
Old 11-06-2009, 01:27 AM   #5
jaredscott
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Thanks for that detailed response

Based on your report, I will budget 12MB of RAM per user, so if I need to support 150 SSH connections to my Linux box, I will need 1.8GB of RAM plus about 200MB for a light Linux OS, I am looking at about 2GB which shouldnt be a problem

Are there any other things that I should worry about if a single box is accepting 150 SSH connections? What type of processing power would I need?

Oh and I am hoping to run this solution on a fairly powerful VPS (virtual private server) in the states... I have been told that I should rather stick with dedicated machines but they are way more expensive... What are your thoughts?

Thanks
 
Old 11-12-2009, 03:33 AM   #6
jaredscott
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Hi

Can anybody assist with this query?

Thanks
 
Old 11-12-2009, 06:49 AM   #7
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
I would think that most server class machines could handle that without too much trouble. I've never used a virtual server, but I presume they have service agreements that tell you what resources you are guaranteed and what you will be charged for based on usage.

I hadn't offered a comment before, because you wanted feedback on the virtual server question. If someone with firsthand experience with virtual servers could jump in with some examples, that might reassure you. Otherwise, since it's a virtual server, you could look into what the scaling options are for the service you are looking at. Can you easily ask for more resources (and pay more) if you find that your first attempt is inadequate?
 
Old 11-13-2009, 12:45 AM   #8
jaredscott
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by choogendyk View Post
they have service agreements that tell you what resources you are guaranteed and what you will be charged for based on usage.
That is correct

Quote:
Originally Posted by choogendyk View Post
Can you easily ask for more resources (and pay more) if you find that your first attempt is inadequate?
The problem is that most VPS providers only sell them in tiers or in packages. For example, plan 1 could be 2.4GHZ, 512MB RAM, 60GB HDD and then the next one would effectively double all the hardware with the exception of the processor

This is all good and well, but unfortunately this means that the price jumps quite a bit as well and in most instances, the only reason why I would take a "bigger" plan would be to benefit from more RAM, nothing else. (So far, all the providers Iv looked at do not allow you to increase memory without taking on another plan)

It seems that if I need a lot of memory, the only way I am going to get it is to have a dedicated server, which means the entire box belongs to me (and not split up into multiple XEN/etc virtual machines)

But if I can grab a suitable VPS that has enough memory, is reliable and most importantly, offers a high level of PERFORMANCE for my product, then my problem is solved because VPS's are very affordable and flexible when it comes to growth

Has anyone had good/bad experiences using a VPS for their products?

Thanks for all the responses thus far
 
  


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
PXE server hardware requirements (probably NFS server hardware requirements) Ipolit Linux - Networking 0 07-27-2009 01:33 AM
XDMCP server hardware requirements cvelasquez Linux - Server 1 07-21-2007 01:21 PM
Hardware requirements for file server Tortanick Linux - General 2 12-31-2006 03:10 PM
What are the PC requirements to set up server/s? yanar99 Linux - Newbie 10 12-14-2003 01:24 PM
Web Server Requirements Poorman Linux - General 6 07-11-2002 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:31 AM.

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