On Fri, Jun 01, 2012 at 11:27:01AM -0400, Gerry Reno wrote:
Wait a minute. Back in this thread it says that half of RAM is
allocated to the tmpfs for /tmp.
No-no-no! Default tmpfs size is half of physical
RAM, that's
all. That doesn't mean that is stays in RAM forever.
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 24G 1.9M 24G 1% /tmp
$ free -m
total used free shared buffers cached
Mem: 15987 14653 1333 0 328 8402
-/+ buffers/cache: 5922 10065
Swap: 31251 55 31196
$ dd if=/dev/zero of=/tmp/file bs=1M count=10240
10240+0 records in
10240+0 records out
10737418240 bytes (11 GB) copied, 9.02507 s, 1.2 GB/s
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 24G 11G 14G 42% /tmp
$ free -m
total used free shared buffers cached
Mem: 15987 15892 95 0 13 10105
-/+ buffers/cache: 5773 10213
Swap: 31251 1464 29787
$ dd if=/dev/zero of=/tmp/enother-file bs=1M count=10240
10240+0 records in
10240+0 records out
10737418240 bytes (11 GB) copied, 57.2924 s, 187 MB/s
$ free -m
total used free shared buffers cached
Mem: 15987 15886 100 0 4 10251
-/+ buffers/cache: 5630 10357
Swap: 31251 10482 20769
$ rm -f /tmp/file /tmp/enother-file
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 24G 1.9M 24G 1% /tmp
$ free -m
total used free shared buffers cached
Mem: 15987 5718 10268 0 5 146
-/+ buffers/cache: 5566 10420
Swap: 31251 108 31143
--
Regards, --
Sir Raorn. ---
http://thousandsofhate.blogspot.com/