ca idms deadlock analysis

117
World ® ’1 6 CA IDMS™ Deadlock Analysis John Siraco, Director, Software Engineering CA Technologies MFX71E MAINFRAME AND WORKLOAD AUTOMATION

Upload: ca-technologies

Post on 21-Jan-2018

289 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: CA IDMS Deadlock Analysis

World®’16

CAIDMS™DeadlockAnalysis

JohnSiraco,Director,SoftwareEngineeringCATechnologies

MFX71E

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: CA IDMS Deadlock Analysis

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

Thissessionprovidesanexplanationofthelockingprocessandthepotentialdeadlocksituationsthatmayhappen.Thematerialpresentsthemessagesgeneratedwhenadeadlockoccursandtheiruseinidentifyingtheunderlyingcauseofthedeadlockscenario.Finallysomegeneralapplicationdesignrecommendationsarediscussedtominimizetheoccurrencesofdeadlocks.ThelastthreesectionsrelatetoCPUsavingsoptions(zIIP),Multitasking,andtheuseofParallelSysplex options.

JohnSiraco

CATechnologiesDirector,SoftwareEngineering

Page 3: CA IDMS Deadlock Analysis

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

LOCKINGFUNDAMENTALS

DEADLOCKSCENARIOS

QUESTIONSANDANSWERS

LOCKINGERRORMESSAGES

DEADLOCKANALYSIS

GENERALRECOMMENDATIONS

1

2

3

4

5

6

Page 4: CA IDMS Deadlock Analysis

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ OurdatabasecontainsarecordtypenamedPRODUCTwhichcontainsafieldnamePROD-QUANTITY

§ PROD-QUANTITYrepresentsthequantityofthisproductthatisininventoryandavailabletobeshipped

Whydoweneedlocking?

PRODUCT

PROD-QUANTITY=2

Page 5: CA IDMS Deadlock Analysis

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ Tworun-unitssimultaneouslyaccessthisoccurrenceofthePRODUCTrecordwiththeintentofallocating2unitsoftheproductforshipmenttoacustomer.

§ Eachrun-unitseesthat2unitsareavailableandeachproceedtoupdatetherecordoccurrence

Whydoweneedlocking?

PRODUCT

PROD-QUANTITY=2

Rununit1

Rununit2OBTAIN OBTAIN

Page 6: CA IDMS Deadlock Analysis

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ Withoutlocking,eachrun-unitthinksithasallocated2unitsoftheproductforshipmenttoitsassociatedcustomerbutonlyatotalof2unitsexist

§ ThePROD-QUANTITYfieldissettozeroalthough2unitsmorethanavailablewereallocatedforshipment

Whydoweneedlocking?

PRODUCT

PROD-QUANTITY=0

Rununit1

Rununit2

MODIFY

MODIFY

Ships2units

Ships2units

Page 7: CA IDMS Deadlock Analysis

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ CAIDMSmaintainstwobasictypesofrecordlocks– SHAREDlocks

§ AlsoknownasRETRIEVALlocks§ Multiplerun-unitscanreadarecordoccurrenceandeachcanholdaSHAREDlockonthatoccurrence

§ Norun-unitmayacquireaSHAREDlockonarecordoccurrenceonwhichanotherrun-unithasanEXCLUSIVElock

TypesofRecordLocks

Page 8: CA IDMS Deadlock Analysis

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ EXCLUSIVElocks– AlsoknownasUPDATElocks– OnlyonerununitcanconcurrentlyholdanEXCLUSIVElockonarecord

occurrence– Norun-unitmayacquireanEXCLUSIVElockonarecordoccurrenceon

whichanotherrun-unithasaSHAREDlock

TypesofRecordLocks

Page 9: CA IDMS Deadlock Analysis

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ Lockingcontentionoccursinthefollowingscenario– Run-unit1readsthePRODUCTrecordcausingaSHAREDlocktobeset– Run-unit1thenmodifiesthePRODUCTrecordcausingitsSHAREDlock

tobeupgradedtoanEXCLUSIVElock

LockingContentions

Page 10: CA IDMS Deadlock Analysis

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

– Beforerun-unit1issuesaFINISHorCOMMITrun-unit2attemptstoreadthePRODUCTrecordoccurrencewhichtriestoestablishaSHAREDlockontheoccurrence.Thiscausesrun-unit2togointoawaituntilitcangettheSHAREDlock.

LockingContentions

PRODUCT

PROD-QUANTITY=0

Rununit1

Rununit2MODIFY OBTAIN

HoldsEXlock

WaitsonSHlock

Page 11: CA IDMS Deadlock Analysis

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingFundamentals

§ Whenrun-unit1issuesaFINISHorCOMMITitwillreleaseitsEXCLUSIVElockontherecordoccurrence

§ Run-unit2canthenacquiretheSHAREDlockanditsOBTAINcommandcanbecompleted

§ Run-unit2seesthecontentsoftherecordastheyweresetbyrun-unit1’sMODIFYcommand

LockingContentions

Page 12: CA IDMS Deadlock Analysis

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockScenarios

§ Basedonthesequenceinwhichrun-unitsaccessdatabaserecordsitispossiblethattwoormorerun-unitseachholdlocksonrecordoccurrencesrequiredbytheotherrun-unit

§ Whenthisoccursadeadlyembraceordeadlockoccursandoneoftherun-unitsmustbeabended

Page 13: CA IDMS Deadlock Analysis

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockScenarios(cont.)

§ Adeadlockoccursinourexamplewiththefollowingsequenceofevents– Run-unit1issuesanOBTAINagainstaPRODUCToccurrencecausinga

SHAREDlocktobeset– Run-unit2issuesanOBTAINagainstthesamePRODUCToccurrence

causinganotherSHAREDlocktobesetontherecord

Page 14: CA IDMS Deadlock Analysis

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockScenarios(cont.)

– Run-unit1issuesaMODIFYagainsttherecordoccurrenceandgoesintoawaituntilrun-unit2releasesitsSHAREDlock

– Run-unit2issuesaMODIFYagainstthesameoccurrenceandgoesintoawaituntilrun-unit1releasesitsSHAREDlock

– Adeadlockconditionexistsbetweenrun-units1and2andmustberesolvedbyabendingoneoftherun-units

Page 15: CA IDMS Deadlock Analysis

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PRODUCT

PROD-QUANTITY=2

Rununit1

Rununit2OBTAIN

HoldsSHAREDlock

OBTAINHoldsSHARED

lock

MODIFYWaitsforEXCLUSIVE

lock

MODIFYWaitsforEXCLUSIVE

lock

DeadlockScenarios(cont.)

Page 16: CA IDMS Deadlock Analysis

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockScenarios(cont.)

§ Deadlockscanoccurbetweenmultiplerun-unitsandinvolvemultiplerecordtypes,recordoccurrences,orotherresources

RecordA RecordB

Rununit1

Rununit2

HoldslockHoldslock

Waitsforlock

Waitsforlock

Page 17: CA IDMS Deadlock Analysis

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages

§ Whenadeadlockconditionoccurs,aclusterofmessageswillbewrittentotheCV’slog

§ OneDC001000foreachtaskinvolvedinthelockingcontention

Page 18: CA IDMS Deadlock Analysis

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages(con’t)

§ OptionallyDC001001messagescanbegeneratedprovidingadditionalinformationaboutthelockingcontention– GeneratedwhenDEADLOCK_DETAILS=ONspecifiedintheCV’s

SYSIDMSfile– Twolinespertask

§ Onelinecontainingheaders§ Secondlinecontainingtheactualdata

§ ADC001002messageindicatingthetaskthatwasabortedaspartofthedeadlockresolution

Page 19: CA IDMS Deadlock Analysis

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages(cont.)

DC001000T:852690APPCP:APXPO031C:DEADWAITINGONR:LTXNLOCK0004200900397442

DC001001Txn/RUIDRUNAMESUBSCUserIDFE- ID1FE- ID2FE- ID3FETskcdDC001001451537594APXPO031APXSS100****

DC001000T:852711ADS2P:APXD1476C:DEADWAITINGONR:LTXNLOCK00052008008BDB94

DC001001Txn/RUIDRUNAMESUBSCUserIDFE- ID1FE- ID2FE- ID3FETskcdDC001001451537611APXD1476APXSS100C087415

DC001002T:852711ADS2P:APXD1476C:DEADDEADLOCKEDONR:LTXNLOCK00052008008BDB94

Onegrouppertask

Abending task

Page 20: CA IDMS Deadlock Analysis

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages(cont.)

§ EachDC001000messagerepresentsataskthatisaparticipantinthedeadlockandiswaitingforaresource

§ Thefirst4fieldsofthemessageprovide:– Thetaskidofthewaitingtask– Thetaskcodethatinvokedthetask– Theprogramnamethatisbeingexecuted– Thestatusofthetask

Page 21: CA IDMS Deadlock Analysis

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages(cont.)

§ Thelastfieldfollowingtheliteral‘R:’providestheresourceuponwhichthetaskiswaiting

R:<Type><wwwwxxyy zzzzzzzz>

Type- LTXNLOCK LocaltransactionlockGTXNLOCK GlobaltransactionlockPAGELOCK PAGELOCK

<wwwwxxyy zzzzzzzz>

<wwww> Pagegroup<xx> Codeidentifyingthevaluein<zzzzzzzz>

‘00’ <zzzzzzzz>containsadbkey (Recordlock)‘20’ <zzzzzzzz>containsapagenumber(SpaceManagementlock)‘80’ <zzzzzzzz>containsanarea’slowpage(Arealock)‘C0’ <zzzzzzzz>containsanarea’slowpage(Transientlock)‘01’ <zzzzzzzz>containsapagenumber(Pagelock)

<yy> Dbkey radix

Page 22: CA IDMS Deadlock Analysis

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages(cont.)

§ ADC001001messageprovidesfurtherinformationtoassistinthedescriptionofthetaskdescribedintheprecedingDC001000message– Transactionid– ProgramnamefoundintheSUBSCHEMA-CONTROLwhentherun-unitwas

bound– Subschematowhichtherun-unitisbound

Page 23: CA IDMS Deadlock Analysis

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LockingErrorMessages(cont.)

§ OneDC001001messagewillbedisplayedforeachrun-unitassociatedwiththewaitingtask

§ ADC001002messageisgeneratedtoidentifythetaskthatwasabortedtoresolvethedeadlock

§ ThecontentsofaDC001002isthesameastheassociatedDC001000butthespecifiedresourcecanbeinterpretedastheresourcethatwasthefinalitemcompletingthedeadlockscenario

Page 24: CA IDMS Deadlock Analysis

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis

§ Itisextremelyrarethattheresolutionofdeadlockscanoccurbychanginganysystem-leveldefinitionswithinaCV

§ HoweverifaCVisexperiencingexcessivedeadlockstheCV’sSYSGENshouldbeexaminedforthefollowingstatements

DEADLOCKDETECTIONINTERVALIS1TICKERINTERVALIS1

§ Specifyingavalueof‘1’foreachoftheseoptionswillensurethatCAIDMSwillsearchforandresolvedeadlockconditionsassoonaspossible

Page 25: CA IDMS Deadlock Analysis

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Inanyenvironmentthatpermitsconcurrentupdatingofthedatabaseitistobeexpectedthatdeadlockswilloccur

§ Astransactionvolumeincreasessodoesthelikelihoodthatpointsofcontentionwilloccur

§ Deadlockconditionsarealmostalwaystheresultofthedatabasedesignandtimingissuesassociatedwiththewaytheapplicationnavigatesthedatabase

§ Resolutionwillusuallyrequiredatabasedesignand/orapplicationchangestoreducethepointofcontention

Page 26: CA IDMS Deadlock Analysis

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ StartyourdeadlockanalysisbyscanningtheDC001000andDC001002messageslookingforrepeatingvalues

§ Ifasingledbkey ispresentinalargepercentageofthedeadlocksyouhaveprobablylocatedamajorpointofcontentionwithintheenvironment

§ TheDC001000/DC001002messagesdonottellyouthetypeofrecordrepresentedbythedbkey

Page 27: CA IDMS Deadlock Analysis

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ UsethePRINTPAGEutilitytoprintthespecifiedpageandtoidentifythetypeofrecordinvolved

§ TheDC001000andDC001001messagescontaintheprogramandrun-unitnamesthatwereprocessingthedatabaseatthepointofthedeadlock

Page 28: CA IDMS Deadlock Analysis

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Thefollowinginnocentlookingcodecanresultinseriousdeadlockconditionswhichwouldbereflectedbyarepeatingdbkey intheassociateddeadlockmessages

OBTAINCALCORDER-CTRL.PERFORMIDMS-STATUS.MOVENEXT-ORD-NUMTOORDER-NUMBER.ADD+1TONEXT-ORD-NUM.MODIFYORDER-CTRL.PERFORMIDMS-STATUS.

Page 29: CA IDMS Deadlock Analysis

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ TheORDER-CTRLrecordiswhatisknownasaOne-Of–A-Kind(OOAK)record

§ EverytimethatanorderisaddedtothedatabaseitisnecessarytoreadthesingleORDER-CTRLrecordtogetthenextordernumbertobeassignedandtomodifytherecord

Page 30: CA IDMS Deadlock Analysis

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Largenumbersoftransactionsconcurrentlyaddingorderscangenerateexcessivedeadlockoccurrences

§ Onepossibleresolutionwouldbetodevelopanalternatemethodtogenerateanordernumber

§ Anotheroptionwouldbetosingle-threadthiscodeusingENQUEUE/DEQUEUEcommands

Page 31: CA IDMS Deadlock Analysis

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Theproblemcodeinourexamplecouldbesingle-threadedasseenbelow

ENQUEUEWAITCTRL-LOCKLENGTH8.OBTAINCALCORDER-CTRL.

PERFORMIDMS-STATUS.MOVENEXT-ORD-NUMTOORDER-NUMBER.ADD+1TONEXT-ORD-NUM.MODIFYORDER-CTRL.PERFORMIDMS-STATUS.DEQUEUECTRL-LOCKLENGTH8.

Page 32: CA IDMS Deadlock Analysis

32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Insomescenariostherepeatingresourcemaynotrepresentadbkey butapagenumber

§ Ifthevalueofthe<xx>portionoftheDC001000messageisx’20’thereisacontentionattemptingtomanipulatetheamountoffreespaceonthespecifieddatabasepage

§ UsethePAGEPRINTutilitytolistthespecifiedpage(s)todeterminethetypeofrecordsthatresideonthepage

§ UsethisinformationtoidentifytheassociatedlogicintheprogramsspecifiedontheDC001000andDC001001messages

Page 33: CA IDMS Deadlock Analysis

33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Commoncausesofthistypeoflockcontentionarethefollowing– LargevolumesofrecordswrittentoasingleDCQueueusingaPUT

QUEUEcommand– LargenumbersofrecordsdefinedasDIRECTareaddedtoanarea

alwaysusing-1asthesuggesteddbkey– Manyrecordsalwaysaddedtothesamelocationwithinanindex

§ Single-threadingthesefunctionsorfindingalternativedatabasestructuresisrequiredtoresolvethesetypesofcontentions

Page 34: CA IDMS Deadlock Analysis

34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Ifthevalueofthe<xx>componentoftheDC001000messageisanx’80’youhavecontentionontheusagemodeofadatabasearea

§ Usethepagegroupandpagenumbertoidentifytheareathatisinvolved

§ InspecttheprogramsspecifiedontheDC001000messagestodeterminehowtheyreadythearea

Page 35: CA IDMS Deadlock Analysis

35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ ThecommonprobleminthesecasesisprogramsthatattempttoreadyanareainaPROTECTEDorEXCLUSIVEmodeinanenvironmentwhereconcurrentprocessingisoccurring

§ ModifytheaffectedprogramstousedaSHAREDversionoftheREADYverb

Page 36: CA IDMS Deadlock Analysis

36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ InsomescenariostherepeatingvaluewithintheDC001000andDC001001maybeaprogramorrun-unitnames

§ Thisistypicallyanindicationthatthereisprogramlogicwithintheseprogramsthatcausescontentioninthesequenceinwhichvariousrecordsareaccessed

§ IdentifytherecordsandpagenumbersassociatedwiththeDC001000andDC001001messagesandusePRINTPAGEtoidentifythetypesofrecordsinvolved

Page 37: CA IDMS Deadlock Analysis

37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ IdentifythemostcommonsequenceofDMLcommandswithineachspecifiedprogramandlookforthosepointswherethevariousprogramlogicintersectsontherecordindicatedonthedeadlockmessages

§ Thesetypesofscenariosarebestaddressedbyapplicationstaffthatisfamiliarwiththelogicoftheprogramsinvolvedinthedeadlock

Page 38: CA IDMS Deadlock Analysis

38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ Resolutionofthesetypesofdeadlocksdependsontheoffendinglogicdiscoveredandtherequirementsoftheapplication

§ Thesetypesofdeadlockstendtobesporadicandusuallydonotgeneratelargenumbersofconcurrentdeadlockoccurrences

Page 39: CA IDMS Deadlock Analysis

39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeadlockAnalysis(cont.)

§ JREPORT008(JournalDetailReport)canbeausefulresourcetoassistindeterminingthesequenceofDMLcommandsinthesetypesofdeadlocks

§ LimityourJREPORT008executiontothosetransactionnumberslistedontheassociatedDC001001tominimizethegeneratedoutput

§ ThereportwillshowtheDMLcommandsandtheiraffecteddatabaserecordsinthesequencetheyoccur– Thiswillshowyouhowthedeadlockoccurred

Page 40: CA IDMS Deadlock Analysis

40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

GeneralRecommendations

§ Eachdeadlockscenariorepresentsauniquesetofconditionsbutthereareanumberofconsiderationsthatshouldbeobservedtominimizetheiroccurrence

§ Avoidrunningbatchupdatesduringonlinewindows– ExclusiverecordlocksarenotreleaseduntilIDMSisexplicitlytoldtodo

sothroughFINISHorCOMMITverbs– Batchupdaterun-unitsshouldincludefrequentCOMMITverbsto

periodicallyreleaselocks

§ Minimizetheamountofworkperformedbyasingleonlinetransaction

Page 41: CA IDMS Deadlock Analysis

41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

GeneralRecommendations(cont.)

§ Avoidcreatingdatabase‘hotspots’– Locateandeliminatesinglelocationswithinthedatabasethatmultiple

transactionsmustupdateconcurrently§ OOAKrecords§ DIRECTrecordsstoredusingasuggesteddbkeyof-1§ ADCqueue§ Indexstructurewherethesameorverysimilarkeyvalueisalwaysinserted

Page 42: CA IDMS Deadlock Analysis

42 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

GeneralRecommendations(cont.)

§ Avoidretainingresourcesacrosstransactionsorinteractionswithaterminaloperator– Longtermlockscanbeheldacrosstransactionsandcanlockadbkey

forlongperiodsoftime§ Theirusageshouldbeusedonlywhenabsolutelynecessary

– Don’tuseconversationaltasksthatkeepupdaterun-unitsopenwhilewaitingfortheterminaloperator’sresponse

Page 43: CA IDMS Deadlock Analysis

43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

GeneralRecommendations(cont.)

§ Stresstestchangespriortoproductionimplementation– Anymodificationthatchangesthesequenceorvolumeofupdatesto

databaserecordsshouldbestresstestedatthelargestexpectedvolumeofconcurrenttransactions

– UseathirdpartyproductforyourstresstestsuchaTPNSfromIBM

Page 44: CA IDMS Deadlock Analysis

44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

GeneralRecommendations(cont.)

§ Stresstestchangespriortoproductionimplementation– Anymodificationthatchangesthesequenceorvolumeofupdatesto

databaserecordsshouldbestresstestedatthelargestexpectedvolumeofconcurrenttransactions

– UseathirdpartyproductforyourstresstestsuchaTPNSfromIBM

Page 45: CA IDMS Deadlock Analysis

45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionSummary

§ Deadlockanalysisismoreofanartthanasciencewhichrequirestheparticipationofasite’sapplicationstaffandnotjusttheDatabaseAdministrator

§ AlthoughtheDBAmaydotheinitialanalysisofthedeadlockmessagesgeneratedbyCAIDMSitwillusuallyrequiretheapplicationdeveloper’sspecializedknowledgeoftheapplicationcodetointerpret,identify,andcorrectanyunderlyingproblems

Page 46: CA IDMS Deadlock Analysis

46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CPUSavingsOptionswithzIIP

Page 47: CA IDMS Deadlock Analysis

47 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionOverview

§ AmajorenhancementintroducedonRelease17wastheabilityofCAIDMS™toexploittheIBMzIIPspecialtyengineonthezSystem.EnhancementsmadeonthecurrentlysupportedreleasesofIDMS,versions18.5and19.0,havesignificantlyincreasedtheamountofCPUcyclesoffloadedtothezIIPspecialtyengines

Page 48: CA IDMS Deadlock Analysis

48 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionTopics

§ Termsanddefinitions§ Benefits§ Operationalconsiderations§ zIIPexploitation§ ImplementingviaCAIDMSstartupparameters§ Architecturechanges§ Eligibilityandrequirements§ EvaluatingbenefitwithoutaphysicalzIIPengine§ RealWorldexampleofbenefitoffloadingcycles

Page 49: CA IDMS Deadlock Analysis

49 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

TermsandDefinitions

§ Enclave– Anenclaveisarepresentation

ofabusinesstransactionorunitofwork

§ TCO– Totalcostofownership

§ WhiteSpace– CPCPUcyclesmadeavailable

bymovingprocessingtoazIIPprocessor

§ zIIP– IBMSystemzIntegrated

InformationProcessor§ CPorGP

– GeneralPurposeProcessor§ TCB

– OperatingSystemTaskControlBlock

§ SRB– OperatingSystemService

ControlBlock

Page 50: CA IDMS Deadlock Analysis

50 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Benefits

§ Cost/benefittradeoff– SiteswithzIIPcapacity– SitesnearingCPcapacity

§ CosttoaddazIIPversuscosttoaddaCP– Hardware(zIIPisless)

– Softwarelicensingfees(zIIPisnone)

§ BenefitofzIIPversusCP– DependsonhowmuchworkloadcanbeoffloadedtozIIP

Page 51: CA IDMS Deadlock Analysis

51 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Benefits

§ TestinghasshownbenefitsforallCAIDMSworkloadsandenvironments– CICS,CAADS™,DCCOBOL,CAIDMS™Server,etc– Aswellasvaryingmixturesoftheaboveworkloadsandenvironment– Bestconfiguration,mostCPUcyclesoffloaded,willbewhenanIDMS

systemisusedasabackend§ CICStransactions,ServerorDistributedtransactions,BatchtoCVwork(CVsideonly)

Page 52: CA IDMS Deadlock Analysis

52 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

zIIPExploitation

§ WhyzIIPs?– Lessexpensivethangeneralpurpose

processors– NosoftwarechargesforzIIP capacity– OffloadingcyclestozIIP freescycleson

CPforadditionalwork§ Deferprocessorupgrades§ Increasethroughput

GeneralPurpose Processor

near 100% busy

GeneralPurpose

Processor

zIIP

IncreaseWhiteSpaceonCPs

Page 53: CA IDMS Deadlock Analysis

53 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAIDMSzIIPExploitation

§ 100%CAIDMSsystemsupportcodeiszIIP eligible– ExecutesinSRBmode zIIPCP

CA IDMS Workload

TCBmode

SRB mode

Page 54: CA IDMS Deadlock Analysis

54 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImplementingviaCAIDMSStartupParameters

§ Controlledbystartupparameter– Startupparameters

§ zIIP=Y– UsethezIIP feature

§ zIIP=N– DonotusethezIIP feature

– DefaultifzIIP parameterisomitted

§ ImpactonExistingDialogsandPrograms:None!– Allexistingdialogs,programs

ofanylanguage,willruninanenvironmentcontainingzIIPprocessorswithoutchangeorimpact§ OtherthananoverallreductioninCPCPUusage

Page 55: CA IDMS Deadlock Analysis

55 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EligibilityandRequirements

§ Loadingofnucleusmodule,linedrivers,servicedrivers,RHDCUXIT,DBproceduresmustbefromauthorizedlibraries

§ Additionalauthorizedlibraries

§ DetailedmessagesforerrorsIDMSDC016106ZIIP=Nforced.Moduleaaaaaaaa wasloadedfromanunauthorizedlibrary

DDN=dddddddd VOLSER=vvvvvv DSN=dsname

§ Linklist andLPAassumedauthorizedunlesscodedinJCL

Page 56: CA IDMS Deadlock Analysis

56 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EligibilityandRequirements(con’t)

§ RulesforloadmoduleresidenceforzIIP– LoadmoduleexecutedtostartCAIDMSCVmustresideininan

authorizedlibrary– CAIDMSnucleusmodulesmustbeloadedfromanauthorizedlibrary– IBMLElibrarymustbeauthorizedandintheCDMSLIBconcatenation– z/OSCallableServiceslibrarymustbeinlinklistorauthorizedand

includedinSTEPLIB– DBproceduresmustresideinanauthorizedlibrary

Page 57: CA IDMS Deadlock Analysis

57 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EligibilityandRequirements(con’t)

§ Individualnucleusmembersinaloadlibrarydonothavetobeauthorized– NoteveryloadlibraryinCAIDMSstartupSTEPLIB/CDMSLIBneedsto

beauthorized

§ Toensureallnucleusmodulesareloadedfromanauthorizedlibrary– AuthorizetheSMP/Etargetloadlibraryor– MaintaintwoseparatebutidenticalSMP/Etargetzonesor– ManuallycopyallmodulesintheSMP/Etargetloadlibrarytoan

authorizedlibrary

Page 58: CA IDMS Deadlock Analysis

58 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

InformationalMessages

§ IfzIIP processorsarepresentandzIIP=NOisspecifiedortakenasthedefault– DisplayedontheJESlogveryearlyinthestartupprocess

+IDMSDC01610502zIIP processorsdetected.YoushouldconsiderusingZIIP=Y

Page 59: CA IDMS Deadlock Analysis

59 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

UnitaskingorMultitasking

§ zIIPfeatureworkswithbothUnitaskingandMultitasking

§ Unitasking– 1EnclavestartedforthesingleTCB(SCA)tobeused

§ Multitasking– 1EnclavestartedforeachTCB(SCA)tobeused

§ Doesn’tdependuponthenumberofzIIPsinstalled§ If6subtasksarestartedformultitaskingandonly1zIIPengineisavailableonthemachine,6enclavesarestarted

Page 60: CA IDMS Deadlock Analysis

60 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ArchitectureChanges

§ MajorityofchangeslimitedtotheoperatingsystemdependentmoduleRHDCOESA

§ RoutinestoswitchbetweenTCBmodeandSRBmode– SRBmoderequiredtorunonazIIP– LimitationsonwhatcanrunonazIIP(inSRBmode)

§ Can’tdoI/OorSVCfunctionsforexample§ No“usermode”code

– CAADS,COBOL,Userwrittenexits,DBprocedures,etc

§ IDMSCOMP,IDMSDCOM,andPresspackdonotswapandwillruninSRBmode

Page 61: CA IDMS Deadlock Analysis

61 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ArchitectureChanges(con’t)

§ MostoftheCAIDMSsystemcodeiseligibletoruninSRBmodeanddoes– CodewhichisnoteligibletoruninSRBmodecallsroutinesinthe

operatingsystemdependentmoduleandrequestschangetoTCBmode

– RequestsaswapbacktoSRBmodeonceTCBmodeworkiscomplete

§ When“usermode”codeisbeingexecuted– TheCAIDMSsystemensurestheusermodecodeisruninTCBmode– When“usermode”codereturnstoSystemmodethe

CAIDMSsystemwillswapbacktoSRBmode

Page 62: CA IDMS Deadlock Analysis

62 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EvaluatingBenefitWithoutaPhysicalzIIPEngine

§ Notrecommended– Thisisachangefromearlierrecommendations– IfyouturnzIIPon(zIIP=YJCLstartupparm)andyoudonothaveazIIP

engine§ IDMSwillstillattempttoswapfromTCBmodetoSRBmodeandback§ TheresultsinadditionalCPUcyclestohandletheswappingwithnobenefit

Page 63: CA IDMS Deadlock Analysis

63 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

EvaluatingBenefitWithoutaPhysicalzIIPEngine(con’t)

§ Besttoestimate– WhenIDMSisaBackendforaCICSFront-End

§ NoonlineUserprogramslikeCobol,ADS,etc– SomesiteshavereportedoffloadsofCPUcyclesinthe70to90+%range

§ OnlineUserprogramslikeCobol,ADS,etc– WillseealoweroffloadofCPUcyclesduetoswapping

– StillbeneficialsinceallIDMSSystemSupportCPUcyclesareeligibleforzIIPoffload

– IssueDCMTDSTATSYS§ LookatTotalSYSTEMCPUtime

Page 64: CA IDMS Deadlock Analysis

64 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RealWorldexampleofbenefitoffloadingcycles

Page 65: CA IDMS Deadlock Analysis

65 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RealWorldexampleofbenefitoffloadingcycles(con’t)

R17.0 R18.0 RO63129

TCBas%ofallCPU 25 50 02

SRBas% ofallCPU 75 50 98

%ofallCPUsenttozIIP 25 50 98

%ofsentzIIP runonzIIP 88 100 100

Swaps/task 1 .5 1.4

TCB(charged) cpu/task 0.0006048 0.0003516 0.0000115

Page 66: CA IDMS Deadlock Analysis

66 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RealWorldexampleofbenefitoffloadingcycles(con’t)

§ AllproductionV17CVsApril2009

§ $125K/yearreducedsoftwarecostsonV17

§ MultitaskingworkswellwithzIIPs

§ AllproductionV18CVsscheduledFebruary2012

§ $100K/yearadditionalreducedsoftwarecostsestimatedrunningV18

Page 67: CA IDMS Deadlock Analysis

67 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionSummary

§ Termsanddefinitions§ Benefits§ Operationalconsiderations§ zIIP exploitation§ ImplementingviaCAIDMSstartupparameters§ Architecturechanges§ Eligibilityandrequirements§ EvaluatingbenefitwithoutaphysicalzIIP engine§ RealWorldexampleofbenefitoffloadingcycles

Page 68: CA IDMS Deadlock Analysis

68 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Multi-TaskinginCAIDMS

Page 69: CA IDMS Deadlock Analysis

69 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionOverview

§ ThissessionfocusistheCAIDMSMultitaskingfeatureavailableforMVSandMVS-likeoperatingsystems.Topicscoveredincludeuse,monitoring,andtuning.

Page 70: CA IDMS Deadlock Analysis

70 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionTopics

§ WhatisMultitasking?

§ Considerations

§ Monitoring

§ Benefitsandcosts

Page 71: CA IDMS Deadlock Analysis

71 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatisMultitasking

§ DispatchinginaUnitaskingsystem

§ DispatchinginaMultitaskingsystem

§ Subtasks

§ Modes

§ RHDCMODE

§ CAIDMScomponentsinMPMODEANY

Page 72: CA IDMS Deadlock Analysis

72 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatisMultitasking(con’t)

§ DispatchinginaUnitaskingsystemCPU0

TASK3

#WAIT

TASK1

TASK2

#WAIT

CPU1 CPU2 CPU3 CPU4

Page 73: CA IDMS Deadlock Analysis

73 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatisMultitasking(con’t)

§ DispatchinginaMultitaskingsystem

TASK6 #WAITTASK7

TASK3

TASK10

TASK8

#WAIT

TASK1 TASK2

#WAIT

TASK4

#WAITTASK9

TASK5

#WAIT

CPU0 CPU1 CPU2 CPU3 CPU4

Page 74: CA IDMS Deadlock Analysis

74 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatisMultitasking(con’t)

§ Modes– ANY– DC– DB– USER– LOADER– DRIVER– CALLER

§ RHDCMODE(ModeManager)

§ Multitaskingis:– NotCPUdriven– Drivenbynumberoftasks

queuedforSystemServices(QueueDepth)

Page 75: CA IDMS Deadlock Analysis

75 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WhatisMultitasking(con’t)

§ CAIDMSsystemcomponentsrunninginMPMODE=ANY– Dispatcher– Task-localfunctions– Storagemanager– Scratchmanager– Databaseengine– Securityengine

Page 76: CA IDMS Deadlock Analysis

76 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Considerations

§ ApplicationProgrammingconcerns– SharedStorage

§ SystemExits(RHDCUXIT)

§ DatabaseProcedures

§ ConsiderationsfortheDBA– Programdefinitionstatement

§ MPMODEis(ANYorSYSTEM)§ ProtectvsNoProtect§ Programpoolsizes

– Affinity(Subtask)– Invoking

§ FreeformJCLparameter– MT=Y,SUBT=n

Page 77: CA IDMS Deadlock Analysis

77 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

BenefitsandCosts

§ Increasedthroughputandareductioninresponsetime

§ ThecostisaCPUincreasethatwillvaryfromsitetosite– Higherlevelofconcurrence– HandlingofMultiplesubtasks– RHDCMODE

Page 78: CA IDMS Deadlock Analysis

78 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionSummary

§ WhatisMultitasking?

§ Considerations

§ Monitoring

§ Benefitsandcosts

Page 79: CA IDMS Deadlock Analysis

79 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ParallelSysplexOptions

Page 80: CA IDMS Deadlock Analysis

80 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionOverview

§ ThissectiondiscussestheParallelSysplexfeaturesavailablewithCAIDMS.ThesefeaturesincludeSharedCache,DataSharing,DynamicRununitrouting,andCVcloning

Page 81: CA IDMS Deadlock Analysis

81 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionTopics

§ SharedCache

§ DataSharing

§ DynamicDatabaseSessionRouting

§ CVCloning

Page 82: CA IDMS Deadlock Analysis

82 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SharedCacheDefinition

§ Large,high-speedbufferinaCouplingFacility

§ ContainsdatabasepagesfromfilesassignedtothecacheandaccessedbytheCVsrunninginaSysplex

§ CornerstoneoftheCouplingFacilityfeatures

§ UsedbyAdvantage™CAIDMS®/DBDataSharingtoallowmultiplecentralversionstosimultaneouslyupdatethesamephysicaldatabase

Page 83: CA IDMS Deadlock Analysis

83 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SharedCacheImplementation

§ DefinesharedcachetotheCouplingFacility

STRUCTURENAME(IDMSSUPPCACHE002) SIZE(5120)PREFLIST(COUPLET1)

Page 84: CA IDMS Deadlock Analysis

84 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SharedCacheImplementation(con’t)

§ DMCLDefinition

ALTERDMCLR170DMCLINCLUDESEGMENTDBCRDEFAULTSHAREDCACHEIDMSSUPPCACHE002

Page 85: CA IDMS Deadlock Analysis

85 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SharedCacheImplementation(con’t)

§ DMCTVARYcommands

DCMTVARYSEGMENTNAMESHAREDCACHENAME/NODCMTVARYFILENAMESHAREDCACHENAME/NODCMTVARYAREANAMESHAREDCACHENAME/NODCMTVarySHAred CAche cache-nameON/OFf

Page 86: CA IDMS Deadlock Analysis

86 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SharedCacheTuningandMonitoring

§ Tuning– Increasesharedcachesize– Defineadditionalsharedcache

§ Monitoring– DCMT– AdvantageCAIDMSDatabasePerformanceMonitorOption– SREPORTS

Page 87: CA IDMS Deadlock Analysis

87 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingDefinition

§ Adatasharinggroup– NamedcollectionofAdvantageCAIDMS/DBsystemswithinasysplex– EachAdvantageCAIDMS/DBsystemassociatedwithadatasharing

groupisreferredtoasamemberofthatgroup

§ Datasharinganddatasharinggroupsarethemechanismsthatallowfilestobeopeninupdatemodebyalldesignatedcentralversions

§ Actualfiledataismaintainedinthesharedcachediscussedearlier

Page 88: CA IDMS Deadlock Analysis

88 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingImplementation

§ EachdatasharinggrouprequiresthedefinitionofaliststructureandalockstructureintheCouplingFacility

§ Oneormorecachestructuresmustbedefinedifthedatasharinggroupistoshareupdateaccesstodata

§ DefinitioninDMCL– Defaultdatasharingattribute– Segmentorfiledatasharingattribute

Page 89: CA IDMS Deadlock Analysis

89 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingImplementation(con’t)

§ Actuallistandlockstructuredefinitions:– STRUCTURENAME(CAIDMSSUPPGRP1LI)SIZE(4096)

PREFLIST(COUPLET1)– STRUCTURENAME(CAIDMSSUPPGRP1LK)SIZE(5120)

PREFLIST(COUPLET1)– SizesareinKbytes

Page 90: CA IDMS Deadlock Analysis

90 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingImplementation(con’t)

§ DMCLdefinition:ALTERDMCLR170DMCLDATASHARINGDEFAULTSHAREDCACHEIDMSSUPPCACHE002

LOCKENTRIES100000MEMBERS5ONCONNECTIVITYLOSSNOABEND

INCLUDESEGMENTDBCR

DATASHARINGYES

DEFAULTSHAREDCACHEIDMSSUPPCACHE002

Page 91: CA IDMS Deadlock Analysis

91 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingImplementation(con’t)

§ EachmemberofthedatasharinggrouprequiresSYSIDMSdefinitionwith:– DSGROUP– DCNAME

//SYSIDMSDD*DSGROUP=SUPPGRP1DCNAME=TECHD120

Page 92: CA IDMS Deadlock Analysis

92 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharing

§ SystemManagedRebuild– ForplannedreconfigurationsoftheCouplingFacility

§ SystemManagedDuplexRebuild– ProvidesCouplingFacilityfailurerecoverycapability

§ Monitoring– DCMTcommands– AdvantageCAIDMSPerformanceMonitor– JREPORTS

Page 93: CA IDMS Deadlock Analysis

93 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CouplingFacilityStructures

§ AdvantageCAIDMSVisualDBA– Modelingtool– UsesCV’sDMCLdefinition– GeneratesCouplingFacility-readysyntaxfor:

§ Cache,List,andLockstructures

Page 94: CA IDMS Deadlock Analysis

94 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DataSharingBenefits

§ 24X7processing– FaultTolerance– SystemMaintenance

§ Scalability– AdditionalCVshaveupdateaccesstofiles

§ Workloadbalancing– AdditionalupdateCVscanbestartedandstoppedasneedschange;

workmaybeprocessedbyanyCVdefinedinthedatasharinggroup

§ Easytoimplementanduse

Page 95: CA IDMS Deadlock Analysis

95 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingDefinition

§ ProvidesWorkloadbalancingbetweenAdvantageCAIDMS/DBsystemsrunningintheSysplex.

§ Workloadbalancingisdynamicandbasedonactualsystemload

Page 96: CA IDMS Deadlock Analysis

96 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

§ DBGROUPs

§ BackendDefinitions– AddDBGROUPstatement(s)toDatabaseNameTable– Use“CREATEDBGROUP”statementstoassigntheBackend(s)toa

DBGROUP(S)

CREATE DBGROUP R170DBTB.SPGROUP1 ENABLED

Page 97: CA IDMS Deadlock Analysis

97 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

§ DBGROUPs

§ FrontendDefinitions– YoumustdefinetheDBGROUPasanodewithintheSYSGEN

ADD NODE SPGROUP1 GROUP DEFAULT NODE TECHD120

– YoucanoptionallymapaDBNAMEtoagroupbyusingtheVIA“GROUPNAME”parameteroftheResourceTablestatementwithinSYSGEN

MODIFY RESOURCE TABLEDBNAME IS DBCR VIA SPGROUP1

Page 98: CA IDMS Deadlock Analysis

98 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

§ CouplingFacilityconsiderations– DefineaCouplingFacilitystructurefor

eachDBGroup definedtoAdvantageCAIDMS/DB

– PrefixDBGroup namewith"CAIDMS”– SizeisinKbytes– Example:

STRUCTURE NAME(CAIDMSSPGROUP1) SIZE(512PREFLIST(COUPLET1)

Page 99: CA IDMS Deadlock Analysis

99 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

§ Workwillbedynamicallyroutedwhenoneorbothofthefollowingaretrue:– TheDBNODEusedisdefinedasagroupviatheNODEstatementof

SYSGEN– TheDBNAMEusedisdefinedintheResourceTableasaGroup

§ TheDBNAMEand/ortheDBNODEaresetby– Theapplication– ViaaDCUFSETcommand– ViaEXIT23

Page 100: CA IDMS Deadlock Analysis

100 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

TITLE'EXIT23- PREBINDEXIT‘XIT23 #MOPTENV=SYS,AMODE=31,RMODE=ANYXIT23 CSECTXIT23EP1 #STARTMPMODE=ANY

USINGCSA,R10LR2,4(,R1)40BYTEDATAAREAUSINGPARMAREA,R2CLCPSSCNAME(4),=CL4'DBCR'ISTHISFORDBCRBNERETURNNO!JUSTEXITMVCPDBNODE,=CL8'SPGROUP1'OVERRIDEDBNODE

*** MVCPDBNAME,=CL8'DBCR'orOVERRIDEDBNAMERETURN#RTNRETURNTOCALLER

LTORG

Page 101: CA IDMS Deadlock Analysis

101 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

COPY#CSADS

PARMAREADSECT

PSSCNAMEDSCL8SSCNAME

PDBNODEDSCL8DATABASENODE

PDBNAMEDSCL8DATABASENAME

PDICNODDSCL8DICTIONARYNODE

PDICNAMDSCL8DICTIONARYNAME

END

Page 102: CA IDMS Deadlock Analysis

102 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession- RoutingImplementation

§ Monitoring– DCMTcommands– LOOK– AdvantageCAIDMSPerformanceMonitor’sIntervalComponent(online

andBatch)

Page 103: CA IDMS Deadlock Analysis

103 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicDatabaseSession– RoutingBenefits

§ 24X7processing– FaultTolerance– SystemMaintenance

§ Scalability– AdditionalCVshaveupdateaccesstofileswhenusedwithdatasharing

§ Dynamicworkloadbalancing– AdditionalCVscanbestartedandstoppedasneedschange;workis

routedtootherCVsdefinedintheDBGroup

§ Easytoimplementanduse

Page 104: CA IDMS Deadlock Analysis

104 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CVCloningDefinition

§ AllowsyoutostartmultipleCVsthatarecopies(clones)ofanexistingAdvantageCAIDMS/DBsystem

§ Systemdefinitionandfiles– Samephysicalentitiesasthesystembeingclonedwithafewexceptions

Page 105: CA IDMS Deadlock Analysis

105 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CVCloningNamingConventions

§ CVNumber,DCSystemNumber,VTAMAPPLID,andSystemNodeNameforaCVmustconformtospecificnamingconventions

§ Byadheringtothesenamingconventions,AdvantageCAIDMS/DBcanimplementcloneswithoutgeneratingmultiplephysicalcopiesofasystemdefinition

Page 106: CA IDMS Deadlock Analysis

106 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CVCloningNamingConventions(con’t)

§ DCsystemnumbermustmatchCVnumber

§ Mustbeinrangeof0through255

§ AllVTAMApplids mustfollowtheconventionofxxxxxnnn– xxxxx canbeanyfivecharacters– nnn isthesysgenned CVnumberandisoverlaidatruntimewiththe

numberdeterminedduringstartupoftheclonedCV

Page 107: CA IDMS Deadlock Analysis

107 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CVCloningNamingConventions(con’t)

§ AdvantageCAIDMS/DBsystemnodenamesmustfollowtheconventionofyyyyynnn– wherethefirstfivecharacters(i.e.,yyyyy)canbeanycharactersyou

needtomakethenameuniquewithinyourenvironment– nnn isthenumberspecifiedfortheCVatsystemgeneration

SYSGEN17.0ONLINEPAGE1LINE1DICT=SYSTEMADDSYSTEM120SYSTEMIDISTECHD120CVNUMBERIS120ADDLINEVTAMAPPLICATIONIDISA31II120

Page 108: CA IDMS Deadlock Analysis

108 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CVCloning

§ SpecialFileRequirements– EachclonedCVrequiresitsowncopyofthefollowingfiles:

DDLDCLOG,DDLDCSCR,DDLDCQUE,AllJournals

Page 109: CA IDMS Deadlock Analysis

109 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CVCloning(con’t)

§ Usethe“CLON=“and“CLONES=“parameterintheJCLparmfortheIDMSsystemstartup.

//R170DC99EXECPGM=IDMSDC99,REGION=0K,TIME=1440,//PARM='S=110,CLON=Y,CLONES=9”

§ Whenusedinadatasharinggroup,aclonemayhaveupdateaccesstoalldatabasefiles

Page 110: CA IDMS Deadlock Analysis

110 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CloningBenefits

§ 24X7processing– FaultTolerance– SystemMaintenance

§ Scalability– AdditionalCVshaveupdateaccesstofileswhenusedwithdatasharing

§ Dynamicworkloadbalancing– AdditionalCVscanbestartedandstoppedasneedschange;workis

routedtootherCVsdefinedintheDBGroup§ EasywaytoaddadditionalCVs§ NoadditionalsystemdefinitionsfortheDBAtomaintain

Page 111: CA IDMS Deadlock Analysis

111 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SectionSummary

§ SharedCache

§ DataSharing

§ DynamicDatabaseSessionRouting

§ CVCloning

Page 112: CA IDMS Deadlock Analysis

@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.112 @CAWORLD#CAWORLD

MainframeandWorkloadAutomation

FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI

Page 113: CA IDMS Deadlock Analysis

113 ©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 JavaAccesstoCAIDMSDataatBT(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

Page 114: CA IDMS Deadlock Analysis

114 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MustSeeDemos

DemoNameProductXTheater#location

DemoNameServicesYTheater#location

DemoNameSolutionYTheater#location

DemoNameProductXTheater#location

Page 115: CA IDMS Deadlock Analysis

115 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 116: CA IDMS Deadlock Analysis

116 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com

Page 117: CA IDMS Deadlock Analysis

117 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ThispresentationwasbasedoncurrentinformationandresourceallocationsasofMay2016andissubjecttochangeorwithdrawalbyCAatanytimewithoutnotice.Notwithstandinganythinginthispresentationtothecontrary,thispresentationshallnotserveto(i)affecttherightsand/or obligationsofCAoritslicenseesunderanyexistingorfuturewrittenlicenseagreementorservicesagreementrelatingtoanyCAsoftwareproduct;or(ii)amendanyproductdocumentationorspecificationsforanyCAsoftwareproduct.Thedevelopment,releaseandtimingofanyfeaturesorfunctionalitydescribedinthispresentationremainatCA’ssolediscretion.Notwithstandinganythinginthispresentationtothecontrary,uponthegeneralavailabilityofanyfutureCAproductreleasereferencedinthispresentation,CAwillmakesuchreleaseavailable(i)forsaletonewlicenseesofsuchproduct;and(ii)toexistinglicenseesofsuchproductonawhenandif-availablebasisaspartofCAmaintenanceandsupport,andintheformofaregularlyscheduledmajorproductrelease.Suchreleasesmaybemadeavailabletocurrentlicenseesofsuchproduct whoarecurrentsubscriberstoCAmaintenanceandsupportonawhenandif-availablebasis. Intheeventofaconflictbetweenthetermsofthisparagraphandanyotherinformationcontainedinthispresentation,thetermsofthisparagraphshallgovern.

CertaininformationinthispresentationmayoutlineCA’sgeneralproductdirection.Allinformationinthispresentationis foryourinformationalpurposesonlyandmaynotbeincorporatedintoanycontract.CAassumesnoresponsibilityfortheaccuracyorcompletenessoftheinformation.Totheextentpermittedbyapplicablelaw,CAprovidesthispresentation“asis”withoutwarrantyofanykind,includingwithoutlimitation,anyimpliedwarrantiesormerchantability,fitnessforaparticularpurpose,ornon-infringement.InnoeventwillCAbeliableforanylossordamage,directorindirect,fromtheuseofthisdocument,including,withoutlimitation,lostprofits,lostinvestment,businessinterruption,goodwill,orlostdata,evenifCAisexpresslyadvisedinadvanceofthepossibilityofsuch damages.CAconfidentialandproprietary.Nounauthorizedcopyingordistributionpermitted.

FORINFORMATIONPURPOSESONLY

TermsofthisPresentation