Commit | Line | Data |
---|---|---|
4d554349 NW |
1 | .\" |
2 | .\" swapinfo | |
3 | .\" | |
4 | .Dd February 23, 1993 | |
5 | .Dt SWAPINFO 1 | |
6 | .Sh NAME | |
7 | .Nm swapinfo | |
8 | .Nd display free swap space | |
9 | .Sh SYNOPSIS | |
10 | .Nm swapinfo | |
11 | .Op Fl k | |
12 | .Sh DESCRIPTION | |
13 | .Nm Swapinfo | |
14 | displays statistics about the amount of free swap space on all of the | |
15 | swap areas compiled into the kernel. | |
16 | .Pp | |
17 | The following options are available: | |
18 | .Bl -tag -width Ds | |
19 | .It Fl k | |
20 | By default, all sizes are reported in 512-byte block counts. | |
21 | The | |
22 | .Fl k | |
23 | option causes the numbers to be reported in kilobyte counts. | |
24 | .El | |
25 | .Sh STATISTICS | |
26 | Statistics are reported for all swap partitions configured into the kernel. | |
27 | The first column is the device name of the partition. The next column is | |
28 | the total space available in the partition. The | |
29 | .Ar Used | |
30 | column indicates the total blocks used so far; the | |
31 | .Ar Available | |
32 | column indicates how much space is remaining on each partition. | |
33 | The | |
34 | .Ar Capacity | |
35 | reports the percentage of space used. | |
36 | .Pp | |
37 | If more than one partition is configured into the system, totals for all | |
38 | of the statistics will be reported in the final line of the report. | |
39 | .Sh "BUGS AND CAVEATS" | |
40 | The information reported by | |
41 | .Nm swapinfo | |
42 | is stored in the kernel in a linked list. Since we are merely reading | |
43 | this list out of kernel memory, it is entirely possible that the list could | |
44 | change as we try to read it. Suspicious and unrepeatable values are probably | |
45 | incorrect. | |
46 | .Pp | |
47 | Statistics are reported for all swap partitions compiled into the kernel, | |
48 | regardless of whether those partitions are being used. | |
49 | .Sh AUTHOR | |
50 | .RS | |
51 | Kevin Lahey | |
52 | .br | |
53 | kml@rokkaku.atl.ga.us |