Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
Search Forums:



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    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-30-2009
Registered User
 

Join Date: Dec 2009
Posts: 34
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
Scrutinizer's Avatar
mother ate her
 

Join Date: Nov 2008
Location: Amsterdam
Posts: 5,305
Thanks: 77
Thanked 1,085 Times in 991 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.
Sponsored Links
    #3  
Old 12-30-2009
mark54g mark54g is offline Forum Advisor  
Registered User
 

Join Date: May 2008
Location: Northeastern United States
Posts: 871
Thanks: 1
Thanked 52 Times in 50 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: 34
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:20 AM.