SUMMARY: Safely Increasing Swap Space

From: Sumair Mahmood <>
Date: Fri Jan 11 2002 - 12:20:23 EST

The problem was that swap -l was not reporting any change in the percent
usage of my primary swap space (a disk slice), when the secondary swap
space (a file) was deleted and the re-created to make it larger.


With sincere gratitude to John R., Johan, Carlo M., Daniel W., Hendrik
V., Ian R., David F., Khalil H., and many others!

Quite often, Solaris has stuff in swap it doesn't need but it keeps it
hanging around "just in case".  Chances are, it's simply deleted
un-needed information either in the deleted swap space or in RAM.  In
short, if nothing crashes or complains, you're almost certainly fine.

...If all your swap was heavily used, the operation to remove would
fail... If your swap is heavily used and you are restricted in terms of
available disk space, you sometimes need to reboot into single-user mode
to be able to configure new swap, but the commands themselves are safe,
they check the swap file usage and will move the swap pages before the
operation completes.

Add a *disk* to use as swap space if possible. Using a swap *file* is
incredibly inefficent, and should only be used as a temporary measure.

Why making the file bigger? Why not just add a second/ third/ fourth

 Sumair Mahmood
 Unix Systems Administrator

 Today I can only please one person.
 Today is not your day.
 Tomorrow is not looking good, either.
sunmanagers mailing list
Received on Fri Jan 11 11:19:48 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:32 EST