Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Extracting Optimum Performance from CICS

A narrated guide to CICS Threadsafe and Consolidation using CICS Tools - click Play to start the audio tour
by

Anna Bridgen

on 6 March 2015

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Extracting Optimum Performance from CICS

Successive releases of CICS TS since v2.2 have provided improved function to enable more applications to run Threadsafe

Many CICS sites have Threadsafe projects in plan
In summary...
CICS : Transactions , Programs, Files, TSQs, TDQs , Webservices etc

DB2: tables , views, cursors etc

MQ: Queues , QueueMgrs

IMS/DLI: PCBs and PSBs

Natural and Adabas resources
CICS IA
What commands are issued by this transaction?
How many of the commands are “threadsafe”?
Are there any DB2 , MQ or IMS commands?
Are there any Dynamic COBOL commands?
Are there any “inhibiting” commands?
GETMAIN , LOAD , ADDRESS CWA , EXTRACT EXIT

Which commands cause a TCB swap and where in the sequence of events?
How many switches (change modes) occurred?
What was the delay as a result?

How much CPU time did they use?
What is this costing me?

Sample Report Forms …
CPU Usage, Delays, Change Mode Delays
to help with
CICS TS 3.1/3.2/4.1/4.2/5.1 Information Centers
http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi.cgi

Redbook: Threadsafe considerations for CICS (SG24-6351-03)
http://www.ibm.com/redbooks
Fifth edition (April 2012) includes CICS TS V4.2 changes

CICS Showcase (multimedia content portal)
http://www.ibm.com/software/htp/cics/showcase/
Find out more...
Use CICS CM Package, Transformation and Migrate to update the programs
Use CICS IA to verify threadsafe and non-threadsafe CICS commands
Threadsafe CICS commands can run on QR or an open TCB

Non Threadsafe CICS commands must run on QR TCB

A threadsafe program can issue both threadsafe and non threadsafe CICS commands
A Threadsafe command will not cause a TCB switch
A non threadsafe command will cause a switch back to QR if not already on QR
There is no data integrity issue, just the performance cost of a TCB switch
CICS IA Command flow data for the transaction with high Change TCB modes
CICS IA threadsafe report
CICS Explorer views
IDENTIFY transactions that have a
high number of TCB switches
Steps to threadsafe applications
CICS QR TCB is CPU constrained
Application tasks are waiting excessively for the QR TCB
The CICS region in general is CPU constrained
Why make applications threadsafe ?
Graphical Visualisation: Sysplex view & Overview
Tree View
Job name
Job Id
CICS version
CICS connections
CPSM attributes
Users can augment the data model:
Free-form (CSV) tags
Start and stop policies
CICSPlex SM Servers
CMASs
Managed CICS regions
Unmanaged CICS regions
CICS Transaction Gateways
Coupling Facility Data Tables
Named Counter Servers
MQ
DB2
IMS
Use CICS IA to verify program logic is threadsafe
Use serialization techniques when accessing shared resources

Enqueue and Dequeue
Compare and Swap

Review usage of:
ADDRESS CWA
EXTRACT EXIT
GETMAIN SHARED

CICS will provide threadsafe access to its resources
e.g. Files, Queues

Select a program for “Detailed” report
CICS IA threadsafe report
Summary Report
CICS IA threadsafe report
Saved
Customer experiences of Threadsafe projects
Identify worst performers
Load directly into a spreadsheet tool
Export to File as CSV
Transaction profiling report can quickly show comparison between pre and post threadsafe project
Note: report shows an example of a transaction profiling report.
Not an actual report from a threadsafe project.
V5R1M0 CICS Performance Analyzer
Transaction Profiling
__________________________________________________

PROF0001 Printed at 13:54:44 8/02/2012 Report Data from 15:24:42 7/31/2012 to 16:29:59 7/31/2012 Page 1
Baseline Data from 16:17:32 7/31/2012 to 16:44:59 7/31/2012


Avg Avg Avg Avg Avg Avg Avg Avg Avg Avg
Tran #Tasks Response Dispatch User CPU Suspend DispWait FC Wait FCAMRq IR Wait SC24UHWM SC31UHWM
Time Time Time Time Time Time Count Time Count Count
PA2 Report 12 .0175 .0082 .0017 .0093 .0005 .0000 0 .0086 5008 142952
PA2 Baseline 44 .0893 .0425 .0038 .0467 .0015 .0000 0 .0444 2588 233438
Delta -32 -.0717 -.0343 -.0020 -.0374 -.0009 .0000 0 -.0358 +2419 -90486
Change% -72.73 -80.33 -80.69 -53.63 -80.03 -64.50 .00 .00 -80.65 +93.48 -38.76

Compare results using CICS PA Transaction Profile Report
Note: report shows an example of a transaction profiling report. Not an actual report from a consolidation project.
Transaction profiling report can quickly show performance comparison between pre and post consolidation workload
V5R1M0 CICS Performance Analyzer
Transaction Profiling
__________________________________________________

PROF0001 Printed at 13:54:44 8/02/2012 Report Data from 15:24:42 7/31/2012 to 16:29:59 7/31/2012 Page 1
Baseline Data from 16:17:32 7/31/2012 to 16:44:59 7/31/2012


Avg Avg Avg Avg Avg Avg Avg Avg Avg Avg
Tran #Tasks Response Dispatch User CPU Suspend DispWait FC Wait FCAMRq IR Wait SC24UHWM SC31UHWM
Time Time Time Time Time Time Count Time Count Count
PA3 Report 18 .0463 .0221 .0033 .0241 .0008 .0000 0 .0230 2432 271272
PA3 Baseline 20 .0509 .0239 .0038 .0269 .0011 .0000 0 .0252 2188 257806
Delta -2 -.0046 -.0017 -.0005 -.0028 -.0003 .0000 0 -.0022 +243 +13465
Change% -10.00 -9.04 -7.33 -13.73 -10.55 -26.20 .00 .00 -8.91 +11.11 +5.22

Performance comparison following consolidation
New and improved capabilities in CICS TS V5.1 provide...
Greater
single region scalability
by doubling the MAXTASK limit to 2,000
Driving operational efficiencies - greater capacity
Greater horizontal and vertical scaling
CPSM

CSD files

Consolidated
CPSM

CSD files

Pre-consolidation
CICS CM change package:

Define
Package
Ready
Approve
Migrate
Backout
Install
Newcopy
Group changes into a CICS CM
change package
Manage the package as a single unit
Supports Ready, Approve and Backout processing
APIs and exit-points for integration with change-control products
CICS CM
“Test to Production”
migration scheme
“Development to Test”
migration scheme
Change package
Consolidated environment
Intermediate environment
Pre-consolidation
Change package
Migration
schemes
identify source and target repositories

Different schemes to progressively migrate a change package
Extracting Optimum Performance from CICS
What does it mean to be threadsafe in CICS?
CICS Threadsafe
Consolidation
&
It can save you money!
Increase the simultaneous CICS tasks that can run in a single CICS region
Reduces the need for vast number of CICS systems, saving the cost of administration and overheads
Better exploitation of modern z-Series hardware
Reduce cost by reducing instruction path length
Each TCB switch is approximately 2,000 instructions
In CICS TS v5.1, non-threadsafe DB2, MQ and IMS transactions switch TCB’s for each SQL statement or MQ command
CICS Threadsafe
Danske Bank
Savings of around
during the peak processing period
– directly attributed to reduced TCB switching
Large US financial services organization
Estimated
on data center chargeback reduction
Major US bank
V5R1M0 CICS Performance Analyz
Performance List Extend
___________________________________

LSTX0001 Printed at 15:11:29 5/21/2013 Data from 09:29:32 5/14/2013 to 10:29:
Top 20 Worst Change TCB Modes by Transaction ID

Tran DSCHMDLY Userid TaskNo Stop Response Dispatch Dispatch User C
Count Time Time Time Count Time
NTCA 900 JOHNSON 39165 9:50:29.430 .5728 .5388 902 .06
DTC1 608 BDENNET 58156 10:05:12.393 .3387 .3086 610 .04
WB1C 584 TRICKET 67906 10:14:23.115 .0945 .0692 586 .03

Use CICS Performance Analyzer to analyze your CICS applications to determine which of these applications are good candidates for Threadsafe
BADCHMDS – Top 20 worst change modes by Transaction ID
CICS Tools
Using
How do you create threadsafe applications
& how can CICS Tools help?
CICS PA
Improve performance
projects
300 MIPS
$32M per year
in savings based
Analysis done by 1 non-dedicated systems programmer in 6-7 months
700 MIPs
one major application threadsafe
by making
IDENTIFY programs in those transactions that are
good threadsafe candidates
IMPLEMENT
threadsafe programs
MEASURE
the results
ANALYZE programs to ensure the
logic is threadsafe
How CICS Tools help...
CICS IA
CICS CM
?
?
?
Using CICS PA
Using CICS PA
CICS TCB Usage
CICS TCB Usage – drilldown to Suspend time detail
Using CICS IA
Use CICS IA to determine cause of high number of Change TCB Modes
?
?
?
Using CICS IA
In print format...
CICS CM
Using CICS PA
V5R1M0 CICS Performance Analyzer
Transaction Profiling
__________________________________________________


PROF0001 Printed at 13:54:44 8/02/2012 Report Data from 15:24:42 7/31/2012 to 16:29:59 7/31/2012
Page 1
Baseline Data from 16:17:32 7/31/2012 to 16:44:59 7/31/2012


Avg Avg Avg Avg Avg Avg Avg Avg Avg Avg
Tran #Tasks Response Dispatch User CPU Suspend DispWait FC Wait FCAMRq IR Wait SC24UHWM SC31UHWM
Time Time Time Time Time Time Count Time Count Count
PA2 Report 12 .0175 .0082 .0017 .0093 .0005 .0000 0 .0086 5008 142952
PA2 Baseline 44 .0893 .0425 .0038 .0467 .0015 .0000 0 .0444 2588 233438
Delta -32 -.0717 -.0343 -.0020 -.0374 -.0009 .0000 0 -.0358 +2419 -90486
Change% -72.73 -80.33 -80.69 -53.63 -80.03 -64.50 .00 .00 -80.65 +93.48 -38.76
Why not check out the video..?
Modernizing CICS applications to reduce CPU usage
Using CICS TS V5.1 scalability to consolidate CICS systems to simplify management
Modernizing CICS applications to reduce TCB switching and CPU usage
Not threadsafe
Threadsafe
Threadsafe: a brief history...
Making it possible...
Exploiting the value...
CICS PA
CICS IA
CICS CM
CICS PA
&
1. IDENTIFY
4. MEASURE
3. IMPLEMENT
2. ANALYZE
Consolidation
Exploiting scalability enhancements in CICS TS V5.1
What have we enhanced?
How can you exploit this?
Steps to consolidation of CICS regions
DISCOVER CICS and CICSPlex
system topology
ANALYSE
application resources and interdepencies
MEASURE
performance
IMPLEMENT
region consolidation
, including CSD & CPSM BAS resources
CICS DA
CICS CM
CICS PA
These need investigation and analysis
CICS Explorer views
The role of CICS Tools...
CICS DA
1. DISCOVER
Discovery
Address spaces discovered in the Sysplex and discovered LPARs:
Discovered data includes:
Visualisation
Scoped connections view – in a physical layout
Reporting
Application discovery
CICS IA
CICS CM
CICS PA
CICS IA
2. ANALYZE
3. IMPLEMENT
4. MEASURE
Captures CICS application relationships:...
What resources are used by a program?
Application discovery and visualisation
Which CICS regions use file KSDSCUST?
Application discovery
Threadsafe
With greater capacity available through significant vertical and horizontal scalability enhancements in CICS TS v5.1 many organisations are considering CICS region consolidation
Consolidation
CICS Tools can facilitate these projects
Greater usage of
64-bit storage
and reduced usage of 24-bit storage
Greater
application

parallelism
through threadsafe API and SPI extensions
Greater
system parallelism
through optimized Task Control Block (TCB) usage
Greater Java performance improvements from
64-bit Java 7 support
Greater access to
64-bit application storage
when using
Assembler
programs
Check out the CICS Hursley channel on YouTube
Becoming Threadsafe in CICS - Tutorial
Visualisation
CICS DA
A)
Discover
your Sysplex, CICS assets and other address spaces


B)
Visualise
assets and interconnections graphically


C) Export discovery data for
reporting
Migrate changes to consolidated environment
CICS PA
CSD files
CPSM
CSD files
CPSM
V5R1M0 CICS Performance Analyzer
Transaction Profiling
__________________________________________________

PROF0001 Printed at 13:54:44 8/02/2012 Report Data from 15:24:42 7/31/2012 to 16:29:59 7/31/2012
Page 1
Baseline Data from 16:17:32 7/31/2012 to 16:44:59 7/31/2012


Avg Avg Avg Avg Avg Avg Avg Avg Avg Avg
Tran #Tasks Response Dispatch User CPU Suspend DispWait FC Wait FCAMRq IR Wait SC24UHWM SC31UHWM
Time Time Time Time Time Time Count Time Count Count
PA3 Report 18 .0463 .0221 .0033 .0241 .0008 .0000 0 .0230 2432 271272
PA3 Baseline 20 .0509 .0239 .0038 .0269 .0011 .0000 0 .0252 2188 257806
Delta -2 -.0046 -.0017 -.0005 -.0028 -.0003 .0000 0 -.0022 +243 +13465
Change% -10.00 -9.04 -7.33 -13.73 -10.55 -26.20 .00 .00 -8.91 +11.11 +5.22
Migrate changes to consolidated environment
IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion.

Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision.

The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.

Before we begin...
IDENTIFY
IDENTIFY
Using CICS PA
IDENTIFY
Using CICS PA
IDENTIFY
ANALYZE
ANALYZE
Using CICS IA
ANALYZE
Using CICS IA
ANALYZE
Using CICS IA
ANALYZE
Using CICS IA
ANALYZE
Using CICS IA
ANALYZE
IMPLEMENT
MEASURE
DISCOVER
CICS DA
DISCOVER
CICS DA
DISCOVER
CICS DA
DISCOVER
CICS DA
DISCOVER
ANALYZE
CICS IA
ANALYZE
CICS IA
ANALYZE
IMPLEMENT
CICS CM
IMPLEMENT
MEASURE
CICS TS V2.2 introduced Open TCBs for Resource Managers
New options allow Task Related User Exits to be invoked on an Open TCB
OPENAPI option on the ENABLE command
Eliminates the need for adapters to manage their own private TCB pool
DB2 exploited this function in CICS TS V2.2
XPLINK exploited this function in CICS TS V3.1
MQ exploited this function in CICS TS V3.2
CICS Sockets exploited this function with z/OS V1R7 Communications Server
IMS exploited this function in CICS TS 5.1
Candidates Compare
Missing
Different
Integrity issues
Pre-consolidated System 2
Context

CSD

Pre-consolidated System 1

Context

CSD

Perform deployment reporting, such as
Candidates Compare and Cold Start Analysis
CICS CM
Delivery controlled
Package and deliver without fuss
Transform enabled
Package capable
LPAR boundary
CSD

Context

Export

Production
Export
Logical:
Definitional:
CSD

CSD

Context

Context

CSD

CSD

Topology sensitive
Development
Test
CSD
Context
Context
CSD
Export
Context
CSD
CSD
CSD
Context
Context
IMPLEMENT
CICS CM
IMPLEMENT
CICS CM
IMPLEMENT
Use CICS CM Package, Transformation and Migrate to update the programs
CICS Commands and Threadsafe programs
Full transcript