ca idms performance and tuning
TRANSCRIPT
1 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
World®’16
CAIDMS™PerformanceandTuning
JohnSiraco,Director,SoftwareEngineeringCATechnologies
MFX69E
MAINFRAMEANDWORKLOADAUTOMATION
2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Abstract
AftercompletingthiscourseyouwillbeabletoidentifythecomponentswithinanIDMSsystem,identifyandtakecorrectiveactionstodealwithperformanceissues.Youwillalsobefamiliarwiththetoolsavailableformonitoringandtuningaswellasdevelopmonitoringprocedures.
JohnSiraco
CATechnologiesDirector,SoftwareEngineering
3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Agenda
IDENTIFYTHECOMPONENTSWITHINANIDMSCENTRALVERSION
DEALWITHPERFORMANCEISSUES
TAKECORRECTIVEACTIONS
IDENTIFYAVAILABLETOOLSFORMONITORINGANDTUNING
IDENTIFYPOTENTIALSCARCERESOURCES
ESTABLISHMONITORINGPROCEDURES
1
2
3
4
5
6
4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
FunctionsofMonitoringandTuning
§ Systemmonitoringistheprocessofmeasuringsystemperformanceandresourceconsumption
§ Systemtuningshouldbeundertakenonlywhen:– Systemmonitoringindicatesthatperformancegoalsarenotbeingmet– Achangeinthesystemworkloadforexistingapplicationsisanticipated– Achangetothetotalsystemworkloadisanticipated– Hardwaremodificationsarebeingintroduced
5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
StepsintheMonitoringandTuningProcess
1. IdentifythecomponentswithinanIDMSCentralVersion
2. DealwithPerformanceIssues
3. IdentifytheavailabletoolsforMonitoringandTuning
4. Identifypotentialscarceresources
5. Establishmonitoringprocedures
6. Takecorrectiveaction
IdentifytheComponentswithinanIDMSCentralVersion
7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ComponentswithinanIDMSCentralVersion
§ AnIDMSCentralVersion(“Region”/“DC/UCFSystem”)consistsof:– System-relatedentities– Database-relatedentities
8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
System-RelatedEntities
§ StartupModuleandIDMSNucleusModules
§ StoragePools
§ ProgramPools
§ Storageformaintaining(database)lockrelatedinformation
§ SystemAreas(Log– Scratch– Queue)
§ DataCommunication(DC)Components:– LineDrivers– CommunicationsLineswithLogicalandPhysicalterminals
9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
System-RelatedEntitiesContinued
§ SystemRunUnittasks
§ ExternalRunUnittasks
§ UserTasks(applications)
10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Database-RelatedEntities
§ DictionariesandDatabases
§ DatabaseBuffers
§ Journals
DealwithPerformanceIssues
12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
TypesofPerformanceIssues
WithinanIDMSCentralVersion,twotypesofperformanceissuescanarise:
§ SystemPerformanceissues
§ DatabasePerformanceissues
13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntroductiontoSystemPerformanceIssues
§ Identifycriticalresourcesthataffectsystemperformance
§ Identifyfactorsthatcontrolandlimittheavailabilityofthoseresources
14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePools
§ StoragePoolsarefound– Belowtheline/24-bitstorage/nonXAstorage(numbers0– 127)– Abovetheline/31-bitstorage/XAstorage(numbers128– 255)
§ Twotypesofstorage– SYSTEMtype:System,Terminal,Database– USERtype:User,UserKept,Shared,SharedKept
§ StoragePools0and255arerequired
§ StoragePool255containsSYSTEMtypestorageonly
§ StoragePool0containsSYSTEMtypeandeventuallyothertypes
15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ DefinedinSYSGEN
§ Storagepools0and255definedinSYSTEMstatement:– ADDSYSTEMnnn
STORAGEPOOLXASTORAGEPOOL
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ Otherstoragepoolsthataredefinedinindividualstatements:– Belowtheline:
§ ADDSTORAGEPOOLnn(01<=nn<=127)– Abovetheline:
§ ADDXASTORAGEPOOLnn(128<=nn<=254)
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ Ifarequest(GetStorage)forXAstorageisdone,but:– NoXAstoragepoolforthattypeexists,or– XAstoragepoolforthattypeexists,butnospaceisavailableinit,then– Storageisallocatedoutof:
§ anonXApoolwhichcontainsthattype,or§ Ifnotexisting,outofstoragepool0§ ThisappliesforanonXA storagerequesttoo
18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ DefineextrapoolstoseparateSYSTEMfromUSERstorage.(requiredforStorageProtection)
§ Optionflag193canbeusedtoreduceCPUusage
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ ExampleofSYSGENdefinitionstatements:
20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ ShortonStorage(SOS)Conditionscanhaveamajorimpactonperformance.Twotypescanoccur:– Shortonstoragecondition(condition0)– Storagenotavailablecondition(condition1)
§ MessageDC015007iswrittentotheOperatorConsole:
21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ IncaseofShortOnStorageconditions– Determinewhetherneedlessorexcessivestorageallocationsaremade– UseStorageLimitstolimitstorageutilizationpertask– Ifanon-XAstoragepoolisSOS,checkfortaskswithLOC=BELOWandif
possible,changeintoLOC=ANY– IfanXAstoragepoolisSOS,mayneedtoincreasethatpool– EventuallyreduceMAXTASKS
22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ MonitorStorageutilizationwith:– DCMTDISALLSTORAGEPOOLS
§ Secondpool255containsruntimeDMCL,andisnota“real”storagepool
Anon-zerovalueinTimesSOSisaredflag
23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ DCMTDISACTIVESTORAGE
24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStoragePoolsContinued
§ OPERWATCHSP
Anon-zerovalueisaredflag
25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStorageforDatabaseLocks
§ Shortonstorageofteniscausedbylockoverflow
§ Atstartup,storagefordatabaselocksispreallocatedinakindof“storagepool”outsideofthe“numbered”storagepools
§ SizeisbasedontheSYSLOCKSparameter(SYSGEN,SYSTEMstatement)
26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStorageforDatabaseLocks
§ Incaseoflockoverflow,databaselocks“overflow”instoragepool255,whichincreasesthepossibilityforSOSconditions
§ Lockoverflowcandegradesystemperformance
§ MostoftencausedbylongrunningprogramswithoutCOMMITs(batchprogramsrunninginCentralMode)
27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStorageforDatabaseLocksContinued
§ MonitorLockingstoragewith:– TheLOCKMONtask(STATUScommand)
Non-zerooverflowvaluesarearedflag
28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesStorageforDatabaseLocksContinued
§ DCMTDISPLAYLOCKSTATISTICS
29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPools
§ Areaofstoragethatis usedtoloadprogramsthatmustbeexecutedwithintheCentralVersion:– CAADSdialogs– Maps– Subschemas– Edit/CodeTables– AccessModules– Cobol,Assembler,Pl/Iprograms– Databaseprocedures
30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPoolsContinued
§ TypesofProgramPools:– 24-bitprogrampool– 24-bitreentrantprogrampool– 31-bitprogrampool– 31-bitreentrantprogrampool
§ MakeProgramPoolslargeenoughsothateachprogramisonlyloadedonce
31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPoolsContinued
§ ExampleofSYSGENdefinitionstatements:
32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPoolsContinued
§ IncreasesizeofProgramPoolsif:– Activeprogramsareoverlaidbyotherprograms– Youexperiencewaitsforprogrampoolspace
33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPoolsContinued
§ MonitorProgramPoolutilizationwith:– DCMTDISALLPROGRAMPOOLS
34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPoolsContinued
§ DCMTDISACTIVEXAREENTRANTPROGRAM
Values>1arean
indicationofapotentialpoolsizeproblem
Checkforvalues>0
35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesProgramPoolsContinued
§ OPERWATCHPR
36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesScratchArea
§ Containstemporarydatathatare usedbyonlinetasks
§ CanbeallocatedonDASDormemory
§ Recommendedtousememory– SizeequalstoSYSGENdefinitionorsizeofscratcharea
§ DefinedinSYSGEN– SYSTEMstatement“SCRATCHInSTOrageisYES”
§ CanbelocatedinXAor64-bitstorageifavailable
§ Significantlyimprovesruntimeperformance
37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesScratchAreaContinued
§ CheckscratchallocationswithDCMTDISPLAYSCRATCH
38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesTasks
§ ATASKisthebasicunitofworkwithinaCentralVersion
§ Consistsofexecutionofoneormoreprograms
§ Maximumnumberoftasksthatare determinedby:– MAXIMUMTASKS/MAXIMUMERUSinSYSTEMstatement– NumberofpredefinedSYSTEMRUNUNITS– Numberoflines– DeadlockDetectionTask– PrinterTask– Othermiscellaneoussystemfunctions
39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesTasksContinued
§ Monitorthenumberofactivetaskswith:– DCMTDISPLAYACTIVETASK
40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesTasksContinued
§ OPERWATCHACTIVETASK
41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesTasksContinued
§ Maximumnumberofconcurrenttaskshasadirectinfluenceonsystemperformance
§ Strategy:– InSYSGEN,specifyhighMAXIMUMTASKand/orMAXIMUMERUS– Immediatelyafterstartup,useDCMTVARYMAXTASKtosetvaluetoa
relativelylownumber– Observesystemperformance– UseDCMTtoincrease/decreaseMAXTASKSvalue
42 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesTasksContinued
§ IndicatorstodecreaseMAXTASK– Systemexperiencesshortonresources– PMRM(Real-TimePerformanceMonitor)showslong/excessivewait
times– Frequentdeadlocksforasystemresourceareexperienced
§ IndicatorstoincreaseMAXTASK– IftheCentralVersionencountersaMAXTASKconditionandno
shortageonresourcesnorlongwaittimesareexperienced
43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesTasksContinued
§ UseDCMTDISPLAYSTATISTICSSYSTEMtocheckMAXTASK
44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesSystemRunUnits
§ Arepredefinedrununitstoprovidestandardservicesfor:– Signonprocessing– Messageprocessing– ProgramLoadingprocessing– Queueprocessing– Securityprocessing
§ DefinedinSYSGEN(SYSTEMstatement,viaRUNUNITSFORxxxclauses)
45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesSystemRunUnits
§ Startedduringstartupprocessing
§ Remainactiveuntilshutdown
46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesSystemRunUnitsContinued
§ Monitorsystemrununitswith:– DCMTDISPLAYRUNUNIT
47 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesSystemRunUnitsContinued
§ PMRM– SystemRunUnitSummary
48 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesSystemRunUnitsContinued
§ Adjustingthenumberofpredefinedrununitscanimprovesystemperformance
§ Considerations:– Insufficientpredefinedrununitscausesoverflowrununits– Eachoverflowrununitcausesextra overhead
49 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesExternalRunUnits
§ OnlinetaskthatisinitiatedwithinaCentralVersiontoservicedatabaserequestsfromanexternalusersession(ERUs)
§ Originatesfrom:– Abatchapplication– AnotherCentralVersion– AnotherTPmonitorsuchasCICS
50 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesExternalRunUnits
§ Canhavefollowingruntimecharacteristics:– LimitsforI/Os,recordlocks,storage– Inactiveandexternalwaittimes– Dispatchpriority– Areaacquisitionthresholdandretrycounts
51 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesExternalRunUnitsContinued
§ NeedstohaveacorrespondingTASKdefinitiontoapplythesecharacteristics
§ Ifnotaskisfound,RHDCNP3Sisused
52 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement
§ Fine-tuninghowaCentralVersioncontrolsresourcescanimprovetaskexecution
§ Taskresourcesaremanagedby:– Resourcecontrolelements(RCEs)– Resourcelinkelements(RLEs)– Deadlockpreventionelements(DPEs)
§ IfTIMESTHRESHOLDEXCEEDEDishigh,improveperformancebyallocatingmoreoftheindicatedelements
53 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagementContinued
§ DCMTDISPLAYSTATISTICSSYSTEM
54 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– DeadlockDetection
§ Adeadlockisanunresolvablecontentionforaresource
§ Aresourceiseithera:• Systemresource• Databaseresource
55 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– DeadlockDetection
§ Detectedbythedeadlockdetector(RHDCDEAD)
§ DEADLOCKDETECTIONINTERVALdefinesthefrequencywithwhichthesystemchecksfordeadlocks
§ Optionflag189canbeusedtospecifyasubsecondinterval
56 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– DeadlockDetectionContinued
§ Checkthisintervalwith:– DCMTDISPLAYDEADLOCK
– Theintervalisexpressedinseconds
57 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– Limits
§ Resourcelimitsspecifythemaximumamountofspecificresourcesagiventaskcanuseatruntime
§ Resourcesthatcanbelimitedpertaskare:– CALL(numberofservicecalls)– DBIO(numberofI/Os)– Locks(numberoflocks)– Storage(sizeofstorage)
58 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– Limits
§ LimitscanbedefinedatSYSTEMlevelforOnlineand/orERUStasks(global)and/orTASKlevel(individual)
59 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– LimitsContinued
§ Monitorgloballimitswith:– DCMTDISPLAYLIMIT
60 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesResourceManagement– LimitsContinued
§ Monitorindividuallimitswith:– DCMTDISPLAYTASKtaskcode
61 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesAbend DetectionandTimedFunctions
§ Systemperformancecanbeimprovedifabended tasks,loopingtasksandotherabnormalprocessingconditionsaredetectedpromptly
§ Thesoonerdetected,thesoonerresourcesthatare heldbythesetaskscanbefreedandmadeavailableforothertasks
62 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesAbend DetectionandTimedFunctions
§ FollowingparametersandtimerscanbedefinedinSYSGEN,SYSTEMstatement:– CHKUSERtasks– DEADLOCKDETECTIONINTERVAL– EXTERNALWAIT– INACTIVEINTERVAL– RESOURCETIMEOUTINTERVAL– RUNAWAYINTERVAL– TICKERINTERVAL
63 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesAbend DetectionandTimedFunctionsContinued
§ TickerIntervalisthemostimportantonebecauseitspecifieshowoftenaCentralVersionchecksforoccurrencesoftimer-relatedevents(defaultis1second)§ IftheTickerIntervalissetto60thenDeadlockDetectionrunsat60
seconds,settimestarttaskcannotstartataskinlessthen60seconds.Manyimplications.
64 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesMultitasking
§ RunningaCentralVersioninmultitaskingcanbeconsideredif:– LparhasfreeCPUcycles– Lparconsistsofmultipleprocessors
§ Easytoactivate– MT=Y,SUBT=nandMTQDEPTH=nparametersinPARMstringofEXEC
card
65 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesMultitasking
§ Increasedthroughputandreducedresponsetime
§ ThecostisaCPUincreasethatvariesfromsitetosite
66 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesMultitaskingContinued
§ MonitorMultitaskingwithfollowingDCMTcommands:– DCMTDISPLAYSUBTASK– DCMTDISPLAYSUBTASKEFFECTIVENESS– DCMTDISPLAYMPMODE– DCMTDISPLAYMTQUEUEDEPTH
67 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesMultitaskingContinued
§ DCMTDISPLAYSUBTASK
68 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesMultitaskingContinued
§ DCMTDISPLAYSUBTASKEFFECTIVENESS
69 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssueszIIP Exploitation
§ AnIDMSCentralVersioncanexploitzIIP processorsonthez9seriesandaboveforthez/OSoperatingsystem
§ EnablesoffloadingcomputingcyclestozIIPs,therebyincreasingoverallCPUthroughputatloweroperationalcosts
70 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssueszIIP Exploitation
§ ApplyPTFsRO63129(18.0)andRO63736(18.5)
§ MostCAIDMSsystemcodeiseligibletorunonzIIP
71 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssueszIIP ExploitationContinued
§ zIIPsupportisimplementedasfollows:– z/OSsoftwarefeatureHBB7709isrequiredtousezIIP– AddZIIP=YasstartupparameterinCentralVersionstartupjcl
72 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssueszIIP ExploitationContinued
§ Followingrulesforloadmodulesneedtobemet:– Startupmodule(RHDCOMVS)mustbeinanauthorizedSTEPLIBlibrary– CAIDMSNucleusmodules(includingalllinedriversandservicedrivers)
mustbeinanauthorizedlibraryintheCDMSLIBconcatenation– TheIBMlanguagelibrary(CEE.SCEERUN)mustbeauthorizedifincluded
inCDMSLIBconcatenation– z/OSCallableServiceslibrary(SYS1.CSSLIB)mustbeinlinklistormustbe
authorizedifintheSTEPLIBconcatenation
73 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssueszIIP ExploitationContinued
§ CheckifCentralVersionrunswithzIIP withDCPROFILtask
74 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssueszIIP ExploitationContinued
§ MonitortheCPUtimeoffloadedtozIIP with:– DCMTDISPLAYSUBTASKEFFECTIVENESS
75 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesExceptionResponse
§ ReduceterminalI/OoverheadbyassigningVTAMExceptionresponseprotocoltocertaintasksorlines
§ ReducesCPUtimebecauseterminalsarenotrequiredtorespondwithcompletionstatus
§ DefinedintheLINEandTASKdefinitionsinSYSGEN
76 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SystemPerformanceIssuesOperatingSystemRecommendations
§ Foroptimumperformance,anIDMSCentralVersionshouldalwaysberunnon-swappable
§ AwardanIDMSCentralVersionthehighestreasonabledispatchingpriority
§ Avoidthattheoperatingsystemwouldneedtodopaging
77 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntroductiontoDatabasePerformanceIssues
§ Identifythemajortypesofresourcesbottlenecksthatarerelatedtoaccessingadatabasethataffectssystemperformanceandperformenvironmentaltuning
§ Pro-activetuningstartswithdatabaseandapplicationdesign
§ Poorperformancecanbecausedby:– ExcessiveI/Oactivity– Toomuchworkbeingrequired(CPU)– ResourceContention
78 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGathering
§ Whatapplicationsareinvolved?– Onlineapplications– BatchprogramsrunninginCentralMode
§ Howdotheyaccessthedatabase?– Areasweeps– Randomaccess– Walkingchains– Indexprocessing– RetrievalorUpdate
79 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ TheDBMScollectsanumberofstatisticsonarununitorSQLtransactionlevel
§ Arecategorizedasbasicandextendedstatistics– Basicstatistics
80 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ Extendedstatistics
81 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ DatabaseStatisticsareaccumulatedonrununitlevel
§ Canbeaccessedthrough:– JREPORTS– ACCEPTSTATISTICSDML/GETSTATISTICSSQLcommands– SREPORTS– PMARPTs– DCMTDISPLAYTRANSACTION
82 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ FieldsinDatabaseStatisticstowatch:– PAGESREAD– PAGESWRITTEN– PAGESREQUESTED– OVERFLOW– NOOVERFLOW– RECORDSREQUESTED– RECORDSCURRENT
83 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ Oftenused“ratios”basedondatabasestatistics:– PAGES-REQUESTED/PAGES-READ– RECORDS-REQUESTED/PAGES-READ– RECORDS-REQUESTED/RECORDS-CURRENT– NOOVERFLOW/(OVERFLOW+NOOVERFLOW)
84 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ DCMTDISPLAYTRANSACTION
85 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesInformationGatheringContinued
§ JREPORT8forsametransaction/run-unit
86 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesExcessiveI/OActivity
§ OverallperformancecandegradeduetoexcessiveI/O– OnDatabasefiles(DatabaseI/O)– OnJournalfiles(JournalI/O)
87 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/O
§ FactorsinfluencingDatabaseI/Oare:– NumberofPagesaccessed
§ DatabasePagesover70%full§ CalcandViaoverflow§ Fragmentationofcompressed/variablelengthrecords§ Indexlevels/orphansincreasing§ Increaseoflogicallydeletedand/orrelocatedrecords
– Buffercontention– UseofPrefetch– UseofFileCaching– DASDcharacteristicsandDataSetPlacement
88 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/OContinued
§ ToolstomonitorDatabaseconditions:– PRINTSPACEutility(runsinbatchandonline)– PRINTINDEXutility(runsinbatchandonline)– IDMSDBANutility(batchonly)
89 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/OContinued
§ PRINTSPACEutility
90 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/OContinued
§ PRINTINDEXutility:SUMMARYreport
91 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/OContinued
§ IDMSDBANutility:Report3– SetAnalysis
92 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/OContinued
§ IDMSDBANutility:Report5– SetAnalysis– ChainLength
93 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDatabaseI/OContinued
§ IDMSDBANutility:Report5– SetAnalysis– PageChange
94 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferContention
§ Buffercontentioncanexistiftherearefewerbufferpagesthandatabasepagesmappingtothebuffer
§ CanincreasenumberofI/Osbecause:– TheDBMSmustre-usebufferpages– Itmayforceredundantreadsandwrites
95 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferContention
§ Recommendationstoreducebuffercontention– assignfrequentlyusedfilesandsequentiallyaccessedfilestoseparate
buffers– Defineonelargebufferforrandomlyaccessedareas
96 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferContentionContinued
§ MonitorBufferutilizationtocheck:– Thebufferutilizationratio– Bufferwaits– Whichfilesareaccessedmostoften
§ Bymeansof:– DCMTDISPLAYSTATISTICSBUFFER– RealTimePerformanceMonitor(PMRM)– JREPORTs03– SREPORTs03– 07- 09
97 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferUtilizationRatio
§ IstheNumberofPagesrequested/NumberofPagesread
§ Ratioof2orhighermeanseffectivebuffer
§ Ratiolowerthan2indicatestoofewpagesinbuffer
98 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferInfoExamples
§ DCMTDISPLAYSTATISTICSBUFFER
99 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferInfoExamplesContinued
§ PMRMBufferI/OSummary
100 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesBufferInfoExamplesContinued
§ PMRMBufferI/OSummaryContinued
101 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesPrefetch
§ Prefetch(orchainedreads):readmultipleblocksfromdiskwithasingleI/Orequest
§ Enabledbydefault,canbedisabled
§ WithinaCentralVersion:two tracksarereadwith1I/O
102 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesPrefetch
§ Reduces:– I/Osifnearbypagesarealsoaccessed– I/OWaitsforbenefitingapplications
§ Increases:– DurationofanI/O– Buffercontention
103 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesPrefetch Continued
§ ImpactofPrefetchdependsuponbuffersize
104 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesPrefetch Continued
§ Prefetchcanbecontrolledwith:– ThePREFETCHparameterinSYSIDMS(defaultisON)– ThePREFETCHoptioninDCMTVARYDMCL,AREA,FILE,
BUFFER
§ Thedefaultprefetchlimitof500pagescanbeoverriddenby:– PREFETCH_BUFSYSIDMSparameter– DCMTVARYBUFFERnamePREFETCHlimit
105 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesPrefetch Continued
§ UseDCMTDISPLAYBUFFERtocheckifprefetchisenabled
106 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesPrefetch Continued
§ MonitorPrefetcheffectivenesswithOPERWATCHDBIO
107 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD 107
DatabasePerformanceIssuesFileCaching
§ Howitworks
AdvantageCAIDMSCV/Local
Buffer
Cache
Onaread:– lookincache– iffound,moveto
buffer– ifnotfound,read
fromfile,copytocache
Onawrite:– copytocache– writetofile
108 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDataSetPlacement
§ GuidelinestoestablishaDASDconfigurationforanIDMSCentralVersion:– Isolatehigh-activitydatasetsasmuchaspossible– DatasetsaccessedbyIDMSCentralVersionsmustbeisolatedfrom
thoseaccessedbybatchjobs– Thegoalistoachievepathisolation– Onlinedatasetsshouldbeisolatedbypathandshouldbestoredonthe
fastestdevicespossible– PlacefilesonParallelAccessDevices(PAV)toallowconcurrentI/Os
againstthesamediskunit
109 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesDataSetPlacementContinued
§ Isolatejournalfiles
§ DonotplaceCAIDMSfileswiththefollowing:– Paging,spool,orSYSRESdatasets– Heavilyusedpartitioneddatasets– Non-CAIDMSVSAMfilesofcatalogs
§ Isolatethelog,scratch,andqueuefilesifheavyCA-ADSdevelopmentorhighOLQusageoccurs
§ Isolatedictionaryareasfordevelopmentsystems
110 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O
§ Factorsinfluencingperformance:– Journalpagesize– Journalbuffersize– Journaltransactionlevel
111 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- PageSize
§ IfJournalpagesizeistoosmall– Morepagesthatareneededtoholdimages– Morejournalwritesissued
§ Ifjournalpagesizetoolarge– Maywastejournalspace
112 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- PageSize
§ Recommendedminimumpagesize– 2*largest-record-size(upto32K)
§ MonitorARCHIVEJOURNALreport– Lowerpagesizeifmostjournalblocksnearempty– Increaseifmostjournalblocksarefull
113 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- BufferSize
§ Multiplejournalbufferpages– Enableoverlappedfillingandwritingofjournalblocks
§ Reducedwaittimesforjournaling– MayavoidjournalI/Oduringrecovery
§ Fasterrecovery§ Lessinterferencewithnormalactivity
114 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- BufferSize
§ Minimumfivepages
§ Systemswithlotsofabends…muchlargernumberofpages
115 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- BufferSize Continued
§ DCMTDISPLAYBUFFER
#ofbufferwaits.If>0,increaseBuffersize #recoveryI/Os
Iflarge,increaseBuffersize
116 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- JournalTransactionLevel
§ Enablesdeferringjournalwriteuntilblockisfull– Fewerjournalblockswritten– FewerjournalI/Os– Betterjournalfileutilization
§ While#ofupdatetransactionexceedsjournaltransactionlevel– CVdeferswriteofjournalblockuntilitfills
117 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DatabasePerformanceIssuesJournalI/O- JournalTransactionLevelContinued
§ Journaltransactionlevelshouldbe:– 0(nodeferraloccurs)– Greaterthan3– Iftoolarge...nobenefit
§ DefinedinSYSGEN- SYSTEMstatement
§ CanbechangedatruntimewithDCMTVARYJOURNALTRANSACTIONLEVELn
§ MonitorARCHIVEJOURNALreport
118 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
0
5000
10000
15000
20000
25000
# of Journal Blocks
JTL=4 JTL=5 JTL=0 or 10
Journal Block Utilization
DatabasePerformanceIssuesJournalI/O- JournalTransactionLevelContinued
IdentifytheAvailableToolsforMonitoringandTuning
120 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringTools
§ Interactive(real-time)tools– DCMTandOPERtasks,PerformanceMonitor(PMRM,PMAM,PMRM)
§ Postprocessingtools
121 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsContinued
§ CAIDMStoolstoaidmonitoringandtuningprocess:– DC/UCFstatistics– DC/UCFlogmessages– DC/UCFjournals– Onlinefacilities– Reports– CAIDMS/DBPerformanceMonitor– CAIDMS/VisualDBA
122 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsDC/UCFStatistics
§ System(-wide)statistics- alwayscollected
§ Taskandexternalrequestunitstatistics- optional
§ Transactionstatistics- optional
§ CA-ADSdialogstatistics- optional
§ Histograms- optional
§ User-writtenstatistics- optional
123 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsSystemStatistics
§ System-widestatisticsarewrittentotheDC/UCFsystemlog:– Automaticallyatnormalsystemshutdown– Atthestatisticsintervalthatisspecifiedinthesystemgeneration
SYSTEMstatement,parameterSTATISTICSINTERVALtime– Atthestatisticsintervalrollthatisspecifiedinthesystemgeneration
SYSTEMstatement,parameterSTATISTICS ROLL TIME interval-roll-time FREQUENCY day-frequency
– OnexplicitrequestwithaDCMTWRITESTATISTICSorDCMTWRITESTATISTICSROLLcommand
124 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsSystemStatisticsContinued
§ ExampleofSystemStatisticsasfoundinaPRINTLOGoutput
125 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOtherStatistics
§ Taskandexternalrequeststatistics
§ Transactionstatistics
§ CA-ADSdialogstatistics
126 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsHistograms
§ Histogramstrackthefrequencyofspecificevents
§ Accumulatedinsystemcontrolblocksatruntime,andwrittentotheDC/UCFLogatthefollowingtimes:– Normalsystemshutdown– Thestatisticsintervalthatis establishedbytheSTATISTICS
parameter(SYSGEN)– ExplicitrequestwithDCMTWRITESTATISTICS
127 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsHistograms
§ Threetypesofhistograms:– System-widehistograms(alwayscollected)– Taskhistograms(optional)– Linehistograms(optional)
128 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsUser-WrittenStatistics
§ Implementedviauserexits
§ Allowstogaincontrolatselectedpointsinthestatistics-writingprocess
§ Examples:– IDMSSVCX(SVCexit)– Exit5(Taskterminationexit1)– Exit9(Systemstatisticsexit)– Exit15(VIBstatisticsexit)
129 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsDC/UCFLog
§ DC/UCFLogmessages– Usefulindetectingabends
130 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsDC/UCFLogContinued
§ ExampleofTaskPhotointheDC/UCFafterataskabend
131 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsDC/UCFLogContinued
§ ExampleofTaskPhotointheDC/UCFafterataskabend
132 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsDC/UCFLogContinued
§ ExampleofTaskPhotointheDC/UCFafterataskabend
133 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsJournals
§ DC/UCFJournals– Vitalcomponentfordatabaserecovery– Sourceofdatabaseactivitystatistics– ThearchivedjournalscanbeusedasinputforourJREPORTs
CentralVersion
ArchiveJournal
DiskJournals
ArchivedJournal
ReportTool
Jreport
134 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsJournalReports
§ ExampleofJournalReport1– TransactionSummary
135 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsJournalReportsContinued
§ ExampleofJournalReport2– ProgramTerminationstatistics
136 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsJournalReportsContinued
§ ExampleofJournalReport4– ProgramSummary
137 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsJournalReportsContinued
§ ExampleofJournalReport8– Formatteddump
138 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsJournalReportsContinued
§ ExampleofJournalReport8– Formatteddump(part2)
139 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilities
§ OnlinePrintLogutility(OLP)
§ MasterTerminalfacility(DCMT)
§ Operatorfacility(OPER)
§ DCProfile(DCPROFIL)
§ Lookfacility(LOOK)
§ LockMonitor(LOCKMON)
§ CAIDMSPerformanceMonitor(optional)
140 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ OnlinePrintLogutility(OLP)
141 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ DCMTcommandtoshowallofitssub-commands
142 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ DCMTHELPSEGMENTcommand
143 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ OPERTask
144 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ OPERTaskwithWATCHCPUsub-command
145 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ OPERTaskwithWATCHCRITICALRESOURCESsub-command
146 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ DCPROFILTask
147 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ DCPROFILTaskContinued
148 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ LOOKtask
149 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ LOOKtaskContinued
150 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ LOCKMONtask
151 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsOnlineFacilitiesContinued
§ LOCKMONtaskContinued
152 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsReports
§ DatabaseUtilities– PRINTSPACE– PRINTINDEX– IDMSDBAN
§ DatabaseActivity– JREPORTs
§ SystemActivity– SREPORTs
§ CAIDMSPerformanceMonitor
153 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitor
§ Overview– PerformanceMonitorisaperformanceandtuningtoolthatyoucan
usetomonitorhardwareandsoftwareresourcesthatareusedinanIDMSCentralVersion
§ BenefitsofusingCAIDMSPerformanceMonitorinclude:– Easeofuse– Windowingfacility– Applicationanddatabasemonitoring– Onlineandbatchreportingtools
154 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ Perfmonstatisticsarewrittento– TheDC/UCFlog(DDLDCLOGareaofthesystemdictionary)– TheSMFjobaccountingfile(z/OSonly)
§ OnlinecomponentsofCAIDMS/PerformanceMonitor:– TheReal-timeMonitor– TheIntervalMonitor– TheApplicationMonitor
§ Batchcomponents(reports)areaddedasmodulesintheSYSDIRLdictionaryduringinstallationoftheproduct
155 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheReal-timeMonitorinitialscreen
156 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheReal-timeMonitorSystemRunUnitSummaryscreen
157 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheReal-timeMonitorActiveUser TaskDetailscreen
158 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheReal-timeMonitorExampleofonlinehelpfacility
159 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheIntervalMonitorinitialscreen
160 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheIntervalMonitorStorageDetailscreen
161 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheApplicationMonitorinitialscreen
162 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheApplication Monitor EntitySelectionscreen
163 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheApplication Monitor EntityListscreen
164 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheApplication Monitor GeneralStasticsscreen
165 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheApplication Monitor DCStatisticsscreen
166 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/PerformanceMonitorContinued
§ TheApplication Monitor DBandWaitStatisticsscreens
167 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitor
§ IntervalMonitorReports
§ ApplicationMonitorReports
§ ConsistofanumberofstandardCACulpritmodulesthatare deliveredduringinstallation
§ Canberunusingthestatisticsthatare foundin– Anarchivedlog(ifloggingtotheDC/UCFlog)– AnextractionfromtheSMFjobaccountfile(usingPMSMFEX)
168 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMIRPT04– SummaryWaitDetailReport
169 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMIRPT11– I/OByAreaSummaryReport
170 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMIRPT13– BufferSummaryReport
171 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMIRPT18– StoragePoolSummaryReport
172 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMARPT02– TaskSummaryReport
173 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMARPT17– DatabaseDetailReport
174 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsBatchComponentsofCAIDMSPerformanceMonitorContinued
§ ExampleofPMARPT18– DatabaseSummaryReport
175 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBA
§ Overview– Easytousegraphicaluserinterface(GUI)toolforperforming:
§ Databaseadministrationandmonitoring§ Systemadministrationandmonitoring
176 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBA
§ BenefitsofusingCAIDMS/VisualDBAinclude:– Easeofuse
§ NoJCLorsyntaxknowledgerequired§ Containsextensivehelpsystem
– ReducesthelearningcurveforanewDBA– IncreasestheproductivityofanexperiencedDBA
§ AvailabletoallCAIDMSclientsatnocharge
177 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ UsesCAIDMS/ServertocommunicatewithoneormoreCentralVersions
§ ConnectionswithCentralVersionsaremadebasedonODBCDatasources
§ AllowstoconnecttomultipleCentralVersionssimultaneously
178 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ UsesmanyWindowsfeaturessuchas:– Drill-downandpop-upmenus– Tear-outWindowstocustomizeaview– Drag-and-dropandcut-and-pasteability– Tabbartoquicklyaccessawindowandothers
179 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ ManagesalmostallknownCentralVersionentitiesasobjects
180 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ InitialviewafterbeingconnectedwithaCentralVersion
181 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ ExampleofDatabaseSpaceMonitoring(classicchart)
182 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ ExampleofDatabaseSpaceMonitoring(piechart)
183 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ ExampleofDatabaseBufferMonitoring(barchart)
184 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ ExampleofStoragePoolMonitoring(piechart)
185 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSMonitoringToolsCAIDMS/VisualDBAContinued
§ ExampleofProgramPoolMonitoring(piechart)
IdentifyPotentialScarceResources
187 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IdentifyPotentialScarceResources
§ Identifyscarceresources– Reducedemandforthoseresources– Increasetheamountofthoseresourcesinthesystem
188 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Resources
§ Categoriesofsystemresources:– CPU– DASD
§ Storagespace§ Accesstostoreddata(I/O)
– Memory§ Realstorage§ Virtualstorage
189 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ResourcesContinued
§ Database-relatedresources:– DB-keylocks– Arealocks– Buffers– Journals
EstablishMonitoringProcedures
191 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
GuidelinesforEstablishingMonitoringProcedures
§ Threeareasofperformancemonitoring:– Routinemonitoringprocedures– Monitoringforperformancetroubleshooting– Applicationtestingandmonitoring
192 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RoutineMonitoringProcedures
§ Operatingsystemstatistics
§ Onlinemonitoring
§ Shutdownorintervalstatistics
§ Journalreports
§ PRINTSPACEUtilityreport
193 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RoutineMonitoringProcedures
§ PRINTSPACEUtilityreport
§ PRINTINDEXSUMMARYreport
§ DatabaseAnalysisUtilityreports(IDMSDBAN)
§ PerformanceMonitorreports
194 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MonitoringforPerformanceTroubleshooting
§ OPERWCRITLOGRCA
§ DCMTDisplaySTATistics SYSTEM
§ DCMTDisplayACTive TASK
§ DCMTDisplayTRansaction
§ OPERWatchDB
§ OPERWatchTIme
§ OLP
195 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
GuidelinesforAnalyzingCPUUsageChanges
§ Themajorareastobeexaminedare:– ChangestotheDC/UCFsystemconfiguration– Changestoexistingapplications– Additionofnewapplications– DMCLchanges– Increaseintaskabends– Changestohardwareorsoftwareenvironment– Databasebottlenecksorincreaseinotherresourcecontention
196 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
AnalyzingDC/UCFSystemConfigurationChanges
§ ThefollowingtypesofchangesaremostlikelytocauseanincreaseinCPUusage:– Increaseinstatisticscollection– Storageprotection– JOURNALRETRIEVAL– Increaseinnumberofterminals– IncreaseinMAXERUS/MAXTASK– Additionofsecurityresourceschecked– Compressionroutines(RBBs,LINES,andDBPROCs)
197 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
AnalyzingApplicationChanges
1. ApplicationchangescoincidentalwithincreaseinCPUusage
2. Frequencywithwhichapplicationsareexecuted
3. Determinewhetherthechangesinvolveadditionalwork
4. Continuetheexaminationusingapplicationmonitoringandtuningtechniques
198 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
NewApplications
§ IdentifyallnewapplicationswhoseadditiontosystemcoincideswithincreaseinCPU
§ Examineprogramstatistics
§ Examinethesystem-impacttestingresults
§ Followupwithapplication-levelmonitoringandtuningtechniques
199 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DMCLChanges
§ TypesofchangesmostlikelytoincreaseCPUusage:– Decreasethenumberofbuffersforheavy-usepool– Assignextrafilestoexistingpool
§ Totunebufferpools,youcanadopteitherofthefollowingstrategies:– Increasenumberofbufferswithinexistingpools– Changefiletobuffermappingconfiguration
TakeCorrectiveActions
201 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ExpandingtheDatabase
§ Expansionchoices:– EXPANDPAGE(increasepagesize)– EXTENDSPACE(addpagestoendofarea)– Unloadingandreloading(pagesizeandnumberofpages)
§ UNLOAD/RELOAD§ REORG
202 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
IntegratedIndexes
§ PRINTINDEXwithSUMMARYoption
§ ChecktheOrphanCountsandindexlevels
§ TUNEINDEX
§ MAINTAININDEX
203 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ProactivePerformanceandTuning
§ StayCurrentonGENLEVEL– Maintenancelevel:
§ AggregateMaintenance(endedDecember2013)§ CARecommendedServices(CARS)
§ UtilizeCASupportOnline– CheckCAIDMSProductPage– Keywordsearcheswith‘PERFORMANCE’‘CPU‘‘STORAGE’and
operatingsystemidslike‘MVS’‘OS’‘z/OS’‘VSE’‘z/VSE’
204 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ProactivePerformanceandTuning
§ PeriodicMonitoringandTuningCheckups
§ NewHardware/OpSysexploitation
205 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSOptionalProductPerformanceConsiderations
§ CAIDMS-DC
§ CAIDMSSQLOPTION
§ CAIDMSServer
206 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMS/DCPerformanceConsiderations
§ VTAM-typelinesbestoptionsare:– Compacting– PermanentReadBuffers– ExceptionProtocol– RPLCOUNT=20%ofphysicalterminals+1perprinter
207 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSSQLOptionPerformanceConsiderations
§ Singledatabasestrategy
§ Optimizer
§ NON-SQLaccess
§ EXPLAINfacility
§ UPDATESTATISTICS
208 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CAIDMSServerPerformanceConsiderations
§ ODBC/JDBCAPI
§ TCP/IPVersusCAICCI
§ IDMS/Serverr17providesODBCWireprotocolforODBC-typeConnections(ImprovedPerformance)
209 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ReferenceMaterials(allfromRelease18.5.00,exceptwhenmentionedotherwise)
§ CAIDMSDatabaseDesignGuide
§ CAIDMSDatabaseAdministrationGuide
§ CAIDMSBestPracticesGuide
§ CAIDMSSystemOperationsGuide
§ CAIDMSSystemGenerationGuide
§ CAIDMSUtilitiesGuide
210 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ReferenceMaterials(allfromRelease18.5.00,exceptwhenmentionedotherwise)
§ CAIDMSServerr17UserGuide
§ CAIDMSVisualDBAVersion18.0.00UserGuide
§ CAIDMSPerformanceMonitorAdministrationGuide
§ CAIDMSPerformanceMonitorUserGuide
211 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
CourseSummary
§ Youshouldnowbeableto:– IdentifythecomponentswithinanIDMSCentralVersion– Dealwithperformanceissues– Identifytheavailabletoolsformonitoringandtuning– Identifypotentialscarceresources– Establishmonitoringprocedures– Takecorrectiveactions
@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.212 @CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.212
MainframeandWorkloadAutomation
FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI
213 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RecommendedSessionsSESSION# TITLE DATE/TIME
MFX100S StrategyandVisionforCAIDMS 11/16/2016at12:45pm
MFX101S LegacyisnotaDirtyWord 11/16/2016at1:45pm
MFX102S CAIDMS19.0WebServicesforModernization 11/16/2016at3:00pm
MFX103S CAIDMS19.0SQLEnhancementsforModernization 11/16/2016at3:30pm
MFX104S JavaAccesstoCA-IDMSDataatBT(BritishTelecom) 11/16/2016at4:45pm
MFX105SImplementationandUseofGenericVTAMResourceswithParallelSYSPLEXFeatures(CA andCAXIA)
11/17/2016at12:45pm
MFX106S CAIDMSBufferTuning 11/17/2016at1:45pm
MFX107S M3AServicesMonitor,Measure,ManageandAlert 11/17/2016at3:00pm
MFX108S BirdsofaFeather/StumptheTechie! 11/17/2016at3:45pm
214 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MustSeeDemos
DemoNameProductXTheater#location
DemoNameServicesYTheater#location
DemoNameSolutionYTheater#location
DemoNameProductXTheater#location
215 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Questions?
216 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Thankyou.
Stayconnectedatcommunities.ca.com
217 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.
Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.
ForInformationalPurposesOnlyTermsofthisPresentation