2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH POOLSTAT 1M "Jun 16, 2009"
8 poolstat \- report active pool statistics
12 \fBpoolstat\fR [\fB-p\fR \fIpool-list\fR] [\fB-r\fR \fIrset-list\fR] [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
17 \fBpoolstat\fR [\fB-p\fR \fIpool-list\fR] [\fB-o\fR \fIformat\fR \fB-r\fR \fIrset-list\fR]
18 [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
24 The \fBpoolstat\fR utility iteratively examines all active pools on the system.
25 It reports statistics based on the selected output mode. \fBpoolstat\fR
26 provides options to examine only specified pools and report resource
27 set-specific statistics.
30 Without options, \fBpoolstat\fR examines all pools, reports basic statistics
31 for their resource sets, and exits.
35 In default output format, \fBpoolstat\fR outputs a header line and a line for
36 each pool. The line begins with the pool ID and its name, followed by a column
37 of statistical data for the processor set attached to the pool.
40 The columns are defined as follows:
92 Minimum resource set size.
101 Maximum resource set size.
110 Current resource set size.
119 The measure of how much of the resource set is currently is use. This is
120 calculated as the percentage utilization of the resource set multiplied by its
121 size. If resource set has been reconfigured during last sampling interval, this
122 value might be not reported (\fB-\fR).
131 The absolute representation of the load that is put on the resource set. For
132 the definition of this property see \fBlibpool\fR(3LIB).
138 The following options are supported:
142 \fB\fB-o\fR \fIformat\fR\fR
145 Report statistics according to the format specification given in format. See
146 \fBDISPLAY FORMATS\fR.
148 The \fB-o\fR option accepts lists as arguments. Items in a list can be either
149 separated by commas or enclosed in quotes and separated by commas or spaces.
151 You can specify multiple \fB-o\fR options. The format specification is
152 interpreted as the whitespace separated concatenation of all the format option
155 The \fB-o\fR option must be used in conjunction with the \fB-r\fR option.
161 \fB\fB-p\fR \fIpool-list\fR\fR
164 Report only pools whose names are in the given list. If the -r option is also
165 used, this option selects only resource sets which belong to pools in the given
166 list. Statistics for pools or resource sets are reported in the same order in
167 which pool names are listed on the pool-list. Pool can be specified by name or
170 The \fB-p\fR option accepts lists as arguments. Items in a \fIpool-list\fR can
171 only be separated by spaces.
177 \fB\fB-r\fR \fIrset-list\fR\fR
180 Report resource set statistics. If the \fIrset-list\fR argument is "\fBall\fR",
181 then all possible resource set types are selected.
183 The \fB-r\fR option accepts lists as arguments. Items in a list can be either
184 separated by commas or enclosed in quotes and separated by commas or spaces.
186 The following resource set types are supported:
193 All resource set types
210 \fB\fB-T\fR \fBu\fR | \fBd\fR\fR
213 Display a time stamp.
215 Specify \fBu\fR for a printed representation of the internal representation of
216 time. See \fBtime\fR(2). Specify \fBd\fR for standard date format. See
223 The following operands are supported:
230 The number of times that the statistics are repeated. By default, poolstat
231 reports statistics only once.
233 If neither interval nor count are specified, statistics are reported once. If
234 interval is specified and count is not, statistics are reported indefinitely.
243 The sampling interval in seconds.
245 If neither interval nor count are specified, statistics are reported once. If
246 interval is specified and count is not, statistics are reported indefinitely.
251 \fBExample 1 \fRUsing \fBpoolstat\fR
254 The following example shows the default output from the \fBpoolstat\fR utility:
261 id pool size used load
262 0 pool_default 4 3.6 6.2
263 1 pool_admin 4 3.3 8.4
269 \fBExample 2 \fRReporting Resource Set Statistics
272 The following example reports resource set statistics.
279 id pool type rid rset min max size used load
280 0 pool_default pset -1 pset_default 1 65K 2 1.2 8.3
281 1 pool_admin pset 1 pset_admin 1 1 1 0.4 5.2
282 2 pool_other pset -1 pset_default 1 65K 2 1.2 8.3
289 Resource sets attached to multiple pools, as \fBpset_default\fR in the example
290 above, are listed multiple times, once for each pool.
293 \fBExample 3 \fRRestricting the Output to the List of Pools
296 The following example restricts the output to the list of pools
301 % poolstat -p pool_default
303 id pool size used load
304 0 pool_default 8 5.3 10.3
306 % poolstat -p 'pool_admin pool_default'
308 id pool size used load
309 1 pool_admin 6 4.3 5.3
310 0 pool_default 2 1.9 2.0
312 % poolstat -r all -p 'pool_admin pool_default'
313 id pool type rid rset min max size used load
314 1 pool_admin pset 1 pset_admin 1 1 1 0.9 2.3
315 2 pool_default pset -1 pset_default 1 65K 2 2.0 2.0
321 \fBExample 4 \fRCustomizing Output
324 The following example customizes output:
329 % poolstat -r -o pool,rset,size,load
331 pool_default pset_default 4 4.5
332 pool_admin pset_admin 4 2.1
340 The following exit values are returned:
347 Successful completion.
365 Invalid command line options were specified.
371 See \fBattributes\fR(5) for descriptions of the following attributes:
379 ATTRIBUTE TYPE ATTRIBUTE VALUE
387 \fBlibpool\fR(3LIB), \fBattributes\fR(5)
394 The system ids associated with resources can change after the system reboots or
395 the resource configuration is altered.