LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2015, 03:56 PM   #1
ITareliteralyMyInitials
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Rep: Reputation: Disabled
Unhappy IS the memory consumption ok or not ok and why?


Hello all ,

As indicated in the title of my question , it is about my server's memory consumption .
Well to come to the bottom of this and post a simple question :
free -m
displays
total used free shared buffers cached
Mem: 3959 3829 129 0 158 2656
-/+ buffers/cache: 1014 2944
Swap: 3999 4 3995

IS this ok or not ok ?
The thing is that looking around in google, i am supper confused ;
active, inactive, physical, virtual, swap, cache, wired ....
there must be some simple explanation for me to tell if my system is ok or not. what should i keep an eye on. I would really like to understand this once and for all, it can't be impossible
Other information :
System : Red Hat 4.1.2-45
 
Old 08-17-2015, 04:29 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Yes it's fine

It would help if you would post your output in [code][/code] tags to preserve formatting (namely columns) though.

In short, Linux uses unused memory as a disk cache. The idea is that if the memory isn't being used for programs, it might as well be used for something useful. This is why your output shows almost all of your memory being used with nothing free and a huge cache.

This accelerates file reads by loading commonly-used files into the cache, so the next time the file is read it just comes straight from RAM instead of having to be re-read off of the disk. This cache will be dumped instantly when the memory is required for a program, however, so as far as your programs are concerned it's not really used. This is the second line in the output, "-/+ buffers/cache". Look at the free column on that line (2944) - this is how much memory you have available for your progams, considering the cache can be dumped immediately if needed.

Last edited by suicidaleggroll; 08-17-2015 at 04:32 PM.
 
1 members found this post helpful.
Old 08-17-2015, 04:34 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Side Note: /proc/version does not tell you what version of Red Hat you are running; it only tells you the kernel version. It also includes the fact that the kernel was compiled with version 4.1.2-45 of gcc on RedHat. If you want to know the Red Hat version do:

Code:
cat /etc/redhat-release
 
1 members found this post helpful.
Old 08-18-2015, 03:04 AM   #4
ITareliteralyMyInitials
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello suicidaleggroll, smallpond thank you for the answers and tips above, I think what you said to me approves with what -i overall found in the internet-.
 
Old 08-18-2015, 03:18 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Read linuxatemyram.
 
  


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
Too much memory consumption: how to reduce? cenani Linux - Server 7 08-25-2013 06:34 AM
Strange memory consumption edeamat Linux - Server 5 03-14-2012 10:54 PM
[SOLVED] understanding memory consumption aamerjavaid Linux - Newbie 3 11-10-2011 06:40 AM
Memory Consumption of 10.2 naparhi Slackware 4 08-27-2006 03:10 AM
Slackware memory consumption muhkuhmasta Slackware 5 07-15-2004 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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