[Previous] [Contents] [Index] [Next]

swapctl

Control the swap device


Note: You must be root to run this utility.

Syntax:

swapctl [-s] [-m] [-c] [-F size] [-S size]
        [-a name]

Options:

-a name
Add the file or partition specified by name as the swap device.
-c
Create the file if it doesn't exist.
-F size
The minimum size that must be left on the filesystem after the file is created.
-m
Add a magic signature to an existing file or partition.
-S size
The size of file to create (the default is 64M).
-s
Display statistics about the swap device.

Description:

The swapctl utility controls the swap device. If you don't specify any options, swapctl displays swap statistics.


Note: Swapping is not fully implemented.

Examples:

Display swap statistics:

# swapctl
Swap stats:
	swap space size: 134213632
	swap space in use: 0
	number of pages swapped out: -1
	number of pages swapped in: 0
	number of pages deleted from swap: 0

[Previous] [Contents] [Index] [Next]