summaryrefslogtreecommitdiff
path: root/man/man1/pmcollectl.1
blob: f6ce14318dd456fc72e9e95e593054db207d3735 (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
'\"macro stdmacro
.\"
.\" Copyright 2012, Red Hat.
.\" Copyright 2003-2011, Hewlett-Packard Development Company, LP
.\" 
.\" This program is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by the
.\" Free Software Foundation; either version 2 of the License, or (at your
.\" option) any later version.
.\" 
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
.\" or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
.\" for more details.
.\"
.TH PMCOLLECTL 1 "PCP" "Performance Co-Pilot"
.SH NAME
\f3pmcollectl\f1 \- collect data that describes the current system status
.SH SYNOPSIS
\f3pmcollectl\f1
[\f3\-f\f1 \f2file\f1 | \f3\-p\f1 \f2file\f1 ...]
\f2[options\f1 ...]
.SH DESCRIPTION
.B pmcollectl
is a system-level performance monitoring utility that records or displays
specific operating system data for one or more sets of subsystems.
Any of the subsystems (such as CPU, Disks, Memory or Sockets) can be
included or excluded from data collection.
Data can either be displayed immediately to a terminal, or stored in files
for retrospective analysis.
.PP
.B pmcollectl
is a
.BR python (1)
script providing much of the functionality available from the
.BR collectl (1)
Linux utility (which happens to be written in
.BR perl (1)).
.PP
It makes use of the Performance Co-Pilot (PCP) toolkit to
simplify its implementation, as well as provide more of the
.B collectl
functionality on platforms other than Linux.
.PP
.B pmcollectl
has two primary modes of operation:
.IP 1. 0.3i
Record Mode (\f3\-f\f1 or \f3\-\-filename\f1 option) which reads data
from a live system and writes output to a file or displays it on a terminal.
.IP 2. 0.3i
Playback Mode (\f3\-p\f1 or \f3\-\-playback\f1 option) which reads data
from one or more PCP archive files and displays output on a terminal.
Note that these files are
.I not
raw
.B collectl
format data, rather they are archives created by the
.BR pmlogger (1)
utility (possibly indirectly, through use of the \f3\-f\f1 option to
.BR pmcollectl ).
.PP
.SH "RECORD MODE OPTIONS"
In this mode data is taken from a 
.BR live
system and either displayed on the terminal or written to a PCP archive.
.PP
.B "\-h host"
.RS
Display metrics from
.I host
instead of displaying metrics from the local host.
.RE
.PP
.\" .B "--align"
.\" .RS
.\" .BR pmcollectl
.\" sample monitoring will be aligned such that a sample will always be taken at the 
.\" top of a minute (this does NOT mean the first sample will occur then) so that all
.\" instances of
.\" .BR
.\" pmcollect
.\" running on any systems which have their clocks synchronized 
.\" will all take samples at the same time.
.\" .RE
.\" 
.\" .B "--all"
.\" .RS
.\" Collect summary data for ALL subsystems except slabs, since slab monitoring requires
.\" a different monitoring interval.
.\" You can use this switch anywhere \f3\-s\f1 can be used but not both together.
.\" .RE
.\" 
.B "\-c, --count samples"
.RS
The number of samples to record.
.RE
.PP
.\" 
.\" .B "\-D, --daemon"
.\" .RS
.\" Run
.\" .BR pmcollectl
.\" as a daemon, primarily used when starting as a service.
.\" This option sets the sampling interval to once every 10 seconds by default.
.\" .RE
.\" 
.B "\-f, --filename filename"
.RS
This is the name of a PCP archive to write the output to.
.RE
.PP
.\" 
.\" .B "\-F, --flush seconds"
.\" .RS
.\" Flush output buffers after this number of seconds.  This is equivalent to 
.\" issuing 
.\" .B kill \-s USR1
.\" to
.\" .B pmlogger
.\" at the same frequency (but a lot easier!).  If 0, a flush will occur every
.\" data collection interval.
.\" .RE
.\" 
.\" .B --home
.\" .RS
.\" Always start the display for the current interval at the top of the screen
.\" also known as the home position (non-plot format only).  This generates a
.\" real-time, continuously refreshing display when the data fits on a single screen.
.\" .RE
.\" 
.B "\-i, --interval interval"
.RS
This is the sampling interval in seconds.  The default is 1 second.
.\" The default is 10 seconds when run as a daemon and 1 second otherwise.
.RE
.\" 
.\" .B --nohup
.\" .RS
.\" Whenever collectl finishes a data collection interval, it checks to see if the starting parent
.\" has exited.  This is to prevent the case in which someone might start a copy of collectl
.\" and then the process dies and collectl keeps running.  If that is the behavior someone
.\" actually intends, they should start collectl with --nohup.
.\" 
.\" NOTE - when running as a daemon, --nohup is implied.
.\" .RE
.\" 
.B "\-R, --runtime duration"
.RS
Specify the duration of data collection where the duration is a number followed
by one of 
.BR wdhms,
indicating how many weeks, days, hours, minutes or seconds
the collection is to be taken for.
.RE
.\" 
.PP
.SH "PLAYBACK MODE OPTIONS"
In this mode, data is read from one or more PCP data files that were
generated with the recording option, or indirectly via the
.B pmlogger
utility.
.PP
.B "\-f, --filename filename"
.RS
If specified, this is the name of a PCP archive to write the output to (rather
than the terminal).
.RE
.PP
.\" .B "--from timerange"
.\" .RS
.\" Play back data starting with this time, which may optionally include the ending
.\" time as well, which is of the format of [date:]time[-[date:]time].
.\" The leading 0 of the hour is optional and if the seconds field is not specified
.\" is assumed to be 0.  If no dates specified the time(s) apply to each file specified
.\" by \-P.  Otherwise the time(s) only apply to the first/last dates and any files
.\" between those dates will have all their data reported. 
.\" .RE
.\" 
.B "\-p, --playback filename"
.RS
Read data from the specified PCP archive files(s).
.RE
.PP
.\" .B "--thru time"
.\" .RS
.\" Time thru which to play back a raw file.  See --from for more
.\" .RE
.SH "COMMON OPTIONS"
The following options are supported in both record and playback modes.
.PP
.B \--help
.RS
Display standard help message.
.RE
.PP
.\" 
.\" .B --hr, --headerrepeat num
.\" .RS
.\" Sets the number of intervals to display data for before repeating the header.
.\" A value \-1 will prevent any headers from being displayed and a value of 0
.\" will cause only a single header to be displayed and never repeated.
.\" .RE
.\" 
.\" .B \-N, --nice
.\" .RS
.\" Set priority to a 
.\" .BR nicer
.\" one of 10.
.RE
.B "\-s, --subsys subsystem"
.RS
This field controls which subsystem data is to be collected or played back
for. The rules for displaying results vary depending on the type of data to be
displayed.  If you write data for CPUs and DISKs to a raw file and play it back
with \-sc, you will only see CPU data.  If you play it back with \f3\-scm\f1 you
will still only see CPU data since memory data was not collected.  
.\" However, when  used with \f3\-P\f1,
.\" .B pmcollectl
.\" will always honor the subsystems specified with 
.\" this switch so in the previous example you will see CPU
.\" data plus memory data of all 0s.  
To see the current set of default subsystems,
which are a subset of this full list,
use \f3\-h\f1.
.PP
.\" You can also use + or \- to add or subtract subsystems to/from the default values. 
.\" For example, "\-s\-cdn+N"< will remove cpu, disk and network monitoring from the
.\" defaults while adding network detail.
.PP
The default is "cdn", which stands for CPU, Disk and Network summary data.
.TP
.B "SUMMARY SUBSYSTEMS"
.PP
.\" .br
.\" b \- buddy info (memory fragmentation)
.br
c \- CPU
.br
d \- Disk
.br
f \- NFS V3 Data
.br
.\" i \- Inode and File System
.\" .br
j \- Interrupts
.br
.\" l \- Lustre
.\" .br
m \- Memory
.br
n \- Networks
.br
.\" s \- Sockets
.\" .br
.\" t \- TCP
.\" .br
.\" x \- Interconnect
.br
y \- Slabs (system object caches)
.RS
.RE
.PP
.TP
.B "DETAIL SUBSYSTEMS"
.PP
This is the set of 
.BR detail
data from which in most cases the corresponding summary data is
derived.
So, if one has 3 disks and chooses 
.B \-sd,
one will only see a single total taken
across all 3 disks.  If one
chooses 
.B \-sD,
individual disk totals will be reported but no totals.  
.\" Choosing .B \-sdD will get you both.
.PP
.br
C \- CPU
.br
D \- Disk
.br
F \- NFS Data
.br
J \- Interrupts
.br
.\" L \- Lustre OST detail OR client Filesystem detail
.\" .br
M \- Memory node data, which is also known as NUMA data
.br
N \- Networks
.br
.\" T \- 65 TCP counters only available in plot format
.\" .br
.\" X \- Interconnect
.br
Y \- Slabs (system object caches)
.br
Z \- Processes
.RE
.PP
.\" .B \-w
.\" .RS
.\" Disply data in
.\" .BR wide
.\" mode.  When displaying data on the terminal, some data is formatted followed 
.\" by a K, M or G as appropriate.  Selecting this switch will cause the 
.\" full field to be displayed.  Note that there is no attempt 
.\" to align data with the column headings in this mode.
.\" .RE
.PD
.B --verbose
.RS
Display output in verbose mode.  This often displays more data than in the default mode.  When 
displaying detail data, verbose mode is forced.  Furthermore, if summary data for a single 
subsystem is to be displayed in verbose mode, the headers are only repeated occasionally whereas
if multiple subsystems are involved each needs their own header.
.RE
.PP
.SH "SEE ALSO"
.BR PCPIntro (1),
.BR collectl (1),
.BR perl (1),
.BR python (1),
.BR pmlogger (1),
.BR pmcd (1),
.BR pmprobe (1),
.BR pmval (1),
.BR PMAPI (3),
and
.BR pcp.conf (5).