File: qstat.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 (989 lines) | stat: -rw-r--r-- 33,135 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
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
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
'\" t
.\"___INFO__MARK_BEGIN__
.\"
.\" Copyright: 2004-2007 by Sun Microsystems, Inc.
.\" Copyright (C) 2011, 2012, 2013  Dave Love, University of Liverpool
.\"
.\"___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 QSTAT 1 "2012-09-17" "xxRELxx" "xxQS_NAMExx User Commands"
.SH NAME
qstat \- show the status of xxQS_NAMExx jobs and queues
.\"
.\"
.SH SYNTAX
.B qstat
.RB [ \-ext ]
.RB [ \-f ]
.RB [ \-F
.RI [ resource_name ,...]]
.RB [ \-g
.BR c | d | t [ + ]]
.RB [ \-help ]
.RB [ \-j
.RI [ job_list ]]
.RB [ \-l
.IR resource = val ,... ]
.RB [ \-ne ]
.RB [ \-pe
.IR pe_name ,...]
.RB [ \-ncb ]
.RB [ \-pri ]
.RB [ \-q
.IR wc_queue_list ]
.RB [ \-qs
.BR a | c | d | o | s | u | A | C | D | E | S ]
.RB [ \-r ]
.RB [ \-s
.RB { r | p | s | z | hu | ho | hs | hd | hj | ha | h | a }[+]]
.RB [ \-t ]
.RB [ \-U
.IR user ,...]
.RB [ \-u
.IR user ,...]
.RB [ \-urg ]
.RB [ \-xml ]
.\"
.SH DESCRIPTION
.I qstat
shows the current status of the available xxQS_NAMExx queues and the
jobs associated with the queues. Selection options allow you
to get information about specific jobs, queues or users.
If multiple selections are done, a queue is only displayed if all
selection criteria for a queue instance are met.
Without any option
.I qstat
will display only a list of jobs, with no queue status
information.
.PP
The administrator and the user may define files (see
.M sge_qstat 5 ),
which can contain any of the options described below. A cluster-wide sge_qstat
file may be  placed under
$xxQS_NAME_Sxx_ROOT/$xxQS_NAME_Sxx_CELL/common/sge_qstat.
The user private file is searched for at the location
$HOME/.sge_qstat.
The home directory request file has higher precedence than
the cluster global file.
The command line can be used to override the flags contained in the files.
.\"
.SH OPTIONS
.IP "\fB\-explain a\fP|\fBA\fP|\fBc\fP|\fBE\fP"
\[oq]\fBc\fP\[cq] displays the reason for the c(onfiguration ambiguous) state of a queue
instance.  \[oq]\fBa\fP\[cq] shows the reason for the alarm state. Suspend alarm state
reasons will be displayed by \[oq]\fBA\fP\[cq]. \[oq]\fBE\fP\[cq] displays the reason for a queue
instance error state.
.sp
The output format for the alarm reasons is one line per reason, containing
the resource value and threshold. For details about the resource value please
refer to the description of the \fBFull Format\fP in section \fBOUTPUT FORMATS\fP below.
.IP "\fB\-ext\fP"
Displays additional information for each job related to the job ticket policy scheme 
(see OUTPUT FORMATS below).
.\"
.IP "\fB\-f\fP"
Specifies a "full" format display of information.
The \fB\-f\fP option causes summary
information on all queues to be displayed along with the
queued job list.
.\"
.IP "\fB\-F\fP [ \fIresource_name\fP,... ]"
As for \fB\-f\fP, information is displayed on all jobs as well as
queues. In addition,
.I qstat
will present a detailed listing of the current 
resource availability per queue with respect to all resources (if the option 
argument is omitted) or with respect to those resources contained in the 
resource_name list. Please refer to the description of the
\fBFull Format\fP in 
section \fBOUTPUT FORMATS\fP below for further detail.
.\"
.IP "\fB\-g\fP {\fBc\fP|\fBd\fP|\fBt\fP}[\fB+\fP]"
The \fB\-g\fP option allows for controlling grouping of displayed
objects.
.sp
With \fB\-g c\fP a cluster queue summary is displayed. Find  more information
in the section \fBOUTPUT FORMATS\fP. 
.sp
With \fB\-g d\fP array jobs are displayed verbosely in a one 
line per job task fashion. By default, array jobs are grouped and all 
tasks with the same status (for pending tasks only) are displayed in a 
single line. The array job task id range field in the output (see section
\fBOUTPUT FORMATS\fP) specifies the corresponding set of tasks.
.sp
With \fB\-g t\fP parallel jobs are displayed verbosely in a one line 
per parallel job task fashion. By  default, parallel job tasks are
displayed in a single line. Also with \fB\-g t\fP option the function of each 
parallel task is displayed rather than the jobs slot amount (see section
\fBOUTPUT FORMATS\fP).
.sp 1
.\"
.IP "\fB\-help\fP"
Prints a listing of all options.
.\"
.IP "\fB\-j\fP [\fIjob_list\fP]"
Prints various information either (without an argument) for all
pending jobs, or the jobs contained in
\fIjob_list\fP. The \fIjob_list\fP can contain job_ids, job_names, or
wildcard expressions
.M sge_types 5
matching jobs.
.sp
For jobs in E(rror) state the error reason is displayed. For jobs that
could not be dispatched during in the last scheduling interval the 
obstacles are shown, if \fBschedd_job_info\fP in 
.M sched_conf 5 
is configured accordingly.
.sp
For running jobs, the available information on resource utilization is
shown for each task (see
.M accounting 5 ):
consumed cpu time in seconds, integral memory usage in Gbytes
seconds, amount of data transferred in io operations in Gbytes,
current virtual
memory utilization in Mbytes, and maximum virtual memory utilization in 
Mbytes. This information is not available if resource utilization 
retrieval is not supported for the OS platform where the job is hosted.
It is also not available immediately after a job has started, before a
load report is received.
.sp
The resource usage reported is affected if \fBACCT_RESERVED_USAGE\fP
or \fBSHARETREE_RESERVED_USAGE\fP is specified in the
.M sge_conf 5
configuration.  Then the requested values are reported, not the actual
usage (not multiplied by the slot count).   If there is no memory
request, 'mem' is reported as zero, and the vmem values as 'N/A'.
.sp
Unless \fB\-ncb\fP is specified, the output
contains information about a requested binding (see \fB\-binding\fP
of option
.M qsub 1 )
and the changes that have been applied to the topology string (real
binding) for the host where this job is running.
The topology string will contain capital letters for all those cores
that were not bound to the displayed job. Bound cores will be shown
lowercase (e.g. "SCCcCSCCcC" means that core 2 on the two available
sockets was bound to this job).
.sp
See
.M load_parameters 5
for detailed information on the standard set of load values.
.sp
Note that a
.B version
.I n
field in the output indicates
.I n
changes with
.M qalter 1 .
.\"
.IP "\fB\-l resource\fP[\fB=value\fP],..."
Defines the resources required by the jobs or granted by the 
queues on which information is requested. Matching is performed 
on queues based on non-mutable resource availability information 
only. That means load values are always ignored except the 
so-called static load values listed in
.M load_parameters 5 .
Consumable utilization is also ignored.
The pending jobs are restricted to jobs that might run in 
one of the above queues. In a similar fashion also the queue-job
matching bases only on non-mutable resource availability 
information.
If there are multiple \fB\-l\fP resource requests they will be concatenated by
a logical AND: a queue needs to match all resources to be displayed.
.\"
.IP "\fB\-ne\fP"
In combination with \fB\-f\fP the option suppresses the display of empty 
queues. This means all queues where actually no jobs are running are not
displayed.
.\"
.IP "\fB\-ncb\fP"
In combination with \fB\-ncb\fP the output of a command will
omit information on any requested binding and
changes that have been applied to the topology string (the real
binding) for the host where the job is running.
This information will disappear in combination with the parameters
\fB\-r\fP and \fB\-j\fP.
.sp
Please note that this command line switch is intended to provide backward
compatibility and will be removed in the next major release.
.\"
.IP "\fB\-pe\fP \fIpe_name\fP,..."
Displays status information with respect to queues to which are attached
to at least one of the parallel environments listed in the comma-separated
option argument.
\" Status information for jobs is displayed either for those
\" which execute in one of the selected queues or which are pending and
\" might get scheduled to those queues in principle.
Status information is displayed for jobs which are executing in one of
the selected queues.
.\"
.IP "\fB\-pri\fP"
Displays additional information for each job related to the job priorities in 
general.
(see OUTPUT FORMATS below).
.\"
.IP "\fB\-q\fP \fIwc_queue_list\fP"
Specifies a wildcard expression queue list for which job
information is to be displayed. Find the definition of \fIwc_queue_list\fP
in
.M sge_types 5 .
.\"
.IP "\fB\-qs\fP {\fBa\fP|\fBc\fP|\fBd\fP|\fBo\fP|\fBs\fP|\fBu\fP|\fBA\fP|\fBC\fP|\fBD\fP|\fBE\fP|\fBS\fP}"
Allows for the filtering of queue instances according to state.
.\"
.IP "\fB\-r\fP"
Prints extended information about the resource requirements
of the displayed jobs. 
.sp
Please refer to the \fBOUTPUT FORMATS\fP
sub-section \fBExpanded Format\fP below for detailed information.
.\"
.IP "\fB\-s\fP {\fBp\fP|\fBr\fP|\fBs\fP|\fBz\fP|\fBhu\fP|\fBho\fP|\fBhs\fP|\fBhd\fP|\fBhj\fP|\fBha\fP|\fBh\fP|\fBa\fP}[\fB+\fP]"
Prints only jobs in the specified state, any combination of states is
possible. \fB\-s prs\fP (pending, running, and stopped jobs)
corresponds to the regular
.I qstat
output without \fB\-s\fP
at all. To show recently finished ("zombie") jobs (according to the
.M sge_conf 5
.B finished_jobs
parameter) use \fB\-s z\fP.  (The zombie list is not spooled, and so will be
lost by a qmaster re-start.)
To display jobs in user/operator/system/array-dependency hold,
use
.B \-s
.BR hu / ho / hs / hd .
The \fB\-s ha\fP option shows jobs which were submitted with the 
\fBqsub \-a\fP command.
\fBqstat \-s hj\fP
displays all jobs which are not eligible for execution unless the job
has entries in the job dependency list.
\fBqstat \-s h\fP is an abbreviation for \fBqstat \-s huhohshdhjha\fP,
and \fBqstat \-s a\fP is an abbreviation for \fBqstat \-s psr\fP
(see \fB\-a\fP, \fB\-hold_jid\fP 
and \fB\-hold_jid_ad\fP options to
.M qsub 1 ).
.\"
.IP "\fB\-t\fP"
Prints extended information about the controlled sub-tasks
of the displayed parallel jobs. Please refer to the \fBOUTPUT FORMATS\fP
sub-section \fBReduced Format\fP below for detailed information. Sub-tasks
of parallel jobs should not be confused with array job tasks (see \fB\-g\fP
option above and \fB\-t\fP option to
.M qsub 1 ).
.\"
.IP "\fB\-U\fP \fIuser\fP,..."
Displays status information with respect to queues to which the specified 
users have access. Status information for jobs is displayed either for those 
which execute in one of the selected queues or which are pending and 
might get scheduled to those queues in principle.
.\"
.IP "\fB\-u\fP \fIuser\fP,..."
Display information only on those jobs and queues
associated with the users from the given user list.
Queue status information is displayed if the \fB\-f\fP or \fB\-F\fP
options are specified additionally and if the user runs
jobs in those queues. 
.sp
The string
\fB\ $user\fP
is a placeholder for the current username. An asterisk "*" can be used 
as username wildcard to request any users' jobs be displayed. The default
value for this switch is \fB\-u $user\fP.
.\"
.IP "\fB\-urg\fP"
Displays additional information for each job related to the job urgency policy scheme
(see OUTPUT FORMATS below).
.\"
.IP "\fB\-xml\fP"
This option can be used with all other options and changes the output to XML. The used
schemas are referenced in the XML output. The output is printed to stdout.
For more detailed information, the schemas for the qstat command can be found
in
.IR $SGE_ROOT/util/resources/schemas/qstat .
.sp
If the \fB\-xml\fP parameter is combined with \fB\-ncb\fP then the XML output does
not contain tags with information about job to core binding.
.\"
.PP
The following two debugging options are available only when the
environment variable
.B MORE_INFO
is defined.
.IP "\fB\-dj\fP"
Displays the full
.B global_job_list
internal state.
.\"
.IP "\fB\-dq\fP"
.\" fixme: no-op?
Displays the full
.B global_queue_list
internal state.
.\"
.\"
.SH "OUTPUT FORMATS"
Depending on the presence or absence of the \fB\-explain\fP, \fB\-f\fP, \fB\-F\fP, or \fB\-qs\fP and
\fB\-r\fP and \fB\-t\fP option three output formats need to be differentiated.
.PP
The \fB\-ext\fP and \fB\-urg\fP options may be used 
to display additional information for each job.
.\"
.SS "\fBCluster Queue Format (with \-g c)\fP"
Following the header line a section for each cluster queue
is provided. When queue instances selection are applied (\-l \-pe, \-q, \-U)
the cluster format contains only cluster queues of the corresponding queue
instances.
.IP "\(bu" 3n
the cluster queue name.
.IP "\(bu" 3n
an average of the normalized load average of all queue hosts. In order 
to reflect each hosts different significance the number of configured 
slots is used as a weighting factor when determining cluster queue load. 
Please note that only hosts with an np_load_value are considered for this
value. When queue selection is applied, only data about selected queues
is considered in this formula. If the load value is not available at 
any of the hosts '\-NA\-' is printed instead of the value from the complex
attribute definition.
.IP "\(bu" 3n
the number of currently used slots. 
.IP "\(bu" 3n
the number of slots reserved by advance reservation (not resource reservation).
.IP "\(bu" 3n
the number of currently available slots.
.IP "\(bu" 3n
the total number of slots.
.IP "\(bu" 3n
the number of slots which is in at least one of the states  'aoACDS' and in
none of the states 'cdsuE'
.IP "\(bu" 3n
the number of slots which are in one of these states or in any  combination 
of them: 'cdsuE'
.IP "\(bu" 3n
the \fB\-g c\fP option can be used in combination with \fB\-ext\fP. In this
case, additional columns are added to the output. Each column contains
the slot count for one of the available queue states.
.SS "\fBReduced Format (without \-f, \-F, and \-qs)\fP"
Following the header line a line is printed for each job
consisting of
.IP "\(bu" 3n
the job ID.
.IP "\(bu" 3n
the priority of the job determining its position in the pending jobs list.
The priority value is determined 
dynamically based on ticket and urgency policy set-up (see also
.M sge_priority 5 ).
.IP "\(bu" 3n
the name of the job.
.IP "\(bu" 3n
the user name of the job owner.
.IP "\(bu" 3n
the status of the job \- a combination of
.BR d (eletion),
.BR E (rror),
.BR h (old),
.BR q (ueued),
.BR r (unning),
.BR R (estarted),
.BR s (uspended),
.BR S(uspended),
.BR t (ransfering),
.BR T (hreshold),
.BR w (aiting),
or
.BR z (ombie).
.sp 1
The state \fBd\fP(eletion) indicates that
.M qdel 1
has been used to initiate job deletion.
The states \fBt\fP(ransfering) and \fBr\fP(unning) indicate that a job is about to
be executed or is already executing, whereas the states \fBs\fP(uspended),
\fBS\fP(uspended) and \fBT\fP(hreshold) show that an already running jobs has been
suspended. The \fBs\fP(uspended) state is caused by suspending the job via the
.M qmod 1
command, the \fBS\fP(uspended) state indicates that the queue containing the job
is suspended and therefore the job is also suspended and the \fBT\fP(hreshold)
state shows that at least one suspend threshold of the corresponding queue
was exceeded (see
.M queue_conf 5 ),
and that the job has been suspended as a consequence. The state \fBR\fP(estarted)
indicates that the job was restarted. This can be caused by a job migration or
for one of the reasons described in the \fB\-r\fP section of
.M qsub 1 .
.sp 1
The states \fBq\fP(ueued)/\fBw\fP(aiting) and \fBh\fP(old) only appear for pending jobs.
Pending, unheld jobs are displayed as
.BR qw .
The \fBh\fP(old)
state indicates that a job currently is not eligible for execution due to
a hold state assigned to it via
.M qhold 1 ,
.M qalter 1
or the
.M qsub 1
\fB\-h\fP option, or that the job is waiting for completion of the jobs
for which job dependencies have been assigned to it job via the
\fB\-hold_jid\fP or \fB\-hold_jid_ad\fP options of
.M qsub 1
or
.M qalter 1 .
.sp 1
The state \fBz\fP(ombie) appears for finished jobs when the
.B \-s\ z
option is used.
.sp 1
The state \fBE\fP(rror) appears for pending jobs that couldn't be started due to
job properties. The reason for the job error is shown by the
\fB\-j\fP\ \fIjob_list\fP option.
.sp 1
See also
.M sge_status 5 .
.IP "\(bu" 3n
the submission or start time and date of the job.
.IP "\(bu" 3n
the queue the job is assigned to (for running or suspended
jobs only).
.IP "\(bu" 3n
the number of job slots or the function of parallel job tasks 
if \fB\-g t\fP is specified.
.sp 1
Without \fB\-g t\fP option the total number of slots occupied or requested by the job
is displayed. For pending parallel jobs with a PE slot range request,
the assumed future slot allocation is displayed.
With \fB\-g t\fP option the function of the running jobs (MASTER or SLAVE \- the 
latter for parallel jobs only) is displayed.
.IP "\(bu" 3n
the array job task id. Will be empty for non-array jobs. See the
\fB\-t\fP option to
.M qsub 1
and the \fB\-g\fP above for additional information.
.\"
.PP
If the \fB\-t\fP option is supplied, each status line always contains
parallel job task information as if \fB\-g t\fP were specified and
each line contains the following parallel job subtask information:
.IP "\(bu" 3n
the parallel task ID (do not confuse parallel tasks with array job tasks),
.IP "\(bu" 3n
the status of the parallel task \- one of 
r(unning), R(estarted), s(uspended), S(uspended), T(hreshold), w(aiting),
h(old), or x(exited).
.IP "\(bu" 3n
the cpu, memory, and I/O usage,
.IP "\(bu" 3n
the exit status of the parallel task,
.IP "\(bu" 3n
and the failure code and message for the parallel task.
.SS "\fBFull Format (with \-f and \-F)\fP"
Following the header line a section for each queue separated
by a horizontal line is provided. For each queue the information
printed consists of
.IP "\(bu" 3n
the queue name;
.IP "\(bu" 3n
the queue type \- one of
.BR B (atch),
.BR I (nteractive),
.BR C (heckpointing),
.BR P (arallel),
combinations thereof, or
.BR N (one)
("Type" in the case of C and P,
just means there is an entry in its ckpt_list or pe_list respectively;)
.IP "\(bu" 3n
the number of used and available job slots;
.IP "\(bu" 3n
the load average of the queue host or another load value \- see
SGE_LOAD_AVG in the ENVIRONMENT VARIABLES section below;
.IP "\(bu" 3n
the architecture of the queue host;
.IP "\(bu" 3n
.\" also listed in qhost(1)
the state of the queue \- one of
.BR u (nknown),
.BR a (larm),
.BR A (larm),
.BR C "(alendar suspended),"
.BR s (uspended),
.BR S (ubordinate),
.BR d (isabled),
.BR D (isabled),
.BR E (rror),
.BR c "(configuration ambiguous),"
.BR o (rphaned),
.BR P (reempted),
or some combination thereof.
.PP
If the state is
.BR u ,
the corresponding
.M xxqs_name_sxx_execd 8
cannot be contacted.
.PP
If the state is
.BR a (larm),
at least one of the load thresholds defined in the
\fIload_thresholds\fP list of the queue configuration (see
.M queue_conf 5 )
is 
currently exceeded, which prevents scheduling further jobs to that
queue.
The state
.BR A (larm)
indicates that at least one of the
suspend thresholds of the queue (see
.M queue_conf 5 )
is currently exceeded. This will result in jobs running in that queue being
successively suspended until no threshold is violated.
.PP
The states
.BR  s (uspended)
And
.BR d (isabled)
can be assigned to queues and released via the
.M qmod 1
command. Suspending a queue will cause all jobs executing in that queue to
be suspended.
.PP
The states
.BR D (isabled)
And
.BR C "(alendar suspended)"
indicate that the queue
has been disabled, or suspended automatically via the xxQS_NAMExx
calendar facility (see
.M calendar_conf 5 ),
while the
.BR  S (ubordinate)
state
indicates that the queue has been suspended via subordination to another
queue (see
.M queue_conf 5
for details). When suspending a queue 
(regardless of the cause) all jobs executing in that queue are suspended 
too.
.PP
The state
.BR P (reempted)
indicates that the queue has been disabled via
slotwise subordination to another queue, preventing it getting jobs
which would simply be suspended.
.PP
An
.BR E (rror)
state is displayed for a queue for various reasons such as
failing to find executables or directories. Please check the
error logfile of that
.M xxqs_name_sxx_execd 8
for the reason, indicating how to resolve the problem. Please enable the
queue afterwards via the \fB\-c\fP option of the
.M qmod 1
command manually.
.PP
If the
.BR c (onfiguration ambiguous)
state is displayed for a queue
instance, the configuration specified for this
queue instance in
.M sge_conf 5
is ambiguous. This state is cleared when
the configuration becomes unambiguous again. This state prevents further jobs
from being scheduled to that queue instance. Detailed reasons why
a queue instance entered the \fBc\fP state can
be found in the
.M sge_qmaster 8
messages file and are shown by the
.M qstat 1
.B \-explain
switch. For queue instances in this state the cluster
queue's default settings are used for the ambiguous attribute.
.PP
If an
.BR o (rphaned)
state is displayed for a queue instance, it
indicates that the queue instance is no longer demanded by the current
cluster queue configuration or the host group configuration.
The queue instance is kept because jobs which have not yet finished
are still associated with it, and it will vanish from \fIqstat\fP output
when these jobs have finished. To quicken vanishing of an orphaned
queue instance, associated job(s) can be deleted using
.M qdel 1 .
A queue instance in the orphaned state can be revived by changing
the cluster queue configuration to cover that queue
instance. This state prevents scheduling further jobs to that
queue instance.
.PP
If the \fB\-F\fP option was used, resource availability information is printed 
following the queue status line. For each resource (as selected in an option 
argument to \fB\-F\fP, or for all resources if the option argument was
omitted) a single line is displayed with the following format:
.IP "\(bu" 3n
a one letter specifier indicating whether the current resource availability 
value was dominated by either
.br
\[oq]\fBg\fP\[cq] \- a cluster global,
.br
\[oq]\fBh\fP\[cq] \- a host total or
.br
\[oq]\fBq\fP\[cq] \- a queue related resource consumption.
.IP "\(bu" 3n
a second one letter specifier indicating the source for the current resource 
availability value, one of
.br
\[oq]\fBl\fP\[cq] \- a load value reported for the
resource,
.br
\[oq]\fBL\fP\[cq] \- a load value for the resource after administrator
defined load scaling has been applied,
.br
\[oq]\fBc\fP\[cq] \- availability derived from
the consumable resources facility (see
.M complexes 5 ),
.br
\[oq]\fBf\fP\[cq] \- a fixed
availability definition derived from a non-consumable complex attribute or 
a fixed resource limit.
.IP "\(bu" 3n
after a colon the name of the resource on which information is displayed.
.IP "\(bu" 3n
after an equal sign the current resource availability value.
.PP
The displayed availability values and the sources from which they derive are 
always the minimum values of all possible combinations. Hence, for example,
a line of the form "qf:h_vmem=4G" indicates that a queue currently has a 
maximum availability in virtual memory of 4 Gigabyte, where this value is a 
fixed value (e.g. a resource limit in the queue configuration) and it is queue 
dominated, i.e. the host in total may have more virtual memory available than 
this, but the queue doesn't allow for more. Contrarily a line "hl:h_vmem=4G" 
would also indicate an upper bound of 4 Gigabyte virtual memory 
availability, but the limit would be derived from a load value currently 
reported for the host. So while the queue might allow for jobs with higher 
virtual memory requirements, the host on which this particular queue resides 
currently only has 4 Gigabyte available.
.PP
If the \fB\-explain\fP option was used with the character 'a' or 'A', 
information about resources is displayed, that
violate load or suspend thresholds.
.br
The same format as with the \fB\-F\fP option is used with following extensions:
.IP "\(bu" 3n
the line starts with the keyword \[oq]alarm\[cq]
.br
.IP "\(bu" 3n
appended to the resource value is the type and value of the appropriate threshold
.PP
After the queue status line (in case of \fB\-f\fP) or the resource
availability information (in case of \fB\-F\fP) a single line is printed
for each job running currently in this queue. Each job status
line contains
.IP "\(bu" 3n
the job ID,
.IP "\(bu" 3n
the priority of the job determining its position in the pending jobs list.
The priority value is determined 
dynamically based on ticket and urgency policy set-up (see also
.M sge_priority 5 ).
.IP "\(bu" 3n
the job name,
.IP "\(bu" 3n
the job owner name,
.IP "\(bu" 3n
the status of the job; see the \fBReduced Format\fP section for information,
.IP "\(bu" 3n
the submission or start time and date of the job.
.IP "\(bu" 3n
the number of job slots or the function of parallel job tasks 
if \fB\-g\ t\fP is specified.
.sp 
Without \fB\-g t\fP option the number of slots occupied per queue resp. requested by the job 
is displayed. For pending parallel jobs with a PE slot range request,
the assumed future slot allocation is displayed.
With \fB\-g\ t\fP option the function of the running jobs (MASTER or SLAVE \- the
latter for parallel jobs only) is displayed.
.PP
If the \fB\-t\fP option is supplied, each job status line also contains
.IP "\(bu" 3n
the task ID,
.IP "\(bu" 3n
the status of the task \- one of 
.BR r (unning),
.BR R (estarted),
.BR s (uspended),
.BR S (uspended),
.BR T (hreshold),
.BR w (aiting),
.BR h (old),
or
.RB (e) x (xited)
(see the
\fBReduced Format\fP section for detailed information),
.IP "\(bu" 3n
the cpu, memory, and I/O usage,
.IP "\(bu" 3n
the exit status of the task,
.IP "\(bu" 3n
and the failure code and message for the task.
.PP
Following the list of queue sections a \fIPENDING JOBS\fP list may
be printed in case jobs are waiting to be assigned to a queue.
A status line for each waiting job is displayed similar to
the one for the running jobs. The differences are that the status
for the jobs is w(aiting) or h(old), that the submit time and date
is shown instead of the start time and that no function
is displayed for the jobs.
.PP
In very rare cases, e.g. if
.M xxqs_name_sxx_qmaster 8
starts up from an inconsistent state in the job or queue spool
files or if the \fBclean queue\fP (\fB\-cq\fP) option of
.M qconf 1
is used,
.I qstat
cannot assign jobs to either the running or pending jobs section
of the output. In this case as job status inconsistency (e.g. a
job has a running status but is not assigned to a queue) has been
detected. Such jobs are printed in an \fIERROR JOBS\fP section at the
very end of the output. The ERROR JOBS section should disappear
upon restart of
.M xxqs_name_sxx_qmaster 8 .
Please contact your xxQS_NAMExx support representative if you feel
uncertain about the cause or effects of such jobs.
.\"
.SS "\fBExpanded Format (with \-r)\fP"
If the \fB\-r\fP option was specified together with \fIqstat\fP,
the following information for each displayed job is printed (a single line
for each of the following job characteristics):
.IP "\(bu" 3n
The job and master queue name.
.IP "\(bu" 3n
The hard and soft resource requirements of the job as specified
with the
.M qsub 1
\fB\-l\fP option. The per-resource 
addend when determining the job's urgency contribution value is 
printed (see also 
.M sge_priority 5 ).
.IP "\(bu" 3n
The requested parallel environment including the
desired queue slot range (see \fB\-pe\fP option of
.M qsub 1 ).
.IP "\(bu" 3n
The requested checkpointing environment of the job (see the
.M qsub 1
\fB\-ckpt\fP option).
.IP "\(bu" 3n
In case of running jobs, the granted
parallel environment with the granted number of queue slots.
.IP "\(bu" 3n
The requested job binding parameters.
.\"
.SS "\fBEnhanced Output (with \-ext)\fP"
For each job the following additional items are displayed:
.\"
.IP "\fBntckts\fP"
The total number of tickets in normalized fashion.
.\"
.IP "\fBproject\fP"
The project to which the job is assigned as specified in the
.M qsub 1
\fB\-P\fP option.
.\"
.IP "\fBdepartment\fP"
The department, to which the user belongs (use the \fB\-sul\fP and
\fB\-su\fP options of
.M qconf 1
to display the current department definitions).
.\"
.IP "\fBcpu\fP"
The current accumulated CPU usage of the job in seconds.
See
.M accounting 5
concerning this and the next two items.
.\"
.IP "\fBmem\fP"
The current accumulated memory usage of the job in Gbytes seconds.
.\"
.IP "\fBio\fP"
The current accumulated IO usage of the job.
.\"
.IP "\fBtckts\fP"
The total number of tickets assigned to the job currently
.\"
.IP "\fBovrts\fP"
The override tickets as assigned by the \fB\-ot\fP option of
.M qalter 1 .
.\"
.IP "\fBotckt\fP"
The override portion of the total number of tickets assigned to the
job currently
.\"
.IP "\fBftckt\fP"
The functional portion of the total number of tickets assigned to the
job currently
.\"
.IP "\fBstckt\fP"
The share portion of the total number of tickets assigned to the
job currently
.\"
.IP "\fBshare\fP"
The share of the total system to which the job is entitled currently.
.\"
.SS "\fBEnhanced Output (with \-urg)\fP"
For each job the following additional urgency policy related items are 
displayed (see also
.M sge_priority 5 ):
.\"
.IP "\fBnurg\fP"
The jobs total urgency value in normalized fashion.
.\"
.IP "\fBurg\fP"
The jobs total urgency value.
.\"
.IP "\fBrrcontr\fP"
The urgency value contribution that reflects the urgency
that is related to the jobs overall resource requirement.
.\"
.IP "\fBwtcontr\fP"
The urgency value contribution that reflects the urgency related to
the jobs waiting time.
.\"
.IP "\fBdlcontr\fP"
The urgency value contribution that reflects the urgency related to
the jobs deadline initiation time.
.\"
.IP "\fBdeadline\fP"
The deadline initiation time of the job as specified with the
.M qsub 1
\fB\-dl\fP option.
.\"
.SS "\fBEnhanced Output (with \-pri)\fP"
For each job, the following additional job priority related items are 
displayed (see also
.M sge_priority 5 ):
.\"
.IP "\fBnurg\fP"
The job's total urgency value in normalized fashion.
.\"
.IP "\fBnpprior\fP"
The job's \fB\-p\fP priority in normalized fashion.
.\"
.IP "\fBntckts\fP"
The job's ticket amount in normalized fashion.
.\"
.IP "\fBppri\fP"
The job's \fB\-p\fP priority as specified by the user.
.\"
.\"
.SH "ENVIRONMENT VARIABLES"
.\"
.IP "\fBMORE_INFO\fP" 1.5i
If defined, enable the debugging
.B \-dj
and
.B \-dq
options, as above.
.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 qstat
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 "\fBSGE_LONG_QNAMES\fP" 1.5i
Qstat displays queue names up to 30 characters. If that is
too much or not enough, one can set a custom length with this
variable. The minimum display length is 10 characters. If one does
not know the best display length, one can set SGE_LONG_QNAMES to
\-1 and qstat will figure out the best length.
.\"
.IP \fBSGE_LOAD_AVG\fP 1.5i
Specify a load parameter (see
.M load_parameters 5 )
to use instead of
.B load_avg
when displaying/selecting load values.
.\"
.\"
.SH FILES
.nf
.ta \w'<xxqs_name_sxx_root>/     'u
\fI<xxqs_name_sxx_root>/<cell>/common/act_qmaster\fP
	xxQS_NAMExx master host file
.ta \w'<xxqs_name_sxx_root>/     'u
\fI<xxqs_name_sxx_root>/<cell>/common/xxqs_name_sxx_qstat\fP
	cluster qstat default options
\fI$HOME/.xxqs_name_sxx_qstat\fR	
	user qstat default options
.fi
.\"
.\"
.SH "SEE ALSO"
.M xxqs_name_sxx_intro 1 ,
.M accounting 5 ,
.M load_parameters 5 ,
.M qalter 1 ,
.M qconf 1 ,
.M qhold 1 ,
.M qhost 1 ,
.M qmod 1 ,
.M qsub 1 ,
.M queue_conf 5 ,
.M xxqs_name_sxx_execd 8 ,
.M xxqs_name_sxx_qmaster 8 ,
.M xxqs_name_sxx_status 5 .
.M xxqs_name_sxx_shepherd 8 .
.\"
.\"
.SH "COPYRIGHT"
See
.M xxqs_name_sxx_intro 1
for a full statement of rights and permissions.