Swap
To add swap space to a Sun Solaris system:
- Calculate desired (and available) additional swap space (let's assume 500M).
- Make a subdirectory under /export/home for your swap file, if you wish
mkdir /export/home/.swapfiles
chmod 700 /export/home/.swapfiles- Create a 500M file for use as swap space
/usr/sbin/mkfile 500m /export/home/.swapfiles/filename- Start using the swap space
/usr/sbin/swap -a /export/home/.swapfiles/filename- Make the addition permanent
echo "/export/home/.swapfiles/filename - - swap - no -" >> /etc/vfstab"