[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: putting "/tmp" to memory help

On Mon, 24 Jan 2011 17:41:07 -0600
"Boyd Stephen Smith Jr." <bss@iguanasuicide.net> wrote:


> tmpfs doesn't reserve much (if any) memory.  So, unless it is being actively 
> used by files in the tmpfs, it can be used by other applications.

I'm somewhat confused about this.  My system has 2GB of RAM, and I have:

$ uptime
 20:46:09 up 5 days,  5:30,  9 users,  load average: 0.06, 0.09, 0.25

$ free
             total       used       free     shared    buffers     cached
Mem:       2065172    1047312    1017860          0      66064     357512
-/+ buffers/cache:     623736    1441436
Swap:      1949688     102364    1847324

$ df | grep tmp
tmpfs                  1032584        16   1032568   1% /lib/init/rw
tmpfs                  1032584         0   1032584   0% /dev/shm
none                   1032584      2440   1030144   1% /tmp

So my /tmp is using 1GB.  What is my 'free' saying?  Why is so much
memory free?  IIUC, the 'free' column in the first line should
generally be close to zero if all the memory is available and not
reserved, and I'm pretty sure that with the tmpfs enabled, it never
drops below about a GB or so.

The second line, OTOH, does seem to show that only ~620MB are actually
in use, and the rest in free.

foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

Reply to: