File: qacct.1

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-13.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 57,140 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,445; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,704; csh: 3,934; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (312 lines) | stat: -rw-r--r-- 8,954 bytes parent folder | download | duplicates (6)
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
'\" t
.\"___INFO__MARK_BEGIN__
.\"
.\" Copyright: 2004 by Sun Microsystems, Inc.
.\"
.\"___INFO__MARK_END__
.\"
.\"
.\" Some handy macro definitions [from Tom Christensen's man(1) manual page].
.\"
.de SB		\" small and bold
.if !"\\$1"" \\s-2\\fB\&\\$1\\s0\\fR\\$2 \\$3 \\$4 \\$5
..
.\" "
.de T		\" switch to typewriter font
.ft CW		\" probably want CW if you don't have TA font
..
.\"
.de TY		\" put $1 in typewriter font
.if t .T
.if n ``\c
\\$1\c
.if t .ft P
.if n \&''\c
\\$2
..
.\"
.de M		\" man page reference
\\fI\\$1\\fR\\|(\\$2)\\$3
..
.TH QACCT 1 "2011-05-20" "xxRELxx" "xxQS_NAMExx User Commands"
.SH NAME
qacct \- report and account for xxQS_NAMExx usage
.SH SYNOPSIS
.B qacct
.RB [ \-ar
.RI [ ar_id ]]
.RB [ \-A
.IR Account ]
.RB [ \-b
.IR BeginTime ]
.RB [ \-d
.IR Days ]
.RB [ \-e
.IR EndTime ]
.RB [ \-g
.RI [ GroupId | GroupName ]]
.RB [ \-h
.RI [ HostName ]]
.RB [ \-help ]
.RB [ \-j
.RI [ job_id | job_name | pattern ]]
.RB [ \-l
.IR attr = val ,...]
.RB [ \-m ]
.RB [ \-o
.RI [ Owner ]]
.RB [ \-u
.RI [ Owner ]]
.RB [ \-pe
.RI [ PEname ]]
.RB [ \-q
.RI [ wc_queue ]]
.RB [ \-slots
.RI [ SlotNumber ]]
.RB [ \-t
.IR task_id_range_list ]
.RB [ \-P
.RI [ Project ]]
.RB [ \-D
.RI [ Department ]]
.RB [ \-f
.IR AcctFileName ]
.RB [ \-E ]
.\"
.\"
.SH DESCRIPTION
The
.I qacct
utility scans the accounting data file (see
.M accounting 5 )
and produces a summary
of information for wall-clock time, CPU time, and system time
for the categories of host name, queue name, group name,
owner name, job name, job ID, and for the queues meeting the resource
requirements as specified with the \fB\-l\fP switch.
Combinations of each category are permitted. Alternatively, all
or specific jobs can be listed with the \fB\-j\fP switch.
For example the
search criteria could include summarizing for a queue and an
owner, but not for two queues in the same request.
.PP
Note that results including parallel jobs depend on the value of
.B accounting_summary
in the parallel environment definition (see
.M sge_pe 5 ).
If it is false, there is an accounting record for slave tasks as well
as master tasks so that, for example, there is a contribution to CPU
time from each task.  Note that the slot count reported for
each task is the total for the job, not that allocated to the slave.
.\"
.\"
.SH OPTIONS
.IP "\fB\-ar\fP [\fIar_id\fP]"
The ID of the advance reservation for which usage is summarized.
If \fIar_id\fP is not given, accounting data are
listed for each advance reservation separately.
.\"
.IP "\fB\-A\fB \fIAccount\fP"
The account for jobs to be summarized. 
.\"
.IP "\fB\-b\fP \fIBeginTime\fP"
The earliest start time for jobs to be summarized, in the format
.RI [[ CC ] YY ] MMDDhhmm [. SS ].
See also the \fB\-d\fP option. If
.I CC
is not specified, a
.I YY
of <70 means
.RI 20 YY .
If the
.B \-E
option is specified, this specifies the earliest job end time instead.
.\"
.IP "\fB\-d\fP \fIDays\fP"
The number of days for which to summarize and print accounting information. If
used together with the \fB\-b \fIBeginTime\fR option (see above), jobs
started (or, with the
.B \-E
option, finished) within \fIBeginTime\fP to \fIBeginTime\fP+\fIDays\fP are
counted. If used together with \fB\-e\fP \fIEndTime\fP (see below)
option, selection is from \fIEndTime\fP\-\fIDays\fP.  With neither,
consider the last
.IR Days .
.\"
.IP "\fB\-e\fP \fIEndTime\fP"
The latest start time for jobs to be summarized, in the format
.RI [[ CC ] YY ] MMDDhhmm [. SS ].
See also the \fB\-d\fP option. If
.I CC
is not specified, a
.I YY
of <70 means
.RI 20 YY .
If the
.B \-E
option is specified, this specifies the latest job end time instead.
.\"
.IP "[\fB\-f\fP \fIAcctFileName\fP]"
The accounting file to be used.  "\-" means use standard input.
If omitted, the system
default accounting file is processed.
.\"
.IP "\fB\-g\fP [\fIGroupId\fP|\fIGroupName\fP]"
The numeric system group id or the group alphanumeric name of the
job owners to be included
in the accounting. If \fIGroupId\fP/\fIGroupName\fP is omitted, all
groups are accounted.
.\"
.IP "\fB\-h\fP [\fIHostName\fP]"
The case-insensitive name of the host upon which accounting
information is requested. If the name is omitted, totals for each host are
listed separately.
.\"
.IP "\fB\-help\fP"
Display help information for the
.I qacct
command.
.\"
.IP "\fB\-j\fP [\fIjob_id\fP|\fIjob_name\fP|\fIpattern\fP]"
The name, an expression for matching names, or ID of the job during execution 
for which accounting information is printed. If neither a name nor an ID 
is given, all jobs are listed.
.br
This option changes the output format of
\fIqacct\fP. If activated, CPU times are no longer accumulated but
"raw" per-job accounting information is printed in a formatted form
instead.  CPU time (seconds), integrated memory usage (GB seconds),
total i/o (bytes), i/o wait time (seconds), and maximum virtual memory
(bytes).
.\"
.IP "\fB\-l \fIattr\fP=\fIval\fP,..."
A resource requirement specification which must be met by the queues
in which the jobs being accounted were executing. The resource request 
is very similar to the one described in
.M qsub 1 .
.\"
.IP \fB\-m\fP
Ignore slave tasks of parallel jobs.  Only relevant when  when
.B accounting_summary
is false, and probably only useful with
.B \-j
to prune the output.
.\"
.IP "\fB\-o\fP [\fIOwner\fP] | \fB\-u\fP [\fIOwner\fP]"
The name of the owner of the jobs for which accounting statistics
are assembled. If the optional \fIOwner\fP argument is omitted,
a listing of the accounting statistics of all job owners
present in the accounting file is produced.
.B \-u
and
.B \-o
are synonyms.
.\"
.IP "\fB\-pe\fP [\fIPEname\fP]"
The name of the parallel environment for which usage is summarized.
If \fIPEname\fP is not given, accounting data are
listed for each parallel environment separately.
.\"
.IP "\fB\-q\fP [\fIwc_queue_name\fP]"
An expression for queues for which usage is summarized. All
queue instances matching the expression will be listed. If
no expression is specified, a cluster queue summary will be 
given.
.\"
.IP "\fB\-slots\fP [\fISlotNumber\fP]"
The number of queue slots for which usage is summarized.
If \fISlotNumber\fP is not given, accounting data are
listed for each number of queue slots separately.
.\"
.IP "\fB\-t \fItask_id_range_list\fP"
Only available together with the \fB\-j\fP option described above.
.sp 1
The \fB\-t\fP switch specifies the array job task range, for which
accounting information should be printed. Syntax and semantics of
\fItask_id_range_list\fP are identical to that one described under the
\fB\-t\fP option to
.M qsub 1 .
Please see there also for further information on array jobs.
.\"
.IP "\fB\-P\fP [\fIProject\fP]"
The name of the project for which usage is summarized.
If \fIProject\fP is not given, accounting data are
listed for each relevant project separately.
.\"
.IP "\fB\-D\fP [\fIDepartment\fP]"
The name of the department for which usage is summarized.
If \fIDepartment\fP is not given, accounting data are
listed for each relevant department separately.
.\"
.IP \fB\-E\fP
When selecting times with
.BR \-b ,
.BR \-e ,
.BR -d ,
use the job end time rather than the start time to select.  This may
be useful because the accounting record is written at the job end.
.\"
.SH "ENVIRONMENT VARIABLES"
.\" 
.IP "\fBxxQS_NAME_Sxx_ROOT\fP" 1.5i
Specifies the location of the xxQS_NAMExx standard configuration
files.
.\"
.IP "\fBxxQS_NAME_Sxx_CELL\fP" 1.5i
If set, specifies the default xxQS_NAMExx cell. To address a xxQS_NAMExx
cell
.I qacct
uses (in the order of precedence):
.sp 1
.RS
.RS
The name of the cell specified in the environment 
variable xxQS_NAME_Sxx_CELL, if it is set.
.sp 1
The name of the default cell, i.e. \fBdefault\fP.
.sp 1
.RE
.RE
.\"
.IP "\fBxxQS_NAME_Sxx_DEBUG_LEVEL\fP" 1.5i
If set, specifies that debug information
should be written to stderr. In addition the level of
detail in which debug information is generated is defined.
.\"
.IP "\fBxxQS_NAME_Sxx_QMASTER_PORT\fP" 1.5i
If set, specifies the tcp port on which
.M xxqs_name_sxx_qmaster 8
is expected to listen for communication requests.
Most installations will use a services map entry for the
service "sge_qmaster" instead to define that port.
.\"
.IP "\fBxxQS_NAME_Sxx_EXECD_PORT\fP" 1.5i
If set, specifies the tcp port on which
.M xxqs_name_sxx_execd 8
is expected to listen for communication requests.
Most installations will use a services map entry for the
service "sge_execd" instead to define that port.
.\"
.\" Fixme: add SGE_QACCT_DEBUG
.\"
.SH FILES
.nf
.ta \w'<xxqs_name_sxx_root>/     'u
\fI<xxqs_name_sxx_root>/<cell>/common/accounting\fP
	xxQS_NAMExx default accounting file
\fI<xxqs_nam_sexx_root>/<cell>/common/act_qmaster\fP
	xxQS_NAMExx master host file
.fi
.\"
.\"
.SH "SEE ALSO"
.M xxqs_name_sxx_intro 1 ,
.M qsub 1 ,
.M accounting 5 ,
.M xxqs_name_sxx_qmaster 8 ,
.\"
.\"
.SH "COPYRIGHT"
See
.M xxqs_name_sxx_intro 1
for a full statement of rights and permissions.