SYSVIEW - How to measure CPU performance using Explore Report Writer - for a specific task
search cancel

SYSVIEW - How to measure CPU performance using Explore Report Writer - for a specific task

book

Article ID: 271750

calendar_today

Updated On:

Products

SYSVIEW Performance Management

Issue/Introduction

Most of the times when there is batch delays, we are informed that DFHSM is the cause. But the performance team cannot pin point that it is actually DFHSM. It's because DFHSM is under a certain service class, and that service class consumes higher percentage of cpu during batch time, so DFHSM is the suspect. I need help to prove that DFHSM is not the culprit but i don't know how to take hourly measurements to prove otherwise. I am also implementing zEDC on DFHSM this weekend so CPU usage is expected to increase but I doubt it will cause batch delays. I need to show some kind of performance before and after zEDC goes in.

Environment

SYSVIEW R16.0

Resolution

A number options and methods were presented during the case. 

Job to Dump and Report
The JCL and Report Writer parameters I used are as follows.

//*===================================================================* 
//* Cleanup                                                             
//*-------------------------------------------------------------------* 
//S1    EXEC PGM=IEFBR14                                                
//DD1   DD   DSN=SYSVIEW.SMF30.DUMP,DISP=(MOD,DELETE,DELETE),           
//      SPACE=(TRK,(1,1)),UNIT=SYSDA                                    
//*                                                                     
//*-------------------------------------------------------------------* 
//* Collect SMF records from SMF LOGSTREAM                                                 
//*-------------------------------------------------------------------* 
//SMFDUMP  EXEC PGM=IFASMFDL                                            
//STEPLIB  DD DISP=SHR,DSN=SYS1.LINKLIB                                 
//*                                                                     
//OUTDD1   DD DSN=SYSVIEW.SMF30.DUMP,                                   
//         DISP=(,CATLG,DELETE),SPACE=(CYL,(400,500),RLSE),             
//         DCB=(RECFM=VBS,LRECL=32756,BLKSIZE=32760),                   
//         UNIT=SYSDA                                                   
//SYSPRINT DD SYSOUT=*                                                  
//SYSOUT   DD SYSOUT=*                                                  
//SYSIN    DD *                                                         
LSNAME(IFASMF.$SSID.STREAM,OPTIONS(DUMP))                            
  OUTDD(OUTDD1,TYPE(30))                                                
  DATE(2023222,2023222)                                                 
/*                                                                      
//*-------------------------------------------------------------------* 
//* Run report                                                          
//*-------------------------------------------------------------------* 
//REPORT1  EXEC PGM=XPFRMAIN,REGION=4M,PARM='COPYRIGHT=NO'              
//STEPLIB  DD DISP=SHR,DSN=SYSVIEW.XXX.XXX.LOADLIB                    
//ERPTPRM  DD DISP=SHR,DSN=SYSVIEW.XXX.SYSVW170.XXX.CNM4RSAM          
//SYSPRINT DD SYSOUT=*                                                  
//SYSUDUMP DD SYSOUT=*                                  
//SYSOUT   DD SYSOUT=*                                  
//TAPSMF   DD DISP=SHR,DSN=SYSVIEW.SMF30.DUMP           
//SYSIN    DD *                                         
OPTION(ZEROFLD=ZERO,PRINT=DATETIME,MAXTO=NO,SUMMARY=NO) 
                                                        
TITLE1 DFHSM CPU usage over 24 hours                    
                                                        
SELECT JOBID(DFHSM)                                     
                                                        
TAB DATETIME JOBID,                                     
  MVS SYSTEM STEP %CPUINT   AND,                        
  MVS SYSTEM STEP ACTIVE    AND,                        
  MVS SYSTEM STEP CPU       AND,                        
  MVS SYSTEM STEP %CPUACT                               
                                                        
EACH 1 HOUR                                             
                                                        
END                                                     
RUN                                                     
/*        

Additional Information

Explore Report Writer can report directly from SMF records and does NOT require changes to SysView in this instance.

DUMP SMFDATA from SYS1.MANx datasets.

//SMFDUMP  EXEC PGM=IFASMFDP                 
//STEPLIB  DD DISP=SHR,DSN=SYS1.LINKLIB      
//*                                          
//INDD1    DD DISP=SHR,DSN=SYS1.MAN?         
//*                                          
//OUTDD1   DD DSN=SYSVIEW.SMFDMP.DS,DISP=(,CATLG,DELETE),
//            DCB=(RECFM=VBS,LRECL=32756,BLKSIZE=32760),  
//            SPACE=(CYL,(100,200)),UNIT=SYSDA  
//SYSPRINT DD SYSOUT=*                       
//SYSOUT   DD SYSOUT=*                       
//SYSIN    DD *                              
  INDD(INDD1,OPTIONS(DUMP))                  
  OUTDD(OUTDD1,TYPE(30))                
  DATE(yyyyddd,yyyyddd)                      
  START(hhmm)                                
  END(hhmm)                                  
/*                                    

Dumping SMF Log stream Data

//SMFDUMP  EXEC PGM=IFASMFDL                                     
//STEPLIB  DD DISP=SHR,DSN=SYS1.LINKLIB                         
//*                                                             
//OUTDD1   DD DSN=ZS00222.SMF30.DUMP,                           
//         DISP=(,CATLG,DELETE),SPACE=(CYL,(400,500),RLSE),     
//         DCB=(RECFM=VBS,LRECL=32756,BLKSIZE=32760),           
//         UNIT=SYSDA                                            
//SYSPRINT DD SYSOUT=*                                          
//SYSOUT   DD SYSOUT=*                                          
//SYSIN    DD *                                                 
LSNAME(XXX.XXX.SMF.DAILY.G7411V00,OPTIONS(DUMP))            
  OUTDD(OUTDD1,TYPE(30))                                        
  DATE(2023222,2023222)                                         
/*                 

Also refer KD272278 for details on how to use Capture and SysView in REXX to obtain CPU usage data.