: myhost% pstat -T
[ ... ]
: 27060/60972 swap
: ...~60 Mo of swap...
: myhost% pstat -s
: 21312k allocated + 5588k reserved = 26900k used, 34072k available
: ...still 60 Mo...
These reflect the total swap space available on your system.
: myhost%dmesg|grep sd0b
: swap on sd0b fstype spec size 40500K
: dump on sd0b fstype spec size 40488K
This is the size of your initial swap partition. Look in your /etc/fstab
file for a line like:
/dev/sd1b swap swap rw 0 0
(the sd1b might be a different drive and partition of course). This
partition is added by the swapon command near the end of the boot
process. It is presumbably about 20MB in size and combines with
your 40MB sd0b to make the total swap space reported by pstat.
: Filesystem kbytes used avail capacity Mounted on
: swap 36828 952 35876 3% /tmp
I'll admit right off that I'm relatively ignorant of the formula used
to compute tmpfs space. It seems to be total swap - allocated swap -
some reserve factor. Allocated swap is the first number in a pstat -s
(21312k in your output above). I have no idea how that extra reserve
factor is calculated.
As processes on your system use and free up swap the size of your
tmpfs filesystem changes.
: What is my swap size ? 60 Mo, 40Mo or 36 Mo ...
You have 60MB of swap, 40MB of which is in your initial sd0b swap
partition and 36MB of which is currently available to your tmpfs
mounted /tmp filesystem.
Frank Peters - UNIX Systems Programmer - Mississippi State University