File: sge_dl.8

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 (103 lines) | stat: -rw-r--r-- 3,474 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
'\" t
.\" Copyright (C), 2012  Dave Love, Liverpool University
.\" You may distribute this file under the terms of the GNU Free
.\" Documentation License.
.TH sge_dl 8 2012-01-18 
.SH NAME
dl \- setting xxQS_NAME_Sxx debug tracing information
.SH SYNOPSIS
.B "source $SGE_ROOT/util/dl.sh"
.br
.B dl
.I level
.SH DESCRIPTION
The
.I dl
shell script alias is obtained by sourcing one of the scripts
.I $SGE_ROOT/util/dl.sh
or
.IR $SGE_ROOT/util/dl.csh ,
for Bourne and C shell respectively.  It provides a convenient way to
set up the environment to produce certain xxQS_NAME_Sxx debugging
information.  It is mostly useful for maintainers, but may
occasionally be useful to users diagnosing problems.  (In that case it
probably indicates a need for extra user-level messages logged in the
spool area or elsewhere, which should be improved.)
.PP
The
.I level
argument specifies the printing of debugging output by the
xxQS_NAME_Sxx components as described below, or 0 to turn off
debugging output and reset the other environment variables concerned.
When tracing is on, output goes to the stderr stream.
.B dl
also sets (or, with argument 0, resets) the
.B SGE_ND
environment variable to make daemon programs run in the foreground
rather than actually daemonizing, and also
.BR SGE_ENABLE_COREDUMP ,
which enables core dumps from daemons which change user or group.  The
trace output is most often used for debugging daemons; some is
available from client programs but is typically less useful.
.SS "Debugging levels"
Debugging is specified in terms of "layers", describing particular
components of the system, such as libraries, indexed by a number:
.IP "TOP (0)"
General information;
.IP "CULL (1)"
List-processing (not used consistently);
.IP "BASIS (2)"
Apparently intended for low-level routines, such as string processing,
but used quite generally;
.IP "GUI (3)"
Operations in the
.I qmon
graphical client;
.IP "GDI (6)"
Grid Engine Database Interface for dealing with "objects" maintained
by the qmaster process;
.IP "PACK (7)"
Packing and unpacking network data.
.PP
The other indices are unused.
.PP
There are also different "classes" which determine the type/amount of
information printed, again indexed by a number:
.IP "TRACE (1)"
Tracing function enter/exit (generated by DENTER, DEXIT etc. macros);
.IP "INFOPRINT (2)"
General information (generated by DPRINTF);
.IP "TIMING (16)"
Time taken by execd to start a job;
.IP "LOCK (32)"
Locking/mutex information.
.PP
Other classes are defined, but currently unused.  For those and unused
layers, see the source file
.IR libs/uti/sge_rmon_monitoring_level.h .
.PP
The layers and classes are combined into a number of different
"levels" which may be used as the argument of
.B dl
to select the output layers and classes, as follows:
.TS
tab(@),box;
l|l|l.
Level @ Layer(s) @ Class(es)
_
0 @ \-                         @ turn off all
1 @ TOP                        @ INFOPRINT
2 @ TOP                        @ TRACE + INFOPRINT
3 @ TOP + CULL + GDI           @ INFOPRINT
4 @ TOP + CULL + GDI           @ TRACE + INFOPRINT
5 @ TOP + GUI + GDI            @ INFOPRINT
6 @ TOP + CULL + BASIS + GDI   @ LOCK
9 @ TOP + CULL + BASIS         @ INFOPRINT
10 @ TOP + CULL + BASIS + PACK @ TRACE + INFOPRINT
.TE
.PP
with other levels unused.  10 is not usually interesting.
.SH FILES
.IR $SGE_ROOT/util/dl.sh , $SGE_ROOT/util/dl.csh
.SH "ENVIRONMENT VARIABLES"
xxQS_NAME_Sxx_DEBUG_LEVEL, SGE_ND, and SGE_ENABLE_COREDUMP, as above