Changeset View
Changeset View
Standalone View
Standalone View
sbin/swapon/swapon.8
Show All 22 Lines | |||||||||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||||||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||||||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||||||||
.\" | .\" | ||||||||||
.\" @(#)swapon.8 8.1 (Berkeley) 6/5/93 | .\" @(#)swapon.8 8.1 (Berkeley) 6/5/93 | ||||||||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||||||||
.\" | .\" | ||||||||||
.Dd May 19, 2020 | .Dd November 29, 2021 | ||||||||||
.Dt SWAPON 8 | .Dt SWAPON 8 | ||||||||||
.Os | .Os | ||||||||||
.Sh NAME | .Sh NAME | ||||||||||
.Nm swapon , swapoff , swapctl | .Nm swapon , swapoff , swapctl | ||||||||||
.Nd "specify devices for paging and swapping" | .Nd "specify devices for paging and swapping" | ||||||||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||||||||
.Nm swapon | .Nm swapon | ||||||||||
.Oo Fl F Ar fstab | .Oo Fl F Ar fstab | ||||||||||
.Oc | .Oc | ||||||||||
.Fl aLq | E Ar | .Fl aLq | E Ar | ||||||||||
.Nm swapoff | .Nm swapoff | ||||||||||
.Oo Fl F Ar fstab | .Oo Fl F Ar fstab | ||||||||||
.Oc | .Oc | ||||||||||
.Fl aLq | Ar | .Fl afLq | Ar | ||||||||||
.Nm swapctl | .Nm swapctl | ||||||||||
.Op Fl AghklmsU | .Op Fl AfghklmsU | ||||||||||
.Oo | .Oo | ||||||||||
.Fl a Ar | .Fl a Ar | ||||||||||
| | | | ||||||||||
.Fl d Ar | .Fl d Ar | ||||||||||
.Oc | .Oc | ||||||||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||||||||
The | The | ||||||||||
.Nm swapon , swapoff | .Nm swapon , swapoff | ||||||||||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||||||||
option will be removed. | option will be removed. | ||||||||||
If the | If the | ||||||||||
.Fl q | .Fl q | ||||||||||
option is used, | option is used, | ||||||||||
informational messages will not be | informational messages will not be | ||||||||||
written to standard output when a swap device is removed. | written to standard output when a swap device is removed. | ||||||||||
Note that | Note that | ||||||||||
.Nm swapoff | .Nm swapoff | ||||||||||
will fail and refuse to remove a swap device if there is insufficient | will fail and refuse to remove a swap device if some very inexact | ||||||||||
estimation reports that there is insufficient | |||||||||||
markj: I think "very inexact" will just use confuse users. Rather, it is very conservative. | |||||||||||
Done Inline Actions
alc: | |||||||||||
Done Inline Actions
alc: | |||||||||||
VM (memory + remaining swap devices) to run the system. | VM (memory + remaining swap devices) to run the system. | ||||||||||
The | |||||||||||
.Fl f | |||||||||||
option turns off this heuristic. | |||||||||||
markjUnsubmitted Done Inline ActionsThe heuristic is inexact, but without it swapoff can easily hang the system, I believe. This should be noted. markj: The heuristic is inexact, but without it swapoff can easily hang the system, I believe. This… | |||||||||||
Done Inline Actions
alc: | |||||||||||
.Pp | |||||||||||
Done Inline ActionsMaybe, "if there is unsufficient swap space remaining." markj: Maybe, "if there is unsufficient swap space remaining." | |||||||||||
Done Inline Actions
alc: | |||||||||||
The | The | ||||||||||
.Nm swapoff | .Nm swapoff | ||||||||||
utility | utility | ||||||||||
must move swapped pages out of the device being removed which could | 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 | lead to high system loads for a period of time, depending on how | ||||||||||
much data has been swapped out to that device. | much data has been swapped out to that device. | ||||||||||
.Pp | .Pp | ||||||||||
Other options supported by both | Other options supported by both | ||||||||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
I think "very inexact" will just use confuse users. Rather, it is very conservative.