summaryrefslogtreecommitdiff
path: root/usr/src/man/man8/poolstat.8
blob: f88806bad457f675e8dfa8a2b2530330903b2bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
'\" te
.\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
.\" 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.
.\"  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
.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH POOLSTAT 8 "Jun 16, 2009"
.SH NAME
poolstat \- report active pool statistics
.SH SYNOPSIS
.LP
.nf
\fBpoolstat\fR [\fB-p\fR \fIpool-list\fR] [\fB-r\fR \fIrset-list\fR] [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
.fi

.LP
.nf
\fBpoolstat\fR [\fB-p\fR \fIpool-list\fR] [\fB-o\fR \fIformat\fR \fB-r\fR \fIrset-list\fR]
     [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
.fi

.SH DESCRIPTION
.sp
.LP
The \fBpoolstat\fR utility iteratively examines all active pools on the system.
It reports statistics based on the selected output mode. \fBpoolstat\fR
provides options to examine only specified pools and report resource
set-specific statistics.
.sp
.LP
Without options, \fBpoolstat\fR examines all pools, reports basic statistics
for their resource sets, and exits.
.SS "DISPLAY FORMATS"
.sp
.LP
In default output format, \fBpoolstat\fR 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.
.sp
.LP
The columns are defined as follows:
.sp
.ne 2
.na
\fB\fBid\fR\fR
.ad
.RS 8n
Pool ID.
.RE

.sp
.ne 2
.na
\fB\fBpool\fR\fR
.ad
.RS 8n
Pool name.
.RE

.sp
.ne 2
.na
\fB\fBrid\fR\fR
.ad
.RS 8n
Resource set id.
.RE

.sp
.ne 2
.na
\fB\fBrset\fR\fR
.ad
.RS 8n
Resource set name.
.RE

.sp
.ne 2
.na
\fB\fBtype\fR\fR
.ad
.RS 8n
Resource set type.
.RE

.sp
.ne 2
.na
\fB\fBmin\fR\fR
.ad
.RS 8n
Minimum resource set size.
.RE

.sp
.ne 2
.na
\fB\fBmax\fR\fR
.ad
.RS 8n
Maximum resource set size.
.RE

.sp
.ne 2
.na
\fB\fBsize\fR\fR
.ad
.RS 8n
Current resource set size.
.RE

.sp
.ne 2
.na
\fB\fBused\fR\fR
.ad
.RS 8n
The measure of how much of the resource set is currently is use. This is
calculated as the percentage utilization of the resource set multiplied by its
size. If resource set has been reconfigured during last sampling interval, this
value might be not reported (\fB-\fR).
.RE

.sp
.ne 2
.na
\fB\fBload\fR\fR
.ad
.RS 8n
The absolute representation of the load that is put on the resource set. For
the definition of this property see \fBlibpool\fR(3LIB).
.RE

.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-o\fR \fIformat\fR\fR
.ad
.RS 16n
Report statistics according to the format specification given in format. See
\fBDISPLAY FORMATS\fR.
.sp
The \fB-o\fR 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.
.sp
You can specify multiple \fB-o\fR options. The format specification is
interpreted as the whitespace separated concatenation of all the format option
arguments.
.sp
The \fB-o\fR option must be used in conjunction with the \fB-r\fR option.
.RE

.sp
.ne 2
.na
\fB\fB-p\fR \fIpool-list\fR\fR
.ad
.RS 16n
Report only pools whose names are in the given list. If the -r option is also
used, this option selects only resource sets which belong to pools in the given
list. Statistics for pools or resource sets are reported in the same order in
which pool names are listed on the pool-list. Pool can be specified by name or
by ID.
.sp
The \fB-p\fR option accepts lists as arguments. Items in a \fIpool-list\fR can
only be separated by spaces.
.RE

.sp
.ne 2
.na
\fB\fB-r\fR \fIrset-list\fR\fR
.ad
.RS 16n
Report resource set statistics. If the \fIrset-list\fR argument is "\fBall\fR",
then all possible resource set types are selected.
.sp
The \fB-r\fR 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.
.sp
The following resource set types are supported:
.sp
.ne 2
.na
\fB\fBall\fR\fR
.ad
.RS 8n
All resource set types
.RE

.sp
.ne 2
.na
\fB\fBpset\fR\fR
.ad
.RS 8n
Processor set
.RE

.RE

.sp
.ne 2
.na
\fB\fB-T\fR \fBu\fR | \fBd\fR\fR
.ad
.RS 16n
Display a time stamp.
.sp
Specify \fBu\fR for a printed representation of the internal representation of
time. See \fBtime\fR(2). Specify \fBd\fR for standard date format. See
\fBdate\fR(1).
.RE

.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fIcount\fR\fR
.ad
.RS 12n
The number of times that the statistics are repeated. By default, poolstat
reports statistics only once.
.sp
If neither interval nor count are specified, statistics are reported once. If
interval is specified and count is not, statistics are reported indefinitely.
.RE

.sp
.ne 2
.na
\fB\fIinterval\fR\fR
.ad
.RS 12n
The sampling interval in seconds.
.sp
If neither interval nor count are specified, statistics are reported once. If
interval is specified and count is not, statistics are reported indefinitely.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRUsing \fBpoolstat\fR
.sp
.LP
The following example shows the default output from the \fBpoolstat\fR utility:

.sp
.in +2
.nf
% poolstat
                         pset
  id pool           size used load
   0 pool_default      4  3.6  6.2
   1 pool_admin        4  3.3  8.4
.fi
.in -2
.sp

.LP
\fBExample 2 \fRReporting Resource Set Statistics
.sp
.LP
The following example reports resource set statistics.

.sp
.in +2
.nf

% 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
.fi
.in -2
.sp

.sp
.LP
Resource sets attached to multiple pools, as \fBpset_default\fR in the example
above, are listed multiple times, once for each pool.

.LP
\fBExample 3 \fRRestricting the Output to the List of Pools
.sp
.LP
The following example restricts the output to the list of pools

.sp
.in +2
.nf
% 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
.fi
.in -2
.sp

.LP
\fBExample 4 \fRCustomizing Output
.sp
.LP
The following example customizes output:

.sp
.in +2
.nf
% 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
.fi
.in -2
.sp

.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 5n
Successful completion.
.RE

.sp
.ne 2
.na
\fB\fB1\fR\fR
.ad
.RS 5n
An error occurred.
.RE

.sp
.ne 2
.na
\fB\fB2\fR\fR
.ad
.RS 5n
Invalid command line options were specified.
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Stability	Evolving
.TE

.SH SEE ALSO
.sp
.LP
.BR libpool (3LIB),
.BR attributes (7)
.sp
.LP
\fI\fR
.SH NOTES
.sp
.LP
The system ids associated with resources can change after the system reboots or
the resource configuration is altered.