Previous Topic: PLOT2 Command-Plot Response TimeNext Topic: VPLOT Command-Create a Simple Report


PLOT2 RATE Command—Convert Counts to Rates

Use the RATE option to plot a rate (number per second) rather than a count.

Example: RATE Option on the PLOT2 Command

In the following example, the PLOT command plots the use of PSPI against the total system transaction use. The PLOT2 command plots the transaction rate for PSPI against the total system transaction rate:

PLOT  TRAN USE      TRANID(PSPI) CHAR1(T) CHAR2(+)
PLOT2 TRAN USE RATE TRANID(PSPI) CHAR1(R) CHAR2(-)
  FROM 12/07/08 02:00:00
  TO   12/07/08 08:00:00
  EACH HOUR
END
RUN

A report like the following is generated:

SHIFT NONE EACH HOUR TRANSACTION COUNT PERIOD NONE 0 22.80 45.60 68.40 91.20 114.0 136.8 159.6 182.4 205.2 228.0 T + 0 0.01 0.01 0.02 0.02 0.03 0.04 0.04 0.05 0.05 0.06 R - +.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+ 12/07/08 02.00.00 .TTTTTTTTTTTTT++++++++++++++++++++++++++++++++++++++++++++++++++++ . . . . 29 149 .RRRRRRRRRRRRRRRRR-------------------------------------------------- . . . . 0.01 0.04 03.00.00 .TTTT++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ . . . . 9 .------------------------------------------------------------------- . . . . 0.00 0.04 04.00.00 .TTTTTTT++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ . . 17 194 .----------------------------------------------------------------------------------- . . 0.00 0.05 05.00.00 .TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 72 228 .RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR------------------------------------------------------------------- 0.02 0.06 06.00.00 .TTTT++++++++++++++++++++++++++++++++++++ . . . . . . 8 92 .-------------------------------------------------- . . . . . 0.00 0.03 07.00.00 .TTTTTTTTTTTT++++++++++++++++++++++++++++++++++++++++ . . . . . 28 119 .RRRRRRRRRRRRRRRRR--------------------------------- . . . . . 0.01 0.03 SUMMARY: . . . . . . . . . . . SUMMARY: RANGE: .TTTTTTTTTT+++++++++++++++++++++++++++++++++++++++++++++++++++ . . . . 23 140 .-------------------------------------------------- . . . . . 0.00 0.03 +.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+ 0 0.01 0.01 0.02 0.02 0.03 0.04 0.04 0.05 0.05 0.06 R - 0 22.80 45.60 68.40 91.20 114.0 136.8 159.6 182.4 205.2 228.0 T + SYMBOLS: "T" = TRANSACTION COUNT "+" = GLOBAL TRANSACTION COUNT "R" = TRANSACTION COUNT "-" = GLOBAL TRANSACTION COUNT

In the 3600 seconds between 2 and 3 a.m., PSPI was executed 29 times. This PSPI equals a rate of 0.01. Globally, 149 transactions were executed in that period, for a rate of 0.04.

Note: A usage rate of zero does not necessarily imply zero usage of the resource. For example, between 3:00 and 4:00 a.m. transaction PSPI was used nine times in the 3600 seconds. However, this yields a usage rate so low (9 / 3600 = 0.0025) that it appears as zero in the plot of usage rate.