Hi, I have two 64 bit cent Os machine. I googled that in linux always show entire memory as used. But below showing only 1 GB detected. *Machine 1 :* i) It has 31 GB of ram. [root at machine1]# free -g total used free shared buffers cached Mem: 31 1 30 0 0 0 -/+ buffers/cache: 0 30 Swap: 49 0 49 ------------------------------------------ *Machine 2 :* i)It has 11 GB of ram. [root at machine2]# free -g total used free shared buffers cached Mem: 11 11 0 0 0 9 -/+ buffers/cache: 1 10 Swap: 49 0 49 Could you please anyone can explain why ? Thanks, Ashik -* *
free displays the total amount of free and used physical and swap memory in the system. In your case "free -g" it showing you how much memory you are using right now in gigabits. On Tue, Dec 18, 2012 at 11:52 AM, AshikAli.m <ashikali.m at gmail.com> wrote:> Hi, > > I have two 64 bit cent Os machine. I googled that in linux always show > entire memory as used. But below showing only 1 GB detected. > > > *Machine 1 :* > i) It has 31 GB of ram. > > [root at machine1]# free -g > total used free shared buffers > cached > Mem: 31 1 30 0 0 0 > -/+ buffers/cache: 0 30 > Swap: 49 0 49 > ------------------------------------------ > > *Machine 2 :* > i)It has 11 GB of ram. > > [root at machine2]# free -g > total used free shared buffers > cached > Mem: 11 11 0 0 0 9 > -/+ buffers/cache: 1 10 > Swap: 49 0 49 > > > Could you please anyone can explain why ? > > > Thanks, > Ashik > -* > * > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
On 12/17/2012 10:22 PM, AshikAli.m wrote:> I have two 64 bit cent Os machine. I googled that in linux always show > entire memory as used. But below showing only 1 GB detected.no, that first one shows you have 31gb ram, about 1gb is being used by software, and the other 30GB are in use as buffers/cache the second shows 11gb ram, 1gb used, and 10gb as buffers/cache here's a machine fo mine thats been running for a couple months with large databases (both postgres and oracle) # free -g total used free shared buffers cached Mem: 47 43 3 0 0 38 -/+ buffers/cache: 5 42 Swap: 49 0 49 out of 47gb total, 5gb is actually used, 38gb is in use as disk cache, and 3gb is completely unused currently, so 42gb is available for use by software. the main line to look at is the -/+ buffers/cache. THAT is the real usage with discardable buffers and cache subtracted and the 'free' value on that line is the buffers + cache + freespace