POOLSTAT(8) | Maintenance Commands and Procedures | POOLSTAT(8) |
poolstat - report active pool statistics
poolstat [-p pool-list] [-r rset-list] [-T u | d ] [interval [count]]
poolstat [-p pool-list] [-o format -r rset-list]
[-T u | d ] [interval [count]]
The poolstat utility iteratively examines all active pools on the system. It reports statistics based on the selected output mode. poolstat provides options to examine only specified pools and report resource set-specific statistics.
Without options, poolstat examines all pools, reports basic statistics for their resource sets, and exits.
In default output format, poolstat outputs a header line and a line for each pool. The line begins with the pool ID and its name, followed by a column of statistical data for the processor set attached to the pool.
The columns are defined as follows:
id
pool
rid
rset
type
min
max
size
used
load
The following options are supported:
-o format
The -o option accepts lists as arguments. Items in a list can be either separated by commas or enclosed in quotes and separated by commas or spaces.
You can specify multiple -o options. The format specification is interpreted as the whitespace separated concatenation of all the format option arguments.
The -o option must be used in conjunction with the -r option.
-p pool-list
The -p option accepts lists as arguments. Items in a pool-list can only be separated by spaces.
-r rset-list
The -r option accepts lists as arguments. Items in a list can be either separated by commas or enclosed in quotes and separated by commas or spaces.
The following resource set types are supported:
all
pset
-T u | d
The following operands are supported:
count
If neither interval nor count are specified, statistics are reported once. If interval is specified and count is not, statistics are reported indefinitely.
interval
If neither interval nor count are specified, statistics are reported once. If interval is specified and count is not, statistics are reported indefinitely.
Example 1 Using poolstat
The following example shows the default output from the poolstat utility:
% poolstat
pset
id pool size used load
0 pool_default 4 3.6 6.2
1 pool_admin 4 3.3 8.4
Example 2 Reporting Resource Set Statistics
The following example reports resource set statistics.
% poolstat -r pset
id pool type rid rset min max size used load
0 pool_default pset -1 pset_default 1 65K 2 1.2 8.3
1 pool_admin pset 1 pset_admin 1 1 1 0.4 5.2
2 pool_other pset -1 pset_default 1 65K 2 1.2 8.3
Resource sets attached to multiple pools, as pset_default in the example above, are listed multiple times, once for each pool.
Example 3 Restricting the Output to the List of Pools
The following example restricts the output to the list of pools
% poolstat -p pool_default
pset
id pool size used load
0 pool_default 8 5.3 10.3 % poolstat -p 'pool_admin pool_default'
pset
id pool size used load
1 pool_admin 6 4.3 5.3
0 pool_default 2 1.9 2.0 % poolstat -r all -p 'pool_admin pool_default'
id pool type rid rset min max size used load
1 pool_admin pset 1 pset_admin 1 1 1 0.9 2.3
2 pool_default pset -1 pset_default 1 65K 2 2.0 2.0
Example 4 Customizing Output
The following example customizes output:
% poolstat -r -o pool,rset,size,load
pool rset size load
pool_default pset_default 4 4.5
pool_admin pset_admin 4 2.1
The following exit values are returned:
0
1
2
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Stability | Evolving |
The system ids associated with resources can change after the system reboots or the resource configuration is altered.
June 16, 2009 | OmniOS |