swap(1M)
NAME
swap − swap administrative interface
SYNOPSIS
/etc/swap \-a swapdev swaplow swaplen
/etc/swap \-d swapdev swaplow
/etc/swap \-l
DESCRIPTION
swap provides a method of adding, deleting, and monitoring the system swap areas used by the memory manager. The following options are recognized:
\-a Add the specified swap area. Swapdev is the name of a block special device, e.g., /dev/dsk/0s1. Swaplow is the offset in pages (see pagesize(1)) into the device where the swap area should begin. Swaplen is the length of the swap area in pages. This option can only be used by the super-user. Swap areas are normally added via the swapon (1M) command by the system start up routine /etc/rc when going into multi-user mode.
\-d Delete the specified swap area. Swapdev is the name of a block special device, e.g., /dev/dsk/0s1. Swaplow is the offset in pages into the device where the swap begins. Using this option marks the swap area as "being deleted." The system will not allocate any new blocks from the area, and will try to free swap blocks from it. The area will remain in use until all blocks from it are freed. This option can only be used by the super-user.
\-l List the status of all the swap areas. The output has four columns:
DEV The swapdev special file for the swap area if one can be found in the /dev/dsk or /dev directories, and its major/minor device number in decimal.
SWAPLO The swaplow value for the area in pages.
BLOCKS The swaplen value for the area (in disk blocks).
FREE The number of free disk blocks in the area. If the swap area is being deleted, this column will be marked (indel).
WARNINGS
No check is done to see if a swap area being added overlaps with an existing swap area or file system.
SEE ALSO
FILES
/dev/dsk/?s1normal swapping/paging devices
CX/UX Administrator’s Reference