go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Linux Memory Management
 
Subject: Linux Memory Management
Author: Linux
Posted on: 09/12/2012 07:54:09 PM

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.


    Replies:


    References:

  •  


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