Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What does free command witj -o indicate , man page says it disables buffer adjusted line. It subtracts buffer memory from free memory. What does this mean

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Buffers and cache use up memory. The used/free values include display memory being used when it is consumed by buffers and cache. See this page for a description. http://www.linuxatemyram.com/

Here is the difference on my system. Basically my system has 2,282,608 kbytes of memory that could be used by programs if it was needed. But a significant portion of that is currently being used for buffers/cache which speed up the normal operation of the system. If a program requested RAM the memory allocated to the cache would be released and allocated to the program.

cfrancy@enterprise:$ free
             total       used       free     shared    buffers     cached
Mem:       3934188    3619656     314532          0     778412    1189664
-/+ buffers/cache:    1651580    2282608
Swap:      4882424        960    4881464

cfrancy@enterprise:$ free -o
             total       used       free     shared    buffers     cached
Mem:       3934188    3619464     314724          0     778416    1189672
Swap:      4882424        960    4881464
share|improve this answer
    
+1 cookie well explainned –  Prix Aug 12 '10 at 7:41

In addition to what @Zoredache said the calcs are like:

how much memory is really being used:

used - (buffers + cached)

how much memory is really free:

free + (buffers + cached)

With the above calculation, it makes more sense now (-/+ buffers/cache:)

"minus buffers and cache" for the used column and "plus buffers and cache" for the free colum

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.