I’ve installed two OpenSolaris machines now, both of which have had benefited from greater performance by increasing swap space – in one case from 512Mb to 4Gb, since the laptop concerned (Acer Ferrari 3400) has only 1G of RAM but 70-odd gig of disk…
The method I used was as follows:
su - root# become root
swap -sh# find out how big your swapdevice is
zfs get volsize rpool/swap# find out how big your ZFS swapdevice is (should match above)
zfs set volsize=2G rpool/swap# enlarge it to (eg:) 2G, 2048M, however you wish to denote it
init 6# reboot
Poke your system at your own risk, but I found the system considerably more responsive under load when swap was increased, even if it did not get used much…
(link to official sun documentation from where i got this information)
Leave a Reply