Those with RTM/ESA experience may just like me have liked the ULOG display:
it listed the user consuming most CPU (by default that was).  If the system
was slow, I displayed it to see who was since how long hogging the CPU.

With PERFKIT, such a report no longer exists. The good news is one can build
something similar.  As I found it so useful yesterday, I decided to share it
here.

Execute the following commands or include them in FCONX $PROFILE (PERFSVM
1CC by default):
FC DEFLOG ULOG DESC User extremes (CPU, I/O, ...)
FC DEFLOG ULOG H1 User extremes (CPU, I/O, ...)
FC DEFLOG ULOG H2 ......... <-------system-------> <---User with.........
FC DEFLOG ULOG COL 12 LEN 6  COPY SYSSUMLG LAST  COL 12  NAME %CPU_
FC DEFLOG ULOG COL 18 LEN 7  COPY SYSSUMLG LAST  COL 52  NAME IO/sec
FC DEFLOG ULOG COL 26 LEN 7  COPY SYSSUMLG LAST  COL 76  NAME Pag/sec
FC DEFLOG ULOG COL 35 LEN 15 COPY CPU LINE 21 COL 65 NAME Max-%CPU
FC DEFLOG ULOG COL 53 LEN 15 COPY CPU LINE 23 COL 65 NAME Max-IO/s
FC DEFLOG ULOG COL 71 LEN 15 COPY CPU LINE 24 COL 65 NAME Max-PG/s
And you we find a report like this in section "user defined data"
USER EXTREMES (CPU, I/O,
...)
 ......... <-------SYSTEM-------> <---USER
WITH..........
 End Time   %CPU_ IO/SEC PAG/SEC         MAX-%CPU          MAX-IO/S
MAX-PG/S
 15:21:00   16.2   42.7      .0   VSEPROD    10.8   SQLDSFP2    131
........  .....
 15:22:00   23.4  109.6      .2   VSEPROD    18.2   VSEPROD    94.7
........  .....
 15:23:00   38.7  145.4      .6   VSETEST    30.9   VSEPROD     239
........  .....
 15:24:00   31.0  471.3      .1   PPRCMON    19.0   PPRCMON     649
........  .....
 15:25:00   29.7   62.3      .1   VSEPROD    22.4   SQLDSFP2    155
........  .....
(this system doesn't page, that explains the .... at the end)

Note: the above statements are perfect for a z/VM 5.3, with 1 engine.  If
your system has more engines the "MAX" users are located farther down in de
CPU report and you will need to change the LINE 21,23, and 24 accordingly.

To test your setup, a simple exec like this one can help you:
/* This exec can be used to define a Perfkit user log in trial&error mode
Written by: Kris Buelens IBM Belgium;  KRIS at VMKBCT01 5 Jul 2006*/

address command
call DEFLOG 'ULOG OFF'
call DEFLOG 'ULOG DESC User extremes (CPU, I/O, ...)'
call DEFLOG 'ULOG H1 User extremes (CPU, I/O, ...)'
call DEFLOG 'ULOG H2 ......... <-------system-------> <---User with.....'
call DEFLOG 'ULOG COL 12 LEN 6  COPY SYSSUMLG LAST  COL 12  NAME %CPU_'
call DEFLOG 'ULOG COL 18 LEN 7  COPY SYSSUMLG LAST  COL 52  NAME IO/sec'
call DEFLOG 'ULOG COL 26 LEN 7  COPY SYSSUMLG LAST  COL 76  NAME Pag/sec'
call DEFLOG 'ULOG COL 35 LEN 15 COPY CPU LINE 21 COL 65 NAME Max-%CPU'
call DEFLOG 'ULOG COL 53 LEN 15 COPY CPU LINE 23 COL 65 NAME Max-IO/s'
call DEFLOG 'ULOG COL 71 LEN 15 COPY CPU LINE 24 COL 65 NAME Max-PG/s'
exit rc

DefLog:
'PIPE (sep 00) VMC PERFSVM FC DEFLOG' arg(1) '00'x 'CONS'
return


-- 
Kris Buelens,
IBM Belgium, VM customer support

Reply via email to