go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  How many total memory is allocated to my Linux box?
 
Subject: How many total memory is allocated to my Linux box?
Author: Linux
In response to: Linux Memory Management
Posted on: 09/12/2012 07:55:00 PM

That is A=595 (MB).

# free -m | grep 'Mem' | tr -s ' ' | cut -d ' ' -f 2



 

> On 09/12/2012 07:54:09 PM Linux wrote:

You can use free to find out all memory allocated to your Linux box and how many memory your applications can use.

# free -m
             total       used       free     shared    buffers     cached
Mem:           595        382        212          0        132        190
-/+ buffers/cache:         59        535
Swap:            0          0          0


To explain the output, let's consider the general case:
# free -m
             total       used       free     shared    buffers     cached
Mem:           A           B          C          0        D          E
-/+ buffers/cache:         F          G
Swap:           0          0          0


Here comes the facts:
  • A -- the total memory allocated to your Linux box.
  • D+E -- buffers/cached memory gracefully occupied by system in case there are availabe.
  • G(=C+D+E) -- free memory your apps can use.
  • F(=B-D-E or =A-G) -- used memory by your apps.





    References:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.