LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-06-2014, 10:22 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
How to see if existing server ever maxes out RAM, for spec'ing out replacement


Hi everybody. I have an older RHEL server that I'm looking to replace with a new server running CentOS. Essentially it's a samba server and also runs lamppp for a very small website.

I'm trying to figure out how much RAM I need in the replacement server, so figured I should figure out how much it's using now, but have no idea how to do this really. Any suggestions?
 
Old 05-06-2014, 01:02 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I only have an anti-answer, not an answer. But it is still something you should understand.

Unless the old system has a severely insufficient amount of ram, it is using most of its ram for file caching (it is a Samba server). More or less ram probably just means more or less file caching, meaning less or more disk I/O.

I expect you can somehow measure the rate of disk reads vs. hits in the file cache. But you want to know how much better that would be with more ram. I have no idea how to measure that.

A commonly misunderstood place for the info on your initial question is the swap usage. I expect your system has some swap space configured and some of it is in use. It is a common misconception that any use of swap space is bad and indicates insufficient ram. That is not correct. A server that has been up a long time should have some swap space used. The amount of swap used won't vary much across the whole range of moderately insufficient ram through significantly excessive ram. If you have significantly insufficient ram then more swap will be used. If you have wildly excessive ram, no swap will be used. (If you don't enable swap then no swap will be used, which is a bad idea).
 
1 members found this post helpful.
Old 05-06-2014, 02:51 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Hi John, thanks for the reply. I do have swap on my server. Guess I'm just wondering if I should stick with what my current server is, or how much I should increase it since i'm moving to a new version of OS, etc. I mean, it is working now, but still figured i'd ask.

Yeah, I wasn't even going to take into account swap, since swap is going to swap anyway :-)
 
Old 05-06-2014, 03:35 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rjo98 View Post
How to see if existing server ever maxes out RAM
Any form of SAR: sar, Atop, Dstat, Collectl (hey Mark! ;-p) etc, etc reporting over time.
 
1 members found this post helpful.
Old 05-06-2014, 04:04 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks. I will check them out. Any of them have easier to understand/simpler output than the others that you would suggest?
 
Old 05-06-2014, 04:23 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Check them out, then ask?
 
Old 05-06-2014, 04:37 PM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
I did look at them.

sar makes my head spin so gotta reread when I get time later.
atop I think I need to leave running from the console for a while to see if it ever hits critical levels?
dstat also looks like a let it run and collect data tool, then I have to open the output in excel it sounds like
collect I didn't get to finish reading the man page for but will later.
 
Old 05-06-2014, 06:06 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes, that's the idea: let them collect details for some time. And because they all can output plain text you're basically free to do with it what you want.
 
1 members found this post helpful.
Old 05-07-2014, 08:55 AM   #9
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
OK, thanks.
 
  


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
[SOLVED] Replacement RAM FredJones Linux - Hardware 9 10-03-2013 03:55 PM
Recommendation for replacement/rewrite of existing ncurses frontends gjwalsh Programming 4 05-03-2012 12:27 AM
RPM spec file to replace existing config files. wills Linux - Server 2 09-29-2011 04:08 AM
How to get spec file from existing rpm? shaybery Linux - Software 4 01-11-2009 06:44 AM

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

All times are GMT -5. The time now is 12:23 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