Swap


To add swap space to a Sun Solaris system:

  1. Calculate desired (and available) additional swap space (let's assume 500M).

  2. Make a subdirectory under /export/home for your swap file, if you wish

    mkdir /export/home/.swapfiles
    chmod 700 /export/home/.swapfiles

  3. Create a 500M file for use as swap space

    /usr/sbin/mkfile 500m /export/home/.swapfiles/filename

  4. Start using the swap space

    /usr/sbin/swap -a /export/home/.swapfiles/filename

  5. Make the addition permanent

    echo "/export/home/.swapfiles/filename - - swap - no -" >> /etc/vfstab"


 

Home