Understanding the output of free memory
All,
I am trying to understand the out of free command. This is on a 4GB Redhat machine. This is what I get: total used free shared buffers cached Mem: 3108016 3063752 44264 0 142416 1696244 -/+ buffers/cache: 1225092 1882924 Swap: 2031608 1256 2030352 The output is in kilobytes. 1. Total Mem: is 3.108GB - I guess the remaining (4GB - 3.108GB) is being used by the Kernel and not displayed by the free command? 2. Buffers/Cache: Used: 1.225GB and Free: 1.8829GB So the total buffers/cache comes out to be 1.225+1.8829 = 3.108GB - which is the same as Total Mem. So I conclude that Buffers/Cache is the Actual RAM Memory available for applications? 3. If I have to answer - what is the free memory available in this machine and why? a) 44264KB (free Mem) b) 1882924KB (free -/+ buffers/cache) Thanks in advance |
Quote:
Most of it is unusable, probably because you have a non PAE kernel. You should seriously consider installing the package for a PAE kernel. Quote:
In other words 1.225GB is used by things other than buffer and cache. |
Quote:
Does that mean the total amount of RAM that is free? Or is the total amount of Free RAM just 44264KB? |
Quote:
For most practical purposes, you should consider memory used by buffers+cache to be free. If any process needs some memory when there isn't enough free (in the narrower sense of free) the kernel will normally take memory from buffers or cache. So in the broader sense of "free" (memory that is available for use when needed) buffers+cache is a kind of free memory. But because there are these two senses of the word "free" for free memory, the free command gives you the information both ways (how much is used and free if you count buffers+cache as used, then how much is used and free if you count buffers+cache as free). |
It is understandable but sth isn't right for me.
You says that : Quote:
142416 + 1696244 = 1838660 (!= 3063752) Code:
total used free shared buffers cached 3063752 - 1838660 = 1225092 thx for help. |
All times are GMT -5. The time now is 09:59 PM. |