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

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

  • What is /etc/meminfo? Are you sure you aren't talking about /proc/meminfo? – Zoredache Oct 26 '12 at 19:43

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.


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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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