CICS Performance and Tuning 101

Similar documents
CICS Introduction and Overview

DB2 Performance A Primer. Bill Arledge Principal Consultant CA Technologies Sept 14 th, 2011

What it does not show is how to write the program to retrieve this data.

IBM MQ for z/os Deep Dive on new features

IBM CICS Transaction Server V4.2

CICS Introduction and Overview

IBM. Performance Guide. CICS Transaction Server for z/os. Version 5 Release 4

CICS Performance A2Z. By Ivan Gelb. SHARE Anaheim, March 10, 2014 Session Think Faster with

DB2 is a complex system, with a major impact upon your processing environment. There are substantial performance and instrumentation changes in

z Processor Consumption Analysis Part 1, or What Is Consuming All The CPU?

CICS Performance Analysis Essentials

Roll Up for the Magical Mystery Tour of Software Costs 16962

CICS Essentials CICS Best Practices

Sysplex: Key Coupling Facility Measurements Cache Structures. Contact, Copyright, and Trademark Notices

Expert Stored Procedure Monitoring, Analysis and Tuning on System z

The Hidden Gold in the SMF 99s

Why is the CPU Time For a Job so Variable?

Perf-Method-06.PRZ The Swami's Performance Methodology Ideas Dan Janda The Swami of VSAM The Swami of VSE/VSAM Dan Janda VSE, VSAM and CICS Performanc

Four Smart, Fast and Safe Steps to Threadsafe using CICS Tooling

DB2 for z/os Tools Overview & Strategy

Certkiller.P questions

CICS Instrumentation Data for Cloud and Mobile

IBM. PDF file of IBM Knowledge Center topics. IBM Operations Analytics for z Systems. Version 2 Release 2

Non IMS Performance PARMS

1. Which programming language is used in approximately 80 percent of legacy mainframe applications?

CICS Performance Feature Guide and Reference

Mining Gold From CICS Statistics

Modernizing CICS for Cloud

Holistic CICS Performance and Capacity Management

IBM Tivoli Decision Support for z/os Version CICS Performance Feature Guide and Reference IBM SH

VSAM Management. Overview. z/os. CSI International 8120 State Route 138 Williamsport, OH

CS370: System Architecture & Software [Fall 2014] Dept. Of Computer Science, Colorado State University

IBM Education Assistance for z/os V2R2

Optimal Algorithm. Replace page that will not be used for longest period of time Used for measuring how well your algorithm performs

An introduction to tuning VSAM file performance under CICS TS in z/vse

Click to edit Master subtitle style

Why did my job run so long?

BMC Subsystem Optimizer for zenterprise Reducing Monthly License Charges

Découverte des Mystères de l'attachement CICS/DB2

IBM CICS Performance Series: Web Services Performance in CICS TS V5.3

WMQ for z/os Auditing and Monitoring

CICS TS Resource Managers

Oktober 2018 Dell Tech. Forum München

Making System z the Center of Enterprise Computing

IMS Performance - Getting The Most Out Of Your Monitoring Technology: Isolating And Solving Common Issues

z/os CSI International 8120 State Route 138 Williamsport, OH

Improve Web Application Performance with Zend Platform

IBM. Java Applications in CICS. CICS Transaction Server for z/os Version 4 Release 2 SC

SCALING UP VS. SCALING OUT IN A QLIKVIEW ENVIRONMENT

IBM CICS Performance Analyzer Version 5 Release 3. Quick Start Guide

Exadata Implementation Strategy

WebSphere Java Batch WP at ibm.com/support/techdocs Version Date: September 11, 2012

Stored Procedure Monitoring and Analysis

How to Get the Most out of Your DB2 and Analytics Investment

z/os Heuristic Conversion of CF Operations from Synchronous to Asynchronous Execution (for z/os 1.2 and higher) V2

DB2 Stored Procedures Monitoring, Analysis, and Tuning on System z

CA MICS Resource Management

J2EE: Best Practices for Application Development and Achieving High-Volume Throughput. Michael S Pallos, MBA Session: 3567, 4:30 pm August 11, 2003

BMC CONTROL-M for z/os. Product Roadmap

EView/390z Insight for Splunk v7.1

CICS TS V4.2 Virtual Storage and Tuning

instruction is 6 bytes, might span 2 pages 2 pages to handle from 2 pages to handle to Two major allocation schemes

White Paper. Major Performance Tuning Considerations for Weblogic Server

Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Chapter 10: Performance Patterns

IMS DB/DC for Technical Support

Exadata Implementation Strategy

CICS Performance Series: Blow the doors off CICS and DB2. John Tilling. CICS Technical Planning & Strategy IBM UK Laboratories

IBM InfoSphere Guardium S-TAP for Data Sets on z/os User's Guide. Version9Release1

Oracle Database 12c: Performance Management and Tuning

a.k.a. Introducing the IBM MQ Appliance

Content Manager Version 8 Resource Manager Overview

IBM. CICSPlex SM Concepts and Planning. CICS Transaction Server for z/os. Version 5 Release 5

CPU MF Counters Enablement Webinar

ThruPut Manager AE Product Overview From

Private Cloud Database Consolidation Name, Title

The Modern Mainframe At the Heart of Your Business

Oracle Database 11g: Performance Tuning DBA Release 2

What is Real Application Testing?

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

The Concurrency Viewpoint

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

IMS K Transactions Per Second (TPS) Benchmark Roadblocks, Limitations, and Solutions

IMS/DBCTL Migration and Performance Considerations

VSAM Management. Overview. CSI International 8120 State Route 138 Williamsport, OH

Informatica Developer Tips for Troubleshooting Common Issues PowerCenter 8 Standard Edition. Eugene Gonzalez Support Enablement Manager, Informatica

DB2 Analytics Accelerator Loader for z/os

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100

Backup 2.0: Simply Better Data Protection

How IBM Can Identify z/os Networking Issues without tracing

Table of Contents. Cisco Buffer Tuning for all Cisco Routers

Db2 12 for z/os. Data Sharing: Planning and Administration IBM SC

Next Generation Backup: Better ways to deal with rapid data growth and aging tape infrastructures

IBM Application Performance Analyzer for z/os Version IBM Corporation

Performance Monitoring

ActiveVOS Dispatch Service. ActiveVOS 9.0+

Comp 310 Computer Systems and Organization

CA Rapid Reorg for DB2 for z/os

Vscale: Real-World Deployments of Next-Gen Data Center Architecture

IMS Connect Extensions

Transcription:

CICS Performance and Tuning 101 Ezriel Gross - Circle Software Incorporated Tuesday, March 8, 2016

Agenda Introduction to tuning and reasons to tune Application versus systems Tuning methodology Anatomy of response time Data collection and reporting facilities Getting started: monitoring, DFH0STAT, end-of-day (EOD) statistics Examples of resources to tune Summary 2 CICS Performance and Tuning 101

Why tune? Poor response times Application versus system Network DASD Increased workload Consolidations Increased volumes Hardware considerations Postpone upgrades Application costs Learning experience 3 CICS Performance and Tuning 101

When is tuning usually performed? When problems or issues occur Why not tune regularly? Lack of resources due to budget cuts, staff reductions Lack of knowledge Lack of interest application or file tuning Dependence on outside parties If it ain t broke don t fix it attitude Third party packages and applications ROI cannot be determined in advance 4 CICS Performance and Tuning 101

Rules before starting Tuning is a top-down activity Make changes to address major constraints One major change at a time Some changes require iteration to find the right values Change should be done gradually and monitored Tuning will not always be effective Do not tune for the sake of tuning Have a fallback position 5 CICS Performance and Tuning 101

Methodology 6 CICS Performance and Tuning 101

Methodology General performance tuning guidelines: Observe Understand your startup procedure and workload Set realistic objectives Develop a baseline to which you can compare CPU Utilization: overall and CICS Number of tasks per day or hour: peak and average Response times Measure Identify areas to tune Determine measurement timeline Select tools to be used IBM supplied: DFH0STAT, EOD Statistics, CICS tables/rdo information, LISTCAT etc. Third party monitors and tools 7 CICS Performance and Tuning 101

Methodology Analyze Review outputs Identify tuning opportunities React Make appropriate changes Use test or quality environments first Word to the wise Make major changes one at a time Follow installation standards: change management Ensure backup or fallback plan is ready 8 CICS Performance and Tuning 101

Methodology Verify Review results from changes Make appropriate changes, as required Some tuning may require several iterations: for example LSR pool tuning Go back to the Measure step until changes are meeting your objectives Implement Move to production and go back to the Observe step 9 CICS Performance and Tuning 101

Methodology Establish baseline Monitor the system using tools Objective met? YES Document change and continue normal monitoring NO Identify performance constraint Determine required change Make change and implement 10 CICS Performance and Tuning 101

no ing CICS or your applications is not enough 11 CICS Performance and Tuning 101

Performance opportunities Response time problems Processor overloaded CPU problems and costs Provision for increased workloads Availability and reliability problems Lack of certain types of CICS resources Capacity planning base line Realization of new technologies 12 CICS Performance and Tuning 101

Response times System response Allocation of resources Processor speed Design of application code Network response Transmission through the network DASD response Caching and buffering to reduce or eliminate Increased workload Can cause failures in otherwise stable environment 13 CICS Performance and Tuning 101

Response times 14 CICS Performance and Tuning 101

CICS tasks and programs A task is an instance of a transaction started by a user. When a user types in data and presses Enter or a Function key, CICS begins a Task and loads the necessary programs. Tasks run concurrently. Therefore, a user can run multiple instances of the same transaction simultaneously. CICS multitasks giving fast response times. CICS runs each task, briefly giving CPU to each one. 15 CICS Performance and Tuning 101

EXEC interface CICS programs look like batch with the insertion of Execute CICS commands. APPLICATION SYSTEM The CICS commands are used to request Services. CICS commands must be translated into COBOL prior or during program compilation. DFHETC DFHEIFC DFHETS WAIT? 16 CICS Performance and Tuning 101

Response times 17 CICS Performance and Tuning 101

Anatomy of response time Response time consists of two elements: 1. Suspend time: the time a task is not executing (waiting). 2. Dispatch time: the time that CICS thinks the task is executing. This time is further divided into: A. CPU time: the time the task is executing on CPU. B. Wait time: the time the CPU has been taken away from the task without the knowledge of CICS. CPU to dispatch ratio: Ratio = (CPU time/dispatch time) * 100 Objective is 80% or higher 18 CICS Performance and Tuning 101

Types of aits 19 CICS Performance and Tuning 101

Resource load 20 CICS Performance and Tuning 101

Instrumentation data and measurement tools 21 CICS Performance and Tuning 101

CICS monitoring facility (CMF) CMF collects data about all transactions in CICS Records are written to SMF for later offline processing CMF collects four classes of data: exception, identity, performance and transaction resource CMF can produce a significant volume of data CICS compresses the data by default To exclude monitoring data fields, use a monitoring control table (MCT) To process output use: Tivoli Decision Support for z/os CICS Supplied sample program DFH$MOLS CICS Performance Analyzer (CICS PA) 22 CICS Performance and Tuning 101

CMF data types Exception Class Information about resource shortages encountered Queuing for file strings Wait for Temporary Storage buffers Highlights problems in CICS system operation Identifies system constraints that affect performance One exception record written for each condition that occurs Identity Class Provides enhanced audit information Captures identity propagation data from a client system across a network for eligible transactions 23 CICS Performance and Tuning 101

CMF data types Performance Class Provides detailed transaction information Processor and elapsed time Time spent waiting for I/O, etc One record per transaction Transaction Resource Class Additional transaction level information about individual resources accessed by a transaction Items such DPLs, file and temporary storage queues One transaction resource record per transaction monitored Record cut only if transaction accesses at least one resource being monitored 24 CICS Performance and Tuning 101

DFH$MOLS Sample program supplied with CICS that can process and print SMF records produced by CMF Can also produce output data sets from compressed records for use by other analysis products Sorts and prints monitoring data based on parameters passed Can select or exclude data for printing based on applid, userid, tranid, task number, etc. SMF data set must be unloaded prior to using MCT is key to determining how much data is collected 25 CICS Performance and Tuning 101

CICS Monitoring Control Facility (CEMN) 26 CICS Performance and Tuning 101

CICS Monitoring Control Facility (CEMN) 27 CICS Performance and Tuning 101

CICS Monitoring Control Facility (CEMN) 28 CICS Performance and Tuning 101

CICS Monitoring Control Facility (CEMN) 29 CICS Performance and Tuning 101

CICS Monitoring Control Facility (CEMN) 30 CICS Performance and Tuning 101

CICS statistics Statistics domain collects a variety of data Written to the SMF data set Provides information about resources and domains Counts and wait times for resource requests Processor and storage use Certain statistics counters can be reset when records cut Interval recording can be set on/off using STATRCD (SIT) Records can be processed by DFHSTUP or DFH0STAT Records can be processed by Tivoli Decision Support for z/os or CICS Performance Analyzer (CICS PA) 31 CICS Performance and Tuning 101

When does CICS collect statistics? Interval statistics At intervals set: default every hour Requires STARCD=ON in SIT Can be turned on using SET command End-of-day statistics When CICS shuts down either normal or immediate At midnight (by default) in 24/7 operations Requested statistics EXEC CICS Perform statistics record EXEC CICS Set statistics RECORDNOW CEMT Perform statistics Can be issued with any combination of resources 32 CICS Performance and Tuning 101

When does CICS collect statistics? Requested Reset statistics EXEC CICS Perform statistics record RESTNOW EXEC CICS Set statistics RECORDNOW RESETNOW CEMT Perform statistics all RESTNOW Differs from Request Statistics as counters are reset Causes loss of data since the last statistics interval Unsolicited statistics Collected for resources allocated or de-allocated Written to SMF before resource is deleted Produced for resources such as, Atom Feeds, Autoinstalled Terminals, Files, DB2, FEPI, IPCONN, etc. 33 CICS Performance and Tuning 101

DFH0STAT RDO Group DFH$STAT contains required definitions Transaction identifier is STAT COBOL sample provided in source and load format Good example of the use of EXEC CICS Collect Statistics Output information includes: Dispatcher, Storage, Loader, etc. Spool = YES must be specified in the SIT 34 CICS Performance and Tuning 101

DFH0STAT 35 CICS Performance and Tuning 101

DFH0STAT 36 CICS Performance and Tuning 101

DFH0STAT 37 CICS Performance and Tuning 101

DFH0STAT 38 CICS Performance and Tuning 101

DFH0STAT 39 CICS Performance and Tuning 101

DFH0STAT 40 CICS Performance and Tuning 101

What resources to tune 41 CICS Performance and Tuning 101

What resources to tune 42 CICS Performance and Tuning 101

What resources to tune 43 CICS Performance and Tuning 101

What resources to tune 44 CICS Performance and Tuning 101

Understanding serialization 45 CICS Performance and Tuning 101

Making a change 46 CICS Performance and Tuning 101

Making a change 47 CICS Performance and Tuning 101

Maximum Tasks (MXT) 48 CICS Performance and Tuning 101

Maximum Tasks (MXT) 49 CICS Performance and Tuning 101

Maximum Tasks (MXT) 50 CICS Performance and Tuning 101

Transaction Class (TCLASS) 51 CICS Performance and Tuning 101

Transaction Class (TCLASS) 52 CICS Performance and Tuning 101

Transaction Class (TCLASS) 53 CICS Performance and Tuning 101

Task Priority & PRTYAGE (SIT) 54 CICS Performance and Tuning 101

Task Priority & PRTYAGE (SIT) 55 CICS Performance and Tuning 101

Task Priority & PRTYAGE (SIT) 56 CICS Performance and Tuning 101

Task Priority & PRTYAGE (SIT) 57 CICS Performance and Tuning 101

Region Exit Interval (ICV) 58 CICS Performance and Tuning 101

Interval Runa ay (ICVR) 59 CICS Performance and Tuning 101

Interval Runa ay (ICVR) 60 CICS Performance and Tuning 101

Multi-Tasking (DTIMEOUT) 61 CICS Performance and Tuning 101

Deadlock Timeout (DTIMEOUT) 62 CICS Performance and Tuning 101

DISPATCHER STATISTICS 63 CICS Performance and Tuning 101

Systems of Record can be complex systems built on decades of continuous & incremental development Change? Fix problems? Optimize? Modernize? Where do I start? Re-use? 64 CICS Performance and Tuning 101

CICS Operational Insight Intelligent Try it out at https://cicsoi.mybluemix.net/ Have your say on new insights on https://ibm.biz/cicsoi-forum Partnering Analytics Instrumented Integrated Information 65 CICS Performance and Tuning 101

Three steps to CICS Operational Efficiency Optimize applications, systems, and processes to achieve more with less Developer Sysprog Identify hotspot transactions Identify hotspot programs CICS PA Collect and load performance data CICS IA Code changes, if needed RDz Create model Dev/Test regions Clone Dev/Test regions Add updated resources to change package CICS DA WSIM CICS PA CICS CM Performance test Deploy new code and change package Step 1 Step 2 Step 3 Threadsafe analysis and implementation to reduce CPU utilization by up to 20% Workload Management to cope with mobile scalability and availability needs Region Consolidation to reduce management overhead and CPU utilization (up to 10%) 66 CICS Performance and Tuning 101

Summary There are many areas in CICS that can be tuned To achieve the best results, tuning must be on-going Always start at the top and work your way down Set reasonable objectives Measure and publish the results 67 CICS Performance and Tuning 101