Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-26-2012, 02:40 PM   #1
LQ Newbie
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Why vmstat -SM -s is or free -g is not showing the actual free mem?

Below given is the output of free and vmstat commands.

 free -g
             total       used       free     shared    buffers     cached
Mem:            62         62          0          0          0         57
-/+ buffers/cache:          4         58
Swap:           47          0         47

 vmstat -SM -s
        64387 M total memory
        64135 M used memory
        13530 M active memory
        46465 M inactive memory
          251 M free memory
          849 M buffer memory
        59122 M swap cache
        49151 M total swap
           59 M used swap
        49092 M free swap
     77703868 non-nice user cpu ticks
         7923 nice user cpu ticks
     34475008 system cpu ticks
   8231970196 idle cpu ticks
      3035244 IO-wait cpu ticks
        10267 IRQ cpu ticks
      3451431 softirq cpu ticks
            0 stolen cpu ticks
    473449962 pages paged in
   1126118996 pages paged out
         7365 pages swapped in
        47433 pages swapped out
   3056098293 interrupts
   1712540905 CPU context switches
   1345208584 boot time
     32273308 forks
The system is at a total idle state.But free command shows 0 free.
vmstat "used memory" also shows that entire memory is used.

But nothing is running in the system.

What is correct way to find the free memory on Linux 2.6.32-220.el6.x86_64

Last edited by Tinkster; 09-26-2012 at 10:03 PM. Reason: Added code tags for clarity
Old 09-26-2012, 06:28 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

You have found it - you're just interpreting it right.

There are a number of excellent threads with very detailed explanations
of what you see here on LQ, take a few minutes to search & read them,
instead of someone having to write it out for you specifically all
over again ...

Old 09-26-2012, 08:57 PM   #3
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75

Rep: Reputation: 19


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Very high fault pages with free mem abiadak Linux - Server 11 11-10-2011 02:49 PM
vmstat and top shows wrong free memory ? czezz Solaris / OpenSolaris 15 02-05-2010 09:02 AM
vmstat and sar -r free memory discrepancy AlucardZero Solaris / OpenSolaris 31 03-26-2009 11:42 AM
total free space is different than actual sushmi Linux - Newbie 2 06-04-2007 02:48 AM
Free Memory according to vmstat Camino Linux - Newbie 3 02-27-2006 10:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration