Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it true when talking about values in /proc/meminfo file?

[Memory used by applications] = MemTotal - (MemFree + Buffers + Cached + SwapCached)

share|improve this question
What is /etc/meminfo? Are you sure you aren't talking about /proc/meminfo? – Zoredache Oct 26 '12 at 19:43
@Zoredache, yes, thank you for the correction. – Valera Leontyev Oct 26 '12 at 19:46
up vote 1 down vote accepted

Yes, what you are saying is essentially correct. That is one rough way to get the memory used by applications.

The formula holds true, nonetheless.

share|improve this answer

A great article breaking down meminfo can be found on RedHat's site here

For the record:

MemTotal: Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code).

Also, its not that exact of a science when figuring out available and used memory. Linux caches all the memory it can and uses it as needed.

Free -m will help display the current memory usage in MB

free -m

It would also be beneficial to visit LinuxAteMyRAM

share|improve this answer
That doesn't contradict the asker's statement, though... nor really confirm it. Just covers all the background related. – Jeff Ferland Oct 26 '12 at 22:18

Your Answer


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.