Check Linux Memory Usage Using Free Command

August 29, 2012     |     How To Guides,Linux

Print Friendly

In Linux, free command is used to get the information about the physical memory usage. However, understanding the output of free command is little tricky.

This article explains the output of the free command and shows the calculations to find the actual physical memory available for use by the applications.

Following is the typical output of ”free -m’ on an RHEL server.

# free -m
                   total       used       free     shared    buffers     cached
Mem:          4033       2807       1226          0        124        937
-/+ buffers/cache:      1746       2287
Swap:         5535       1337       4198

Let’s try to understand the meaning of each field.

Linux Free Command Output Explained

So you can see that although free physical memory is reported as 1226 MB, the actual memory available for the processes is 1746 MB. Let’s put all these in a set of formulas,

Total Physical Memory Available (RAM)      : 4033 MB
Used Physical Memory                                 : 2807 MB

Memory used by Kernel Buffers                  :    124 MB
Memory Used by Kernel Cached                 :   937 MB

Total memory which is used by the kernel but can be reclaimed :  124 MB + 937 MB = 1061 MB

Actual Used Physical Memory (Memory Used by Apps) : 2807 MB – 1061 MB = 1746 MB
Actual Free Physical Memory (Memory Available For Apps) : 1226 MB + 1061 MB = 2287 MB

Don't Miss a Post ! Subscribe to Our Free Email Newsletter.

{ 2 comments… read them below or add one }

Jordan September 24, 2012 at 4:07 am

This is one of the excellent post.Your blog information is very classic and good.I like this post.


Buster Dartt October 25, 2012 at 12:23 pm

I just want to mention I am beginner to blogging and seriously enjoyed this web site. Likely I’m planning to bookmark your blog . You surely come with wonderful articles. Bless you for sharing with us your website.


Leave a Comment

{ 1 trackback }

Previous post:

Next post: