Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
google site



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2009
Registered User
 

Join Date: Dec 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Understand output of "free" command

Hi Friends,

I am really confused with the output of "free" command on redhat linux.
I can see caching and buffer output on two different areas on the output.
Please let me know whats the difference of these two different outputs.
Here I am pasting the command output of my server.


Code:
[root@ww-vl-ora06 ~]# free -m
                total       used       free     shared    buffers     cached
Mem:         12011       9825       2186          0        243       5829
-/+ buffers/cache:       3752       8259
Swap:        16378        313      16065

Regards,
arumon :-)

Last edited by pludi; 12-30-2009 at 07:41 AM.. Reason: added code tags
Sponsored Links
  #2  
Old 12-30-2009
root cause analyst
 

Join Date: Nov 2008
Location: Amsterdam
Posts: 1,771
Thanks: 5
Thanked 78 Times in 75 Posts
Hi, if you add buffers and cache together, you get: 6072. If you subtract 6072 from used you get 3752 used and if you add it to free you get 8259 free.
  #3  
Old 12-30-2009
mark54g mark54g is offline Forum Advisor  
Registered User
 

Join Date: May 2008
Location: Northeastern United States
Posts: 459
Thanks: 0
Thanked 2 Times in 2 Posts
You may be interested in running this instead:


Code:
vmstat -s -S M | grep mem

you can alias that if you like. Something like this works well:


Code:
alias meminfo='vmstat -s -S M | grep mem'


Last edited by mark54g; 01-05-2010 at 07:49 AM..
  #4  
Old 01-05-2010
Registered User
 

Join Date: Dec 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Thank you everybody for the replys.

I understood it more clearly.


Regs,
Arumon
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Output of Free command in unix? govindts UNIX for Advanced & Expert Users 2 12-16-2009 11:25 AM
Unable to understand disk layout and where are the free space kumarmani Solaris 9 09-09-2009 08:05 AM
Sed command - help me understand niks Shell Programming and Scripting 2 05-19-2009 12:13 PM
Need help to understand chatr command kprasanna_79 HP-UX 1 10-03-2008 06:36 AM
Can't understand sar command shaan_dmp UNIX for Dummies Questions & Answers 1 10-23-2007 07:04 AM



All times are GMT -4. The time now is 07:51 AM.