How to increase Swap space

I have physical memory 2Gb and i have double up the amount swap space as 4GB.And i have slow performance on my solaris 9 .So i would like to increase my swap space how i do it that..
[189 byte] By [relax_relax81a] at [2007-11-26 22:20:58]
# 1

to add to swap

1.# mkfile 20m /export/data/additionalswapfile # look for a partition that has enough space to create additional swap file at least 20 megabytes.

2.# swap -a /export/data/additionalswapfile# creates the additional to swap

3.# swap -l# viewing the swap

Message was edited by:

yurioira32

yurioira32a at 2007-7-10 11:18:23 > top of Java-index,BigAdmin,Troubleshoot...