1 .\" Copyright (c) 1980, 1991 Regents of the University of California.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)swapon.8 6.3 (Berkeley) 3/16/91
34 .\" Sun Dec 27 12:31:30 1992: Modified by faith@cs.unc.edu
35 .\" Sat Mar 6 20:46:02 1993: Modified by faith@cs.unc.edu
36 .\" Sat Oct 9 09:35:30 1993: Converted to man format by faith@cs.unc.edu
37 .\" Sat Nov 27 20:22:42 1993: Updated authorship information, faith@cs.unc.edu
38 .\" Mon Sep 25 14:12:38 1995: Added -v and -p information
39 .\" Tue Apr 30 03:32:07 1996: Added some text from A. Koppenhoefer
41 .TH SWAPON 8 "25 September 1995" "Linux 1.x" "Linux Programmer's Manual"
43 swapon, swapoff \- enable/disable devices and files for paging and swapping
45 .B /sbin/swapon [\-h \-V]
47 .B /sbin/swapon \-a [\-v] [\-e]
49 .BI "/sbin/swapon [\-v] [\-p " "priority" "] " " specialfile " ...
53 .B /sbin/swapoff [\-h \-V]
57 .BI /sbin/swapoff " specialfile " ...
60 is used to specify devices on which paging and swapping are to take place.
63 normally occur in the system multi-user initialization file
65 making all swap devices available, so that the paging and swapping activity
66 is interleaved across several devices and files.
68 Normally, the first form is used:
77 Display swap usage summary by device. Equivalent to "cat /proc/swaps".
78 Not available before Linux 2.1.25.
81 All devices marked as ``swap'' swap devices in
83 are made available. Devices that are already running as swap are silently
92 makes swapon silently skip devices that
98 This option is only available if
100 was compiled under and is used under a 1.3.2 or later kernel.
102 is a value between 0 and 32767. See
104 for a full description of swap priorities. Add
106 to the option field of
112 disables swapping on the specified devices and files.
115 flag is given, swapping is disabled on all known swap devices and files
123 on a file with holes.
124 Swap over NFS may not work.
135 standard paging devices
138 standard (SCSI) paging devices
141 ascii filesystem description table
145 command appeared in 4.0BSD.