0

This question already has an answer here:

I am running an application which needs to be restarted everyday. I am noticing that when I close this application and I run "free -m" It says:

          total       used       free      shared       buffers        cached 
Mem:      1009        863        146       0            16             815

-/+ buffers/cache:    31         978
Swap:     0           0          0

How come I only have 146mb free? It is the only application I am running and when I restart the whole system I have 980mb free.

marked as duplicate by wurtel, Anthon, goldilocks, jimmij, jasonwryan Feb 19 '15 at 17:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    serverfault.com/questions/85470/… – phe Feb 19 '15 at 15:27
  • What is the application ? – Jeffrey Feb 19 '15 at 15:27
  • @Jeffrey It's srcds_linux. – Zero Feb 19 '15 at 15:30
  • Try testing your app with valgrind or similar. – Faheem Mitha Feb 19 '15 at 15:39
  • 1
    You actually have 978 MB free. It is normal that the system will fill up the cache. – goldilocks Feb 19 '15 at 16:04
0

Do not panic, all is fine. Here is explanation why:

Excerpt:

To see how much ram is free to use for your applications, run free -m and look at the row that says "-/+ buffers/cache" in the column that says "free". That is your answer in megabytes:

$ free -m
             total       used       free     shared    buffers     cached
Mem:          1504       1491         13          0         91        764
-/+ buffers/cache:        635        869
Swap:         2047          6       2041

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