$cat /etc/vfstab
FS fsck#device device mouk mount mount
type pass#to mount to fsck pois at boot options
swapfs -/dev/dsk/c0t0d0s1 - - no -
ufs 1 /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / no -
ufs 1 /dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /usr no -
ufs 1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /var no -
ufs 2 /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt yes -
tmpfs - swap - /tm yes -
On the above output, the slice c0t0d0s1 was design as swapfs, and the /tmp directory has been created on a device which is also called swap.
It seems They are both used for swap.
what are the differences between them ?
Are the /tmp directory resident on memory or on disk ?