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.

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

2 Answers 2

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

 
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.