version 1 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SWAPON |
|
|
2 |
!!!SWAPON |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
NOTE |
|
|
7 |
SEE ALSO |
|
|
8 |
FILES |
|
|
9 |
HISTORY |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
swapon, swapoff - enable/disable devices and files for paging and swapping |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__/sbin/swapon [[-h -V] |
|
|
19 |
/sbin/swapon -a [[-v] |
|
|
20 |
/sbin/swapon [[-v] [[-p__ ''priority''__]__ |
|
|
21 |
''specialfile'' __... |
|
|
22 |
/sbin/swapon [[-s] |
|
|
23 |
/sbin/swapoff [[-h -V] |
|
|
24 |
/sbin/swapoff -a |
|
|
25 |
/sbin/swapoff__ ''specialfile'' __...__ |
|
|
26 |
!!DESCRIPTION |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
__Swapon__ is used to specify devices on which paging and |
|
|
30 |
swapping are to take place. Calls to __swapon__ normally |
|
|
31 |
occur in the system multi-user initialization file |
|
|
32 |
''/etc/rc'' making all swap devices available, so that |
|
|
33 |
the paging and swapping activity is interleaved across |
|
|
34 |
several devices and files. |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
Normally, the first form is used: |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
__-h__ |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
Provide help |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
__-V__ |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
Display version |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__-s__ |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
Display swap usage summary by device. This option is only |
|
|
56 |
available if ''/proc/swaps'' exists (probably not before |
|
|
57 |
kernel 2.1.25). |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
__-a__ |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
All devices marked as ``sw'' swap devices in |
|
|
64 |
''/etc/fstab'' are made available. |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__-p__ ''priority'' |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
Specify priority for __swapon__. This option is only |
|
|
71 |
available if __swapon__ was compiled under and is used |
|
|
72 |
under a 1.3.2 or later kernel. ''priority'' is a value |
|
|
73 |
between 0 and 32767. See swapon(2) for a full |
|
|
74 |
description of swap priorities. Add __pri=__''value'' |
|
|
75 |
to the option field of ''/etc/fstab'' for use with |
|
|
76 |
__swapon -a__. |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
__Swapoff__ disables swapping on the specified devices |
|
|
80 |
and files, or on all swap entries in ''/etc/fstab'' when |
|
|
81 |
the __-a__ flag is given. |
|
|
82 |
!!NOTE |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
You should not use __swapon__ on a file with holes. Swap |
|
|
86 |
over NFS may not work. |
|
|
87 |
!!SEE ALSO |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
swapon(2), swapoff(2), fstab(5), |
|
|
91 |
init(8), mkswap(8), rc(8), |
|
|
92 |
mount(8) |
|
|
93 |
!!FILES |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
''/dev/hd??'' standard paging devices'' |
|
|
97 |
/dev/sd??'' standard (SCSI) paging devices'' |
|
|
98 |
/etc/fstab'' ascii filesystem description |
|
|
99 |
table |
|
|
100 |
!!HISTORY |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
The __swapon__ command appeared in 4.0BSD. |
|
|
104 |
---- |