Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tmpfs and the swapfs

Status
Not open for further replies.

pissallio

IS-IT--Management
Oct 2, 2004
36
CN

$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 ?
 
There is no difference as far as the OS is concerned. Swap space is used by tmpfs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top