0

I just got a linux box and i installed apache, mono and i'm about to install mysql.

I checked the memory with free -mt and got this.

             total       used       free     shared    buffers     cached
Mem:           492        470         22          0         31        343

This means i have 492mb in total and i am using 470!?! how can i be using 470! i should only be running apache2. How do i figure out where my ram is going.

2

3 Answers 3

3

The -/+ buffers/cache displays the actual memory available on the free column. Linux uses unused memory for caching disk I/O.

2
  • So i am using 95mb and have 397 cached? -/+ buffers/cache: 95 397
    – user274
    Jul 9, 2010 at 22:53
  • 5
    397 would be the free amount if I'm reading what you're attempting to say correctly. See also: linuxatemyram.com
    – Warner
    Jul 9, 2010 at 22:54
1

Use top and/or vmstat for further analysis of memory and memory usage in Linux.

2
  • "sar" is another good command too. Jul 10, 2010 at 0:27
  • dstat FTW. 'dstat -af' has never failed to give me a good idea of what is going on in the system. That is, if my terminal is wide enough. Jul 10, 2010 at 2:42
0

try this

top -d 0.5

and if you want post the output

You must log in to answer this question.