Figure 1 shows the key for the following
examples.
Figure 1. SMF job flow examples
- key
The following examples show how the process data is accumulated
and reported in several instances:
Figure 2. SMF record type 30: Example 1
In
Figure 2, the flow is as follows:
- The job starts and a job start (subtype 1) record is written.
- Process a begins and consumes 12 units of resource.
- The step ends and a step total record (subtype 4) is written.
This record contains one z/OS® UNIX process section showing
the 12 units of resource consumed by process a.
- The job ends and a job termination record (subtype 5) is written.
Because this job contained only one step, the job termination record
contains one z/OS UNIX process section matching that of the step
total record.
Figure 3. SMF record type 30: Example
2
In
Figure 3, the flow is as follows:
- The job starts and a job start (subtype 1) record is written.
- Process a begins and consumes 14 units of resource.
- An Interval record (subtype 2) is written containing one z/OS UNIX process section showing the 14 units of resource consumed
by process a.
- The job continues and process a consumes an additional 10 units
of resource.
- The step ends:
- A step termination record (subtype 3) is written. This record
contains a single z/OS UNIX process section showing the
additional 10 units of resource consumed by process a after the interval.
- A step total record (subtype 4) is written. This record contains
two z/OS UNIX process sections:
- One showing the 14 units of resource consumed by process a before
the interval
- One showing the 10 units of resource consumed by process a after
the interval
- The job ends and a job termination record (subtype 5) is written.
Because this job contained only one step, the z/OS UNIX process sections in the job termination record are identical to
those written in the step total record.
Figure 4. SMF record type 30: Example
3
In
Figure 4, the flow is as follows:
- The job starts and a job start (subtype 1) record is written.
- Process a begins and consumes 2 units of resource.
- The job is “undubbed” and “dubbed” again as process b. Process
b consumes 8 units of resource.
- The job is “undubbed” and “dubbed” again as process c. Process
c consumes 4 units of resource.
- An Interval record (subtype 2) is written containing three z/OS UNIX process sections:
- One showing the 2 units of resource consumed by process a
- One showing the 8 units of resource consumed by process b
- One showing the 4 units of resource consumed by process c
- The job continues and process c consumes an additional 6 units
of resource.
- The job is “undubbed” and “dubbed” again as process d. Process
d consumes 4 units of resource.
- The step terminates:
- A step termination record (subtype 3) is written. This record
contains two z/OS UNIX process sections:
- One showing the 6 units of resource consumed by process c after
the interval
- One showing the 4 units of resource consumed by process d
- A step total record (subtype 4) is written. This record contains
five z/OS UNIX process sections:
- One showing the 2 units of resource consumed by process a
- One showing the 8 units of resource consumed by process b
- One showing the 4 units of resource consumed by process c before
the interval
- One showing the 6 units of resource consumed by process c after
the interval
- One showing the 4 units of resource consumed by process d
- The job ends and a job termination record (subtype 5) is written.
Because this job contained only one step, the z/OS UNIX process sections in the job termination record are identical to
those written in the step total record.
Figure 5. SMF record type 30: Example
4
In
Figure 5, the flow is as follows:
- The job starts and a job start (subtype 1) record is written.
- Process a begins and consumes 2 units of resource.
- The job is “undubbed” and “dubbed” again as process b. Process
b consumes 8 units of resource.
- The job is “undubbed.”
- An Interval record (subtype 2) is written containing two z/OS UNIX process sections:
- One showing the 2 units of resource consumed by process a
- One showing the 8 units of resource consumed by process b
- The job is “dubbed” again as process c. Process c consumes 8 units
of resource.
- The exec service is invoked, causing the job
to go through step termination and to start another substep.
- A step termination record (subtype 3) is written. This record
contains one z/OS UNIX process section showing the 8 units of
resource consumed by process c before the exec.
- A step total record (subtype 4) is written. This record contains
three z/OS UNIX process sections:
- One showing the 2 units of resource consumed by process a
- One showing the 8 units of resource consumed by process b
- One showing the 8 units of resource consumed by process c before
the exec
- The job continues processing the new substep and process c consumes
an additional 6 units of resource.
- An Interval record (subtype 2) is written containing one z/OS UNIX process section showing the 6 units of resource consumed
by process c since the exec.
- The job continues and process c consumes an additional 2 units
of resource.
- The job is “undubbed” and “dubbed” again as process d. Process
d consumes 4 units of resource.
- The step ends:
- A step termination record (subtype 3) is written. This record
contains two z/OS UNIX process sections:
- One showing the 2 units of resource consumed by process c after
the second interval
- One showing the 4 units of resource consumed by process d
- A step total record (subtype 4) is written. This record contains
three z/OS UNIX process sections:
- One showing the 6 units of resource consumed by process c after
the exec but before the second interval
- One showing the 2 units of resource consumed by process c after
the second interval
- One showing the 4 units of resource consumed by process d
- The job ends and a job termination record (subtype 5) is written.
This record contains all the z/OS UNIX process sections written
with the first step total record followed by all the z/OS UNIX process sections written with the second step total record. The
following six sections are written to the job termination record:
- One showing the 2 units of resource consumed by process a
- One showing the 8 units of resource consumed by process b
- One showing the 8 units of resource consumed by process c before
the exec
- One showing the 6 units of resource consumed by process c after
the exec but before the second interval
- One showing the 2 units of resource consumed by process c after
the second interval
- One showing the 4 units of resource consumed by process d