swap(1M) — ADMINISTRATOR COMMANDS
NAME
swap − swap administrative interface
SYNOPSIS
/usr/sbin/swap −a swapname swaplow swaplen
/usr/sbin/swap −d swapname swaplow
/usr/sbin/swap −l
/usr/sbin/swap −s
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. swapname is the name of the block special slice, e.g., /dev/dsk/m328_c0d2s7 or a regular file. If new area is the block special slice, the slice’s tag must be set to SWAP. swaplow is the offset in 512-byte blocks into the slice where the swap area should begin. swaplen is the length of the swap area in 512-byte blocks. A value of 0 for both swaplow and swaplen will add the entire swap area. This option can only be used by the super-user. If additional swap areas are added, it is normally done during the system start up routine /etc/rc when going into multi-user mode.
−d Delete the specified swap area. swapname is the name of block special slice, e.g., /dev/dsk/m328_c0d2s7 or a regular file. swaplow is the offset in 512-byte blocks into the the swap area to be deleted. Using this option marks the swap area as “INDEL” (in the process of 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 be used only by the super-user.
−l List the status of all the swap areas. The output has five columns:
path The path name for the swap area.
dev The major/minor device number in decimal if it is a block special device; zeros otherwise.
swaplo The swaplow value for the area in 512-byte blocks.
blocks The swaplen value for the area in 512-byte blocks.
free The number of free 512-byte blocks in the area. If the swap area is being deleted, the word INDEL will be printed to the right of this number.
−s Print the following information about total swap space usage:
allocated The amount of swap space (in 512-byte blocks) allocated to private pages.
reserved The number of swap space (in 512-bytes blocks) not currently allocated, but claimed by memory mappings that have not yet created private pages.
used The total amount of swap space, in 512-byte blocks, that is either allocated or reserved.
available The total swap space, in 512-byte blocks, that is currently available for future reservation and allocation.