swapoff.1m (2010 09)
s
swapoff(1M) swapoff(1M)
NAME
swapoff - online disabling of swap device
SYNOPSIS
/usr/sbin/swapoff
device ...
DESCRIPTION
The
swapoff command disables swapping on the specified swap device(s) for the current boot. (NOTE:
the term swap refers to an obsolete implementation of virtual memory; HP-UX actually implements vir-
tual memory by way of paging rather than swapping. This command and others retain names derived
from swap for historical reasons.)
Notes
• The
swapoff command will not remove entry from
/etc/fstab for the device. The
/etc/fstab file needs to be modified to remove the device entries.
• The
swapoff command is guaranteed to disable the swap devices for the current boot only when
the devices were enabled for swapping through swapon
(see swapon(1M).
• A swap device will not be disabled if the current available system swap space without the device is
not sufficient for the system to operate.
RETURN VALUE
swapoff returns one of the following values:
0 Successful completion.
>0 Error condition occurred.
EXAMPLE
The following example disable paging on block device
/usr/sbin/swapoff /dev/dsk/c10t0d0
AUTHOR
swapoff was developed by HP.
SEE ALSO
swapinfo(1M), swapon(1M), swapctl(2), fstab(4).
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1