| Main index | Section 8 | 日本語 | Options |
The
swapon
utility adds the specified swap devices to the system.
If the
The
swapoff
utility removes the specified swap devices from the system.
If the
The swapoff utility must move swapped pages out of the device being removed which could lead to high system loads for a period of time, depending on how much data has been swapped out to that device.
Other options supported by both swapon and swapoff are as follows:
| | |
|
Specify the
fstab
file to use (in conjunction with
| |
The
swapctl
utility exists primarily for those familiar with other
BSD Ns s
and may be
used to add, remove, or list swap devices.
Note that the
Swap information can be generated using the
swapinfo(8)
utility,
pstat
| | |
| Output values in human-readable form. | |
| | |
| Output values in gigabytes. | |
| | |
| Output values in kilobytes. | |
| | |
| Output values in megabytes. | |
| | |
| List the devices making up system swap. | |
| | |
|
Print a summary line for system swap.
The BLOCKSIZE environment variable is used if not specifically overridden. 512 byte blocks are used by default. | |
| /dev/{ada,da}?s?b | |
| standard paging devices | |
| /dev/md? | memory disk devices |
| /etc/fstab | ASCII file system description table |
| SWAPON (8) | November 29, 2021 |
| Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. | ” |
| — Maurice Wilkes | ||