Hello,
I am having a bit of trouble trying to figure out how Solaris 2.6 (and
Solaris 8) calculates the memory size for /tmpfs (specifically the "df"
command). On a number of our Solaris serves (U5s, U60s, etc), we have
mounted /tmpfs via entry in /etc/vfstab. However, the "df -k /tmpfs"
command does not always produce expected results. Here is an example:
entry in /etc/vfstab:
-------------------
swap - /tmp tmpfs - yes -
"swap -l" produces this result:
---------------------------------------
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 135,1 16 4096496 2398224
"swap -s" produces this result:
---------------------------------------
total: 1263896k bytes allocated + 117008k reserved = 1380904k used, 1453232k
available
The "prtdiag" command tells me this server has 1GB of RAM.
However, if I run "df -k /tmp", the following output is displayed:
-----------------------------------------------------------------------
Filesystem 1k-blocks Used Available Use% Mounted on
swap 2224984 773832 1451152 35% /tmp
I would have expected to see 3072000 1k-blocks (or something similar)
because 1GB RAM plus 2GB swap is 3GB total system virtual memory.
What am I missing?
Thanks in advance,
-Ron