
The SMFBPT query generates several chart sets. The chart sets show the daily top nn (default 10) batch programs using CPU, I/O, and central storage (memory) resources on your z/OS systems. For each resource type, one chart set shows the top ten batch programs using the resource over the entire Central Processing Complex (CPC), and another that shows the top ten batch programs for each z/OS system. The query reads detail data from the BATPGM (Batch User Program Activity) file, and summarizes the data by program name executed. The charted data reflects interval and step record information from all batch job steps that executed the top ten programs over all batch jobs.
For CPU, the CPU time used by each of the top ten programs is displayed using a vertical bar. The bar is segmented by CPU time type (for example, TCB, SRB, I/O Interrupt, zIIP, zAAP, and so on). Two horizontal lines show the program count (number of unique program executions) and interval count (number of interval records) encountered for the program. For short running steps, the interval count and program count values have similar values. For long running programs, the interval count exceeds the program count.
Note: The program count data element (PGMCOUNT) is only set to one (1) for the last interval record for a long running program. For programs that have not yet ended, PGMCOUNT is zero.
For I/O, I/O Service Units are used to determine the top ten programs. Three different chart views are available to display I/O related resource utilization. The first view shows I/O service units for the top ten using vertical bars. The second view displays device connect time for the top ten by device class (for example, DASD, TAPE, Unit Record, and so on). The device connect time is displayed using a vertical bar, with the bar segmented by the time connected to each of the device classes. The final view shows EXCPs by device class, again using a segmented vertical bar. As with the CPU chart, the program and interval record count are shown using a horizontal line.
For central storage, the top ten programs with the largest average working set size are displayed. Average working set size is the average number page frames in central storage used by the program. The page frame count is shown using a vertical bar and the program and interval record count are shown using a horizontal line.
Note: The average working set size represents the average for all step and interval records encountered for instance of the top ten batch programs.
The example shows the CPC level chart generated for batch programs executing on an IBM z/196 2817-615 CPC. The largest user of CPU time is the program ‘IKJEFT01’, the program name for TSO, meaning that many batch job program steps invoke TSO on this CPC. The chart shows that for the day depicted, about 86,000 batch job program steps executed TSO in batch and, in total, consumed almost 8 hours of CPU time. Most of this time was Step TCB Time. Another top ten program, ‘JMMLDM60’, only executed about 100 times, but consumed about 1.5 hours of TCB time and 3.2 hours of normalized zIIP CPU time. The normalization of zIIP CPU time is important for this CPC model because the CP engines run slower than the specialty (zIIP/zAAP) engines. When zIIP or zAAP CPU time is normalized, the value is expressed as the CP engine equivalent by multiplying by a normalization factor. For the 2817-615 CPC model, the normalization factor is 1.52734.
It is important to understand which applications are the biggest consumers of limited and expensive IT resources. This query shows the largest batch program consumers running on z/OS systems—at both the CPC and individual z/OS system level. Knowing not only the amount of resource consumed, but also the frequency of program execution, can help you to focus tuning efforts where potential payback is greatest.
SMF Daily Top 10 Batch Pgms CPU CPCID

PGMTCBTM – Step TCB CPU Time
PGMSRBTM – Step SRB CPU Time
PGMSPNTM – Normalized zIIP CPU Time
PGMZPNTM – Normalized zAAP CPU Time
PGMTCTM – Step Initiator TCB Time
PGMISRTM – Step Initiator SRB Time
PGMHIPTM – Step Hiperspace CPU Time
PGMIOITM – Step I/O Interrupt CPU Time
PGMRCTTM – Step Region Control Task CPU Time
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
SMF Daily Top 10 Batch Pgms CPU SYSID

PGMTCBTM – Step TCB CPU Time
PGMSRBTM – Step SRB CPU Time
PGMSPNTM – Normalized zIIP CPU Time
PGMZPNTM – Normalized zAAP CPU Time
PGMTCTM – Step Initiator TCB Time
PGMISRTM – Step Initiator SRB Time
PGMHIPTM – Step Hiperspace CPU Time
PGMIOITM – Step I/O Interrupt CPU Time
PGMRCTTM – Step Region Control Task CPU Time
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
SMF Daily Top 10 Batch Pgms IO CPCID
VIEW 1 – SMF Daily Top 10 Batch Programs I/O – Service Units CPCID

PGMIOSU – I/O Service Units
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
VIEW 2 – SMF Daily Top 10 Batch Programs I/O – Connect Time CPCID

PGMCCOMM – Communication Device Connect Time
PGMCDASD – DASD Device Connect Time
PGMCGRAF – Graphics Device Connect Time
PGMCTAPE – Tape Device Connect Time
PGMCUREC – Unit Record Device Connect Time
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
VIEW 3 – SMF Daily Top 10 Batch Programs I/O – EXCPs CPCID

PGMCCOMM – Communication Device EXCPS
PGMCDASD – DASD Device EXCPS
PGMCGRAF – Graphics Device EXCPS
PGMCTAPE – Tape Device EXCPS
PGMCUREC – Unit Record Device EXCPS
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
SMF Daily Top 10 Batch Pgms IO SYSID
VIEW 1 – SMF Daily Top 10 Batch Programs I/O – Service Units SYSID

PGMIOSU – I/O Service Units
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
VIEW 2 – SMF Daily Top 10 Batch Programs I/O – Connect Time SYSID

PGMCCOMM – Communication Device Connect Time
PGMCDASD – DASD Device Connect Time
PGMCGRAF – Graphics Device Connect Time
PGMCTAPE – Tape Device Connect Time
PGMCUREC – Unit Record Device Connect Time
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
VIEW 3 – SMF Daily Top 10 Batch Programs I/O – EXCPs SYSID

PGMCCOMM – Communication Device EXCPS
PGMCDASD – DASD Device EXCPS
PGMCGRAF – Graphics Device EXCPS
PGMCTAPE – Tape Device EXCPS
PGMCUREC – Unit Record Device EXCPS
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
SMF Daily Top 10 Batch Pgms Memory CPCID

PGMAVWSS – Avg Working Set Size
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
SMF Daily Top 10 Batch Pgms Memory SYSID

PGMAVWSS – Avg Working Set Size
PGMCOUNT – Program Steps Encountered
INTVLCNT – Interval Record Count
PROGRAM – Program Name
DATEPART(ENDTS)
TRIM(LPCMOD)||'-'||TRIM(CPCMODID)||'-Serial: '||SUBSTR(CPCSEQNB,12,5);
SUM(PGMTCBTM,PGMSRBTM,PGMHIPTM,PGMRCTTM,PGMIOITM, PGMSPNTM,PGMZPNTM,PGMISRTM,PGMITCTM) ;
INTVLCNT=1 ;
(uses existing data element PGMCOACT=1 in the initial input user code, then after summarization sets INTVLCNT=PGMCOACT to deal with Q&R default of treating Q&R derived elements as retained values in summarization).
The following modifications can be made to the SMFBPT query:
Note: This query charts two nonessential data elements: PGMITCTM and PGMISRTM (Initiator TCB and SRB time, respectively). These data elements are defined as ‘nonessential’ in the CA MICS database and may not be active in your step level files based on how CA MICS is generated. If not active, the query fails to execute. To run the query, you can remove these two data elements from the ELEMENT SELECTION task in the two CPU time Data Extract steps. You can also ask your CA MICS administrator to activate these two elements in the step level files by changing the element definition in sharedprefix.MICS.GENLIB(SMFGENIN) from NAMX to NAME and then running the sharedprefix.MICS.CNTL(SMFCGEN) component generation job. After these elements are activated and populated in your CA MICS database, refresh the Q&R Meta Database.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |