Showing posts with label 4HRA R4HA MSU. Show all posts
Showing posts with label 4HRA R4HA MSU. Show all posts

Wednesday, May 5, 2021

4HRA resets to 1 MSU after IPL


4HRA value resets to 1 MSU after IPL.  This can be seen in RMF Monitor III.

                         RMF V2R4   CPC Capacity                   Line 1 of 16 
 Command ===>                                                  Scroll ===> CSR  
                                                                                
 Samples: 100     System: C101  Date: 04/29/21  Time: 04.33.20  Range: 100   Sec
                                                                                
 Partition:   C101       3907 Model W02                         Boost: N        
 CPC Capacity:     280   Weight % of Max: 89.6   4h Avg:    1                   
 Image Capacity:   280   WLM Capping %:    0.0   4h Max:   44   Group:   N/A    
 MT Mode IIP:      N/A   C101 % IIP:       N/A   AbsMSUCap: N   Limit:   N/A    
                                                                                
 Partition  --- MSU ---  Cap     Proc    Logical Util %   - Physical Util % -   
              Def   Act  Def      Num    Effect   Total   LPAR  Effect  Total   
                                                                                
 *CP                              8.0                      0.5    14.0   14.5   
 C101           0    36  N N N    2.0      13.1    13.2    0.1    13.1   13.2   
 C102           0     1  N N N    2.0       0.3     0.3    0.0     0.3    0.3   
 C103           0     2  N N N    2.0       0.7     0.7    0.0     0.7    0.7   
 C104           0     0  N N N    2.0       0.0     0.0    0.0     0.0    0.0   
 PHYSICAL                                                  0.3            0.3   
                                                                                
 *IFL                             0.0                      0.0     0.0    0.0   
 PHYSICAL                                                  0.0            0.0   
                                                                                
 *IIP                             8.0                      0.0     0.7    0.8 

 SYSVIEW 16.0 C101 - CPCLPAR, CPC LPAR Capacity Information  2021/04/29 05:02:40
 Command ====>                                                 Scroll *===> PAGE
 GSVX005I Beginning of data rows ---------------- Lvl 4 Row 1-14/49 Col 1-79/118
 Partition       C101  Avg Weight     895  Group n/a       4h Avg         6   2%
 CPC Capacity     280  WLM Capping%   n/a  Limit n/a       4h Max        73  27%
 Image Capacity   280                                      4h Unused    266  98%
 -------------------------------------------------------------------------------
 Cmd  Intv Time    SrvUnits SrvUTime Unused 1hMSU Pct% ...25...50...75..100     
 ____    * TOTAL   28109385 03:58:10    265     7   3%                          
 ____    1 05:02    2535136 00:03:10    224    48  18%                          
 ____    2 04:59    6095872 00:05:00    199    73  27%                          
 ____    3 04:54    4664704 00:05:00    216    56  21%                          
 ____    4 04:49    3440832 00:05:00    231    41  15%                          
 ____    5 04:44    4042528 00:05:00    223    49  18%                          
 ____    6 04:39    3595040 00:05:00    229    43  16%                          
 ____    7 04:34    3735232 00:05:00    227    45  17%                          
 ____    8 04:29          1 00:04:59    280                                     
 ____    9 04:24          1 00:04:59    280                                     
 ____   10 04:19          1 00:04:59    280                                     
 ____   11 04:14          1 00:04:59    280                                     
 ____   12 04:09          1 00:04:59    280                                     
 ____   13 04:04          1 00:04:59    280                                     
 ____   14 03:59          1 00:04:59    280                                     
 ____   15 03:54          1 00:04:59    280                                     
 ____   16 03:49          1 00:04:59    280                                     
 ____   17 03:44          1 00:04:59    280                                     
 ____   18 03:39          1 00:04:59    280                                     
 ____   19 03:34          1 00:04:59    280                                     
 ____   20 03:29          1 00:04:59    280                                     
 ____   21 03:24          1 00:04:59    280                                     
 ____   22 03:19          1 00:04:59    280                                     
 ____   23 03:14          1 00:04:59    280                                     
 ____   24 03:09          1 00:04:59    280                                     
 ____   25 03:04          1 00:04:59    280                                     
 ____   26 02:59          1 00:04:59    280                                     
 ____   27 02:54          1 00:04:59    280                                     
 ____   28 02:49          1 00:04:59    280                                     
 ____   29 02:44          1 00:04:59    280                                     
 ____   30 02:39          1 00:04:59    280                                     
 ____   31 02:34          1 00:04:59    280                                     
 ____   32 02:29          1 00:04:59    280                                     
 ____   33 02:24          1 00:04:59    280                                     
 ____   34 02:19          1 00:04:59    280                                     
 ____   35 02:14          1 00:04:59    280                                     
 ____   36 02:09          1 00:04:59    280                                     
 ____   37 02:04          1 00:04:59    280                                     
 ____   38 01:59          1 00:04:59    280                                     
 ____   39 01:54          1 00:04:59    280                                     
 ____   40 01:49          1 00:04:59    280                                     
 ____   41 01:44          1 00:04:59    280                                     
 ____   42 01:39          1 00:04:59    280                                     
 ____   43 01:34          1 00:04:59    280                                     
 ____   44 01:29          1 00:04:59    280                                     
 ____   45 01:24          1 00:04:59    280                                     
 ____   46 01:19          1 00:04:59    280                                     
 ____   47 01:14          1 00:04:59    280                                     
 ____   48 01:09          1 00:04:59    280                                     
 ********************************* End of Data *********************************


Friday, August 21, 2020

How Tivoli Decision Support for Z/OS reports 4HRA

 Tivoli Decision Support for Z/OS leverages the SMF data to provide a variety of reports for various components of System Z. TDS maintains a database for different SMF record types which can be queried using QMF to provide reports on the fly. One such report is the monthly 4 hour rolling average report for each LPAR in the CEC. TDS provides ‘MVSPM_SYSTEM_H’ and ‘MVSPM_LPAR_H’ tables which contains the ‘MSU_4HRA’ (SMF70LAC) for each LPAR in the CEC. The below section establishes a reporting technique which will align with the SCRT report.

USING MVSPM_LPAR_H 

‘MVSPM_LPAR_H’ provides hourly statistics on logical partitions and processor activity in a PR/SM environment. It contains data from SMF type 70. The ‘MSU_4HRA’ column contains the 4-hour rolling average for each logical partition. This value ‘MSU_4HRA’ in table ‘MVSPM_LPAR_H’ is the last effective 4 hour rolling average for the hourly interval (. MSU_4HRA = LAST (V_MSU_4HRA). For example, if your recording interval is 15 minutes then the ‘MSU_4HRA’ value reported for 20th hour in TDS will be the value which occurred at 20:45(the last effective 4HRA value for that hour). This is the reason your ‘MSU_4HRA’ value would not match with your SCRT value.

LPAR NameSMF interval15 min interval MSU 4HRA1 Hour interval data in MVSPM_LPAR_H at 01:00:00
A01:00:0035
A01:15:0035
A01:30:0036
A01:45:0035TDS Value : 35(Last Effective 4HRA)
LPAR NameSMF interval15 min interval MSU 4HRA1 Hour interval data in MVSPM_LPAR_H at 03:00:00
A03:00:0033
A03:15:0033
A03:30:0034
A03:45:0034TDS Value : 34(Last Effective 4HRA)
LPAR NameSMF interval15 min interval MSU 4HRA1 Hour interval data in MVSPM_LPAR_H at 20:00:00
A20:00:0053
A20:15:0053
A20:30:0052
A20:45:0050TDS Value : 50(Last Effective 4HRA)

USING MVSPM_SYSTEM_H

MVSPM_SYSTEM_H also contains the ‘MSU_4HRA’ (SMF70LAC) for each LPAR However, the value of MSU_4HRA reported in this table is the average (MSU_4RHA = Avg (SMF70LAC, INPUT_RECORDS) of SMF70LAC SMF interval records. The MSU_4HRA values reported in this table always matches your SCRT report because SCRT uses the mean of SMF interval records to aggregate an hourly record. For example, if your SMF recording interval is 15 minutes then the MSU_4HRA value reported for 20th hour will be the average of SMF interval records (In this case AVG (20:00,20:15,20:30,20:45).

LPAR NameSMF interval15 min interval MSU 4HRA1 Hour interval data in MVSPM_LPAR_H at 01:00:00
A01:00:0035
A01:15:0035
A01:30:0036
A01:45:0035TDS Value : 35.25(Average 4HRA)
LPAR NameSMF interval15 min interval MSU 4HRA1 Hour interval data in MVSPM_LPAR_H at 03:00:00
A03:00:0033
A03:15:0033
A03:30:0034
A03:45:0034TDS Value : 33.5(Average4HRA)
LPAR NameSMF interval15 min interval MSU 4HRA1 Hour interval data in MVSPM_LPAR_H at 20:00:00
A20:00:0053
A20:15:0053
A20:30:0052
A20:45:0050TDS Value : 52(Average 4HRA)

Tivoli Decision Support for Z/OS provides the functionality to track the last effective 4 Hour Rolling Average and Mean 4 Hour Rolling Average. It is very important to understand the context of each of these values while reporting. The ‘MVSPM_SYSTEM_H’ should be used as a baseline while comparing your results with SCRT. However, to keep track of the last effective 4 HRA in an hour ‘MVSPM_LPAR_H’ becomes an ideal choice.

How SCRT Reports the 4 Hour Rolling Average?

The Detail LPAR Data (N5) section of the SCRT report shows the interval (date and hour) during the month for each LPAR on a CPC when the LPAR reached a maximum rolling 4-hour average utilization value (in MSUs). It also shows the interval in which the sum of all the LPARs reached a maximum rolling 4-hour average value. The SMF Recording interval varies from site to site based on the installation needs. The SCRT algorithm calculates 4HRA values at the hourly interval by taking an hourly average of 4HRA values at each of the LPAR SMF intervals. In the below example the SMF recording interval for LPAR A is 15 minutes and the peak reported in SCRT occurred at 20:00, so SCRT here has taken the mean of all the 4 intervals of 20th hour. 

LPAR NameSMF interval15 min interval SMF70LAC valuesSCRT value reported in N5 section at 20th hour
A20:00:0053
A20:15:0053
A20:30:0052
A20:45:0050Calculated value: AVG(20:00,20:15,20:30,20:45) 52 MSUs


Saturday, August 10, 2019

How rolling four hour average is calculated

WLM is responsible for sampling the MSU Utilization for each LPAR every 10 seconds. Every 5 minutes, WLM documents the highest observed MSU utilization sample from the 10 second bucket. This process keeps a track of the past 48 updates sampled for each LPAR. When the 49th observation is recorded, the 1st observation is discarded, and so on. These 48 observations of 5 minutes each represent a total of 5 minutes * 48 = 240 minutes or the past 4 hours rolling average (R4HA). WLM stores the average of these 48 values in the WLM control block RCT.RCTLACS. Every time RMF creates a Type 70 record, the current 4 hour rolling average from RCT.RCTLACS is populated in the SMF70LAC field representing the 4hour rolling average at the time of cut. This way we have the “4 Hour Rolling Average” being recorded as SMF70LAC for every Type70 record. 

The below example shows how 4HRA is calculated. In this example the 4HRA at 04:00 is 271 MSUs which is average of all the 48 intervals of 5 minutes each from 00:00-4:00

OBSTIMEMSU/Hr
100:00220
200:05259
300:10278
400:15262
500:20312
600:25225
700:30234
800:35289
900:40285
1000:45262
1100:50283
1200:55310
1301:00302
1401:05289
1501:10263
1601:15213
1701:20241
1801:25173
1901:30169
2001:35233
2101:40279
2201:45303
2301:50328
2401:55313
2502:00319
2602:05319
2702:10280
2802:15280
2902:20307
3002:25293
3102:30289
3202:35301
3302:40249
3402:45304
3502:50273
3602:55277
3703:00301
3803:05249
3903:10211
4003:15234
4103:20241
4203:25278
4303:30304
4403:35273
4503:40277
4603:45307
4703:50229
4803:55304
4904:00271