HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

s
swapinfo(1M) swapinfo(1M)
PCT USED The percentage of capacity in use, based on Kb USED divided by Kb AVAIL; 100% if Kb AVAIL
is zero.
START/LIMIT
For device paging areas, START is the block address on the mass storage device of the start of
the paging area. The value is normally 0 for devices dedicated to paging, or the end of the file
system for devices containing both a file system and paging space.
For file system paging areas, LIMIT is the maximum number of 1-Kbyte blocks that will be
used for paging, the same as the limit value given to
swapon. A file system LIMIT value of
none means there is no fixed limit; all space is available except that used for files, less the
blocks represented by minfree (see tunefs(1M)) plus RESERVE.
RESERVE For device paging areas, this value is always ‘‘—’’. For file system paging areas, this value is
the number of 1-Kbyte blocks reserved for file system use by ordinary users, the same as the
reserve value given to swapon.
PRI The same as the priority value given to
swapon. This value indicates the order in which
space is taken from the devices and file systems used for paging. Space is taken from areas
with lower priority values first. priority can have a value between 0 and 10. See "Paging Allo-
cation" below.
NAME For device paging areas, the block special file name whose major and minor numbers match
the device’s ID. The swapinfo command searches the /dev tree to find device names. If
no matching block special file is found,
swapinfo prints the device ID (major and minor
values), for example, 28,0x15000 .
For file system swap areas, NAME is the name of a directory on the file system in which the
paging files are stored.
When used with -s option, swapinfo also prints to standard output a three line header as shown here,
followed by one line for the primary paging area configured for next boot:
Kb Kb
TYPE START LENGTH NAME
The fields are:
TYPE swapon(1M) can configure primary paging area for next boot on a storage device only.
dev The paging space configured for next boot resides on a mass storage device, either
taking up the entire device or, if the device contains a file system, taking up the
space between the end of the file system and the end of the device.
Kb START For device paging areas, START is the block address on the mass storage device of the start of
the paging area. The value is normally 0 for devices dedicated to paging, or the end of the file
system for devices containing both a file system and paging space. This is same as the value
given to swapon(1M) when configuring primary paging area for next boot.
Kb LENGTH
LENGTH is the maximum number of blocks that will be used for paging. This is same as the
value given to swapon(1M) when configuring primary paging area for next boot.
NAME The block special file name whose major and minor numbers match the device’s ID. The
swapinfo command searches the /dev tree to find device names. If no matching block
special file is found, swapinfo prints the device ID (major and minor values), for example,
28,0x15000 .
Paging Allocation
Paging areas are enabled at boot time (for device paging areas configured into the kernel) or by the
swapon command (see swapon(1M)), often invoked by /sbin/init.d/swap_start during system
initialization based on the contents of
/etc/fstab . When a paging area is enabled, some portion of that
area is allocated for paging space. For device paging areas, the entire device is allocated, less any leftover
fraction of an allocation chunk. (The size of an allocation chunk is controlled by the tunable parameter
swchunk, and is typically 2 MB.) For file system paging areas, the minimum value given to swapon
(rounded up to the nearest allocation chunk) is allocated.
HP-UX 11i Version 3: February 2007 2 Hewlett-Packard Company 433