DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Performing basic system monitoring and tuning

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:

    prtvtoc -f vtoc-file raw-device

    where vtoc-file is any unique filename you choose.

  3. Edit vtoc-file 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 edvtoc 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: Managing processors and processes
Previous topic: Adding swap space

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004