Wednesday, May 5, 2021
4HRA resets to 1 MSU after IPL
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 Name | SMF interval | 15 min interval MSU 4HRA | 1 Hour interval data in MVSPM_LPAR_H at 01:00:00 |
| A | 01:00:00 | 35 | |
| A | 01:15:00 | 35 | |
| A | 01:30:00 | 36 | |
| A | 01:45:00 | 35 | TDS Value : 35(Last Effective 4HRA) |
| LPAR Name | SMF interval | 15 min interval MSU 4HRA | 1 Hour interval data in MVSPM_LPAR_H at 03:00:00 |
| A | 03:00:00 | 33 | |
| A | 03:15:00 | 33 | |
| A | 03:30:00 | 34 | |
| A | 03:45:00 | 34 | TDS Value : 34(Last Effective 4HRA) |
| LPAR Name | SMF interval | 15 min interval MSU 4HRA | 1 Hour interval data in MVSPM_LPAR_H at 20:00:00 |
| A | 20:00:00 | 53 | |
| A | 20:15:00 | 53 | |
| A | 20:30:00 | 52 | |
| A | 20:45:00 | 50 | TDS Value : 50(Last Effective 4HRA) |
| LPAR Name | SMF interval | 15 min interval MSU 4HRA | 1 Hour interval data in MVSPM_LPAR_H at 01:00:00 |
| A | 01:00:00 | 35 | |
| A | 01:15:00 | 35 | |
| A | 01:30:00 | 36 | |
| A | 01:45:00 | 35 | TDS Value : 35.25(Average 4HRA) |
| LPAR Name | SMF interval | 15 min interval MSU 4HRA | 1 Hour interval data in MVSPM_LPAR_H at 03:00:00 |
| A | 03:00:00 | 33 | |
| A | 03:15:00 | 33 | |
| A | 03:30:00 | 34 | |
| A | 03:45:00 | 34 | TDS Value : 33.5(Average4HRA) |
| LPAR Name | SMF interval | 15 min interval MSU 4HRA | 1 Hour interval data in MVSPM_LPAR_H at 20:00:00 |
| A | 20:00:00 | 53 | |
| A | 20:15:00 | 53 | |
| A | 20:30:00 | 52 | |
| A | 20:45:00 | 50 | TDS Value : 52(Average 4HRA) |
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 Name | SMF interval | 15 min interval SMF70LAC values | SCRT value reported in N5 section at 20th hour |
| A | 20:00:00 | 53 | |
| A | 20:15:00 | 53 | |
| A | 20:30:00 | 52 | |
| A | 20:45:00 | 50 | Calculated 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
OBS TIME MSU/Hr 1 00:00 220 2 00:05 259 3 00:10 278 4 00:15 262 5 00:20 312 6 00:25 225 7 00:30 234 8 00:35 289 9 00:40 285 10 00:45 262 11 00:50 283 12 00:55 310 13 01:00 302 14 01:05 289 15 01:10 263 16 01:15 213 17 01:20 241 18 01:25 173 19 01:30 169 20 01:35 233 21 01:40 279 22 01:45 303 23 01:50 328 24 01:55 313 25 02:00 319 26 02:05 319 27 02:10 280 28 02:15 280 29 02:20 307 30 02:25 293 31 02:30 289 32 02:35 301 33 02:40 249 34 02:45 304 35 02:50 273 36 02:55 277 37 03:00 301 38 03:05 249 39 03:10 211 40 03:15 234 41 03:20 241 42 03:25 278 43 03:30 304 44 03:35 273 45 03:40 277 46 03:45 307 47 03:50 229 48 03:55 304 49 04:00 271