Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Real RAM available...
PostPosted: Mon May 17, 2010 10:18 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
Hi all.

Using the
free -m
and
vmstat -aS
command I can see the available RAM.

Using the free -m displays two important field:
"-/+ buffers/cache" and "mem"

usually "-/+ buffers/cache" is bigger than "mem", anyway as far as I know the REAL available RAM should be the sum
between this two value.

Suppose that free -m displays a table like that:
total used free shared buffers cached
Mem: 360 349 10 0 29 106
-/+ buffers/cache: 213 146
Swap: 255 28 227

in the"mem" field I got 10, in the field "-/+ buffers/cache" I got 146,
this means that my system can use 156MB of RAM if needed?
am I wrong? is there a better interpretation of this value?

thanks.


Top
   
 Post subject:
PostPosted: Mon May 17, 2010 10:25 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
http://www.linuxatemyram.com/
Mem: line shows "Used" by BOTH apps and cache, and Free that's totally empty and wasted.
+/- line shows what's used by apps, and what's not; it is what you should see as "real memory use".

Generally,
+/- used = Mem used - Mem Cached ( - buffers?),
+/- free = Mem free + Mem Cached (+ buffers?).

You have 213 used and 146 free. You still want to reduce used to as low as possible, because the more RAM disk cache has, the less it has to hit the disk, and thus the faster it can serve stuff.


Top
   
 Post subject:
PostPosted: Mon May 17, 2010 1:35 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
rsk wrote:
http://www.linuxatemyram.com/
Mem: line shows "Used" by BOTH apps and cache, and Free that's totally empty and wasted.
+/- line shows what's used by apps, and what's not; it is what you should see as "real memory use".

Generally,
+/- used = Mem used - Mem Cached ( - buffers?),
+/- free = Mem free + Mem Cached (+ buffers?).

You have 213 used and 146 free. You still want to reduce used to as low as possible, because the more RAM disk cache has, the less it has to hit the disk, and thus the faster it can serve stuff.


ok, really thanks for your really appreciated link and answer :)


Top
   
PostPosted: Tue May 18, 2010 8:53 pm 
Offline
Senior Newbie

Joined: Tue May 18, 2010 7:11 pm
Posts: 8
htop says im only using half of my 525mb memory, but top, free -m, etc have a lower number of around 10mb (bad!) - i tend to believe the worse number and that number outnumbers what htop is giving me, but why would it give me that number?


Top
   
PostPosted: Tue May 18, 2010 9:16 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
jaykali wrote:
htop says im only using half of my 525mb memory, but top, free -m, etc have a lower number of around 10mb (bad!)


http://www.linuxatemyram.com/

You're probably reading the wrong numbers on free -m.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group