[ Bottom of Page | Previous Page | Next Page | Contents | Index |  Library Home |
Legal |
Search ]
Commands Reference, Volume 5
swap Command
Purpose
Provides a paging space administrative interface.
Syntax
swap [ -a device ] | [ -d device ] | [ -s ] | [ -l  ]
Description
The functions provided by the swap command are diplay of characteristics,
addition of paging space and removal of paging space.
Flags
| -a device | Activates the paging space. Performs the same function
the swapon command. | 
| -d device | Deactivates the paging space. Performs the same function
as the swapoff command. | 
| -l | Lists the status of paging space areas in a list form.
The output has 4 columns, containing the following information: 
devicePath name of the page space.
maj/minThe major/minor device number for the device.
totalTotal size in megabytes for the area.
freeAmount of available space.
 | 
| -s | Prints summary information about total paging space
usage and availability . Following information is displayed in the output
(amounts of paging space are listed in 4K byte blocks). 
These numbers include paging spaces from all configured areas as listed
by the -l option on active paging space.allocatedTotal amount of paging space area currently allocated.
usedTotal amount of paging  space area currently being used.
availableTotal amount of free paging space.
 | 
Exit Status
- 0
- The command completed successfully.
- >0
- An error occurred.
Examples
- To print summary information on total paging space, enter:
swap -s 
- To list the status of the paging space areas in a list form, enter:
swap -l 
- To activate a particular paging space device paging01, enter:
swapon -a /dev/paging01 
Files
| /usr/sbin/swap | Contains the System V swap command. | 
Related Information
The chps command, lsps command, swapoff command, swapon command.
   
[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]