Beruflich Dokumente
Kultur Dokumente
23/06/2003
Benchmark Methodology
Workload Management
With WLM the service level administrator defines performance goals and assign a business importance to each goal. Goals are defined for work in business terms, and the system decides how much resource, such as CPU and storage, should be given to the work to meet its goal. Requires a shift of focus "from tuning at system resources level" "to defining performance expectations"
23/06/2003 / TP WLM & WAS 2
Workload Management
Performance Goals
Indicate the service level you would like to have for a given unit of work. There are three kinds of Goals:
Velocity Response Time Discretionary
23/06/2003 / TP
Workload Management
Service Class
A group of work with similar performance goals, business importance and resource requirements for management and reporting purposes
Workload
Aggregated set of Service Classes for reporting purposes
Reporting Class
Aggregate set of work for reporting purposes
23/06/2003 / TP
Workload Management
Resource Group
Processor capacity boundary across the sysplex. Assigns minimum and maximum amount of CPU service units / sec to work by assigning a Service Class to a Resource Group
23/06/2003 / TP
Workload Management
Resource Group
Processor capacity boundary across the sysplex. Assigns minimum and maximum amount of CPU service units / sec to work by assigning a Service Class to a Resource Group
23/06/2003 / TP
CB BATCH W O RKLO A D
CB
Resource Group
BATCH
CB JES
Subsystem
Subsystem
Classification Rules & Groups
Report Class
page 8
WAS
AS
23/06/2003 / TP
23/06/2003 / TP
Application Environment are exploited by Work Managers using Queing and Routing Manager WLM services
23/06/2003 / TP
10
Enclave Services
An Enclave is an z/OS construct serving as:
unit of priority accounting for arriving transactions
Can spread across multiple dispatchable units and multiple address spaces Any number of Tasks and SRBs (preemptable) can be grouped together in an enclave Business objectives (goals) are derived from enclave associated service class, not from the server(s) service class where the enclave dispatchable units are executed Three Enclave types: Independent, Dependent, Foreign
23/06/2003 / TP
11
Independent
SRBs / TCBs yes home a.s. iwmecrea work mngr. cls. rules smf30 owner sm72 enclave s.c.
Dependent
SRBs / TCBs no home a.s. iwmecrea owner smf30 owner smf72 owner s.c.
Foreign
SRBs / TCBs no original enclave owner smf30 origin. owner smf 97 exec. sys smf72 enclave s.c. excuting system(s) n/a n/a smf30 & smf72 server(s) a.s.
SRB service
(non-preemtible time)
n/a smf30 owner smf72 owner smf30 & smf72 server(s) a.s.
23/06/2003 / TP
12
WLM dynamically starts and maintains server address spaces as required to meet the work manager's goals. Queuing Manager services:
use WLM Application Environment require a work manager to use Enclaves have a system scope
23/06/2003 / TP WLM & WAS 13
WLM AS
Application Application Application Environment Environment Environment work queues IWMCLSFY IWMECREA IWMQINS
w/ Enclave Token
start
IWMCONN
= YES
Server Manager AS
Initialize and Connect to server_manager application environment Select Work from queue
Process Request Complete Delete Enclave
IWMSSEL
IWMSTBGN IWMSTEND IWMEDELE
SC A
SC B
IWMSSEL
IWMDISC
Transaction Ends
RC=0C
Told to terminate
clean up, disconnect from application environment terminate
IWMDISC
23/06/2003 / TP
14
Application Environments
Server A.S. management function is implemented through the Application Environment concept A.E. is a grouping of transactions belonging to a Work Manager that use the same application libraries A.E.s can have System or Sysplex scope
Work Managers using WLM Queuing services have System scope (ex: WebSphere, DB2 Stored Procedure) Work Managers using WLM Routing services have Sysplex scope (ex: SOM)
A.E.s are defined using WLM policy Incoming requests should be assigned to an A.E. by the Work Manager and queued to WLM WLM manages Server A.S. (start/stop)
23/06/2003 / TP
15
23/06/2003 / TP
17
6 Service C lasses:
S C =CB 05 S C=CB 05
SR 3 SR 3
2
SR2 SR2
CR
5 IIO P IIO P
SR 1 SR 1
S C =CB 03 S C=CB 03
H TTP H TTP
S C =CB 01 S C=CB 01
23/06/2003 / TP
19
23/06/2003 / TP
20
Importance= 1, Velocity = 70
Examples: ibm.com:80/Webap1/myservlet => TCLASS1 => CBFAST (RWSPRD1) ibm.com:443/Webap1/xservlet => TCLASS2 => CBMED (RWSPRD2)
23/06/2003 / TP WLM & WAS 23
Monitor I
REPORT CLASS=RWASPAS TRANSACTIONS AVG 1.00 MPL 1.00 ENDED 0 END/S 0.00 #SWAPS 0 EXCTD 0 AVG ENC 0.00 REM ENC 0.00 MS ENC 0.00 TRANS.-TIME SS.TTT ACTUAL 0 EXECUTION 0 QUEUED 0 R/S AFFINITY 0 INELIGIBLE 0 CONVERSION 0 STD DEV 0 DESCRIPTION =WAS Controller Region --SERVICE RATES-ABSRPTN 117 TRX SERV 117 TCB 4.7 SRB 0.4 RCT 0.0 IIT 0.0 HST 0.0 APPL % 1.7 PAGE-IN RATES SINGLE 0.0 BLOCK 0.0 SHARED 0.0 HSP 0.0 HSP MISS 0.0 EXP SNGL 0.0 EXP BLK 0.0 EXP SHR 0.0 ----STORAGE---AVG 4588.00 TOTAL 4587.99 CENTRAL 4535.99 EXPAND 52.00 SHARED 0.00
REPORT CLASS=RWASPASS TRANSACTIONS AVG 2.00 MPL 2.00 ENDED 0 END/S 0.00 #SWAPS 0 EXCTD 0 AVG ENC 0.00 REM ENC 0.00 MS ENC 0.00 TRANS.-TIME SS.TTT ACTUAL 0 EXECUTION 0 QUEUED 0 R/S AFFINITY 0 INELIGIBLE 0 CONVERSION 0 STD DEV 0
DESCRIPTION =WAS Server Region --SERVICE RATES-ABSRPTN 333 TRX SERV 333 TCB 2.6 SRB 0.0 RCT 0.0 IIT 0.0 HST 0.0 APPL % 0.9 PAGE-IN RATES SINGLE 0.0 BLOCK 0.0 SHARED 0.0 HSP 0.0 HSP MISS 0.0 EXP SNGL 0.0 EXP BLK 0.0 EXP SHR 0.0 ----STORAGE---AVG 85878.1 TOTAL 171756 CENTRAL 171756 EXPAND 0.00 SHARED 4365.99
REPORT CLASS=RWASWEB TRANSACTIONS AVG 0.21 MPL 0.21 ENDED 4974 END/S 16.58 #SWAPS 0 EXCTD 0 AVG ENC 0.21 REM ENC 0.00 MS ENC 0.00 TRANS.-TIME SS.TTT ACTUAL 12 EXECUTION 12 QUEUED 0 R/S AFFINITY 0 INELIGIBLE 0 CONVERSION 0 STD DEV 12
DESCRIPTION =Report WAS TCWASPAS Enclave --SERVICE RATES-ABSRPTN 1292 TRX SERV 1292 TCB 11.9 SRB 0.0 RCT 0.0 IIT 0.0 HST 0.0 APPL % 4.0 PAGE-IN RATES SINGLE 0.0 BLOCK 0.0 SHARED 0.0 HSP 0.0 HSP MISS 0.0 EXP SNGL 0.0 EXP BLK 0.0 EXP SHR 0.0 ----STORAGE---AVG 0.00 TOTAL 0.00 CENTRAL 0.00 EXPAND 0.00 SHARED 0.00
23/06/2003 / TP
24
Littles Law
N
: customer arrival rate N: average number of customers in system T: average delay per customer in system Littles Theorem: System in steady-state
N = T
23/06/2003 / TP WLM & WAS
Lq = W
25
Proof
Arrival Threads rate tx/s number 100 100 200 300 400 400 500 600 700 1 3 3 3 3 6 10 10 10 Ended/sec Time/tx TCB time Waiting MPL Appl% millisec /tx ms Time ms 7 2,8 4,2 28 99,36 0,7 6,8 2,7 4,1 99,43 0,68 27,6 7,4 2,8 4,6 199,33 1,48 55,3 9,1 2,8 6,3 299,38 2,73 85,9 17,2 2,7 14,5 396,29 6,82 109,3 8,7 2,8 5,9 399,66 3,48 112,1 11,4 2,8 8,6 499,36 5,7 142,2 30 2,9 27,1 598,45 17,99 176,3 40,6 2,8 37,8 696,79 28,31 200,9
Little's Law
resp.time ms 50 MPL 30 25 20 15 10 5 0
600 30 17,99
23/06/2003 / TP
26
Solution
External interfaces for monitoring environments have been changed to allow WLM to establish report-only performance blocks (PBs) External interfaces have been changed to enable association of reportonly PBs with enclaves and address spaces Extended sampling for report-only performance blocks Collect data for other goal types than just response time goals Include states for multi-period service classes
Exploiter
Websphere Application Server for z/OS (in a new WAS release) WLM support in R4, PTFs rolled back to R2 & R3
23/06/2003 / TP WLM & WAS 28
23/06/2003 / TP
29
Externals
IWMMCREA - Create Delay Monitoring Environment - changed IWMMDELE - Delete Delay Monitoring Environment IWMMINIT - Initialize Delay Monitoring Environment - changed IWMMRELA - Relate Delay Monitoring Environment - changed IWMMCHST - Change State of Work unit (inline only) - changed IWMMXFER - Monitoring Environment Transfer (inline only) IWMMSWCH - Monitoring Environment Switch IWMMNTFY - Notify of work execution completion - changed IWMRPT - Report Response Time - changed IWMMEXTR - Monitoring Environment Extract Service - changed IWMMABNL - Monitor Environment Abnormal Event Service (inline only) IWMMREG - Resource monitoring registration IWMMDREG - Resource monitoring deregistration
23/06/2003 / TP
30
z/OS Engine
config files
ftp
Web Monitor
Http log
trace file
Http Server
Workload Simulator Daemon
WebSphere AS
http/https
target application
23/06/2003 / TP
31
23/06/2003 / TP
32