Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Disks and Volumes

Increase swap space

Submitted by on November 19, 2005 – 11:15 pm 2 Comments

Instructions for adding swap space on the fly for a Solaris system. Adding swap space via a swap file degrades system perfomance. However, this is a useful method for quickly adding swap space without interrupting production. It’s a good idea to place the swap file on a disk other than the system disk. This would reduce system disk load and improve performance.

Create swap file:

mkfile SIZEm /swap.file

Here SIZE is the amount of swap space you want to add in Mb. Swap space should normally be twice the sizie of physical RAM on systems with up to 8Gb RAM. If you have more than 8Gb, swap space should be between 110% and 150% of physical RAM.

Add swap file to system swap:

swap -a /swap.file

Create /etc/rc2.d/S99swap with “swap -a /swap.file” command in it or add to /etc/vfstab:

/swap.file      -       -     swap    -  no  -
Print Friendly, PDF & Email


  • PolishPokeyPimp says:

    I don’t use my computer for much more than games, email, surfing and yahoo messenger. I often get this virtual memory is low message when I am installing or playing games off of big fish and other sites like that. What I want to know is simple terms is what I can do to change that message? I had my computer reformatted in February and at that time he added a 1GB memory stick of RAM to my machine.

  • encyclopath says:

    To increase the Virtual or other memory.

Leave a Reply

%d bloggers like this: