HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)

s
swapinfo(1M) swapinfo(1M)
possible for requests for more paging space to be denied when some, or even all, of the paging areas
show zero usage — space in those areas is completely reserved.
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 com-
pletely 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 dis-
abled. (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
appropriately.
-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.
Section 1M790 Hewlett-Packard Company 3 HP-UX 11i Version 2: August 2003