[SOLVED] IS the memory consumption ok or not ok and why?
Linux - NewbieThis 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
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.
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
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.
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:
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-.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.