Link to home
Start Free TrialLog in
Avatar of Xetroximyn
XetroximynFlag for United States of America

asked on

How do I tell how much RAM is used on linux box?

Webmin tells me that <7GB is being used out of the 48GB we have.  Top tells me 47GB is used.  The server has been up for over a year without reboot... so I am not sure if top might be showing me any ram that was ever used and webmin is showing me what is actively used...

We are getting a new server soon to replace this one... I am trying to see if we really need 48GB again or if we can save and get less because we are not using it anyway.  Usage should stay about the same
ASKER CERTIFIED SOLUTION
Avatar of ☠ MASQ ☠
☠ MASQ ☠

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Xetroximyn

ASKER

thanks!

free -m reports 47GB used... But is this accurate?  For a server that has been running 500+ days straight... I mean in windows I see two metrics... "free" and "Available".  I assume the stuff that is not "free" but is "Available" is memory that was used at one point, but is not currently used.  

So if free -m is telling me whats free... I think I might be more curious in whats "available"... as that would  probably be a more accurate measure of how much RAM I am currently concurrently using... right?
Avatar of ☠ MASQ ☠
☠ MASQ ☠

Right - but Linux also caches data from the hard drive pre-emptively much more that Windows so you aren't getting a picture of what is actually needed you're seeing what's used and Linux is great at going "OK I've got some free RAM available to me, how can I best use it to give optimum performance?".  Htop might be better for what you want as it shows what really is being used together with up time, line by line like Task Manager's metrics.
Thanks!  The server is redhat.  I tried yum install htop and I got "No package htop available."  How can I install htop on redhat?
You need to install the rpmforge prerequisites first
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'd love to use htop... however it appears
yum install epel-release

Open in new window

yields
No package epel-release available.

Open in new window


And I think I need epel-release to install htop... so I'm lost :-/
Looks like you need rpms on newer Redhat releases to enable Epel:
http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
Thanks!   I think redhat support told me they don't support EPEL... if I wanted to remove EPEL what would I need to do?
>>redhat support told me they don't support EPEL
They can't support EPEL, since it's a repository of packages not found in the RedHat repository.

What they meant is that they don't support packages installed from EPEL.