HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
swapinfo(1M) swapinfo(1M)
System available memory is shared between the paging subsystem and kernel memory allocators.
Thus, the system may show memory paging usage before all available disk paging space is completely
reserved or fully allocated.
Logical Volume Manager (LVM)
The swapinfo command displays swap logical volume if the system was installed with LVM. To modify
swap logical volume, refer to the LVM commands and manpages for lvlnboot and lvrmboot.For
example, to remove a swap logical volume, run the following LVM command:
lvrmboot -s
Options
swapinfo recognizes the following options:
-m Display the AVAIL, USED, FREE, LIMIT, and RESERVE values in Mbytes instead of Kbytes,
rounding off to the nearest whole Mbyte (multiples of 1024
2
). The output header format changes
from Kb to Mb accordingly.
-t Add a totals line with a TYPE of total. This line totals only the paging information displayed
above it, not all paging areas; this line might be misleading if a subset of
-dfrM is specified.
-a Show all device paging areas, including those configured into the kernel but currently disabled.
(These are normally omitted.) The word disabled appears after the NAME, and the Kb
AVAIL, Kb USED, and Kb FREE values are 0. The -a option is ignored unless the
-d option is
present or is true by default.
-d Print information about device paging areas only. This modifies the output header appropri-
ately.
-f Print information about file system paging areas only. This modifies the output header appropri-
ately.
-n Categorize file system paging area information into localfs areas and network areas,
instead of calling them both
fs areas.
-r Print information about reserved paging space only.
-M Print information about memory paging space only.
The -d, -f, -n, -r and -M options can be combined. The default is
-dfnrM.
-q Quiet mode. Print only a total "Kb AVAIL" value (with the
-m option, Mb AVAIL); that is, the
total paging space available on the system (device, file system, reserve, or memory paging space
only if
-d, -f, -r,or -M is specified), for possible use by programs that want a quick total. If
-q is specified, the -t and -a options are ignored.
-w Print a warning about each device paging area that contains wasted space; that is, any device
paging area whose allocated size is less than its total size. This option is effective only if
-d is
also specified or true by default.
RETURN VALUE
swapinfo returns 0 if it completes successfully (including if any warnings are issued), or 1 if it reports
any errors.
DIAGNOSTICS
swapinfo prints messages to standard error if it has any problems.
EXAMPLES
List all file system paging areas with a totals line:
swapinfo -ft
WARNINGS
swapinfo needs kernel access for some information. If the user does not have appropriate privileges for
kernel access, swapinfo will print a warning and assume that the defaults for that information have not
been changed.
Users of swapinfo must not rely on the exact field widths and spacing of its output, as these will vary
depending on the system, the release of HP-UX, and the data to be displayed.
Section 1M842 3 HP-UX Release 11i: December 2000
___
___