Performing basic system tuning and monitoring

Reducing swap space

To reduce swap space on an already installed system:

  1. Log in as root.

  2. Obtain a copy of the current VTOC using this command line:

    prtvtoc -f vtoc-file raw-device

    where vtoc-file is a file you name.

  3. Edit vtoc-file using an editor, such as vi or the desktop Text Editor and change the size of the swap slice.

    The swap slice is usually defined on slice 2, and the current size (in sectors) of swap space is listed under the column labeled SIZE.

  4. Use the following command to write the changed VTOC to disk:

    edvtoc -f vtoc-file raw-device

  5. Reboot the system to make the new swap space available for use.

In effect, you have divided one slice into two slices. Refer to prtvtoc(1M) and edvtoc(1M) for more information on those commands.


Next topic: Administering multiprocessor systems
Previous topic: Adding swap space

© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999