SlideShare a Scribd company logo
Министарство Финансија
Управа царина
Сектор за информационе технологије




          Marko Denda
          dendama@carina.rs
   UC z/800

   WLM & CICS

   DB2 BP izmene i RUNSTAT

   Preporuke i dobra praksa

   Pitanja ???


                               Mart 2012
   Procesor tehnološki zastareo (2004), 2 CP-a
    160 MIPS-a 28MSU-a,6GB mem.za produkciju,
    bez spec. CP-a
   SW iz 2006. godine (bez PTF support-a)
    ◦ z/OS 1.7
    ◦ CICS 3.1
    ◦ DB2 v8.1
   Instalirani SW više nije podržan (PTF)
   Aplikacije (CSP      VAGEN      EGL cobol)



                                   Mart 2012
   Distribuirana obrada između z/800 i AS/400
    ◦ CPIM transakcija (5000 txn, 4h prosek)
      AS/400        HOST, sinhronizacija podataka
                     paketna obrada, two-phase-commit

    ◦ ACP transakcija (120.000 txn, 4h prosek)
      HOST        AS/400 , e-JCI, slanje dokumenata slog po
                   slog , two-phase-commit

    ◦ ELA0 transakcija (10.000 txn, 4h prosek)
      Korisničke aplikacije, sve bind-ovane u jedan plan,
       UC korisnici obrada i pregledi direktno na HOST-u



                                          Mart 2012
   Sve veća potreba za CICS on-line obradama
   Asinhrona komunikacija (SOD, EOD) svedena
    na minimum.
   Od 2007 pored standardnog workload-a :
    ◦   XML – MQ obrade
    ◦   XML – stored procedure
    ◦   XML – LOB TS
    ◦   DDF aplikacije (C#) , potreba otvaranja informacija
        ka privredi




                                          Mart 2012
   Počeci problema :
    ◦ Test i produkciono okruženje na istom LPAR-u
    ◦ WLM definicije nisu menjane i usklađivane sa
      promenom workload-a
    ◦ Većina podstistema pod SYSSTC srv klasom
    ◦ BATCH job-ovima i tso korisnicima(sysadmin)
      dodeljivane srv klase sa garantovanim 500su/s
    ◦ Aplikacije – konverzacijske, dostizan thread
      limit,veliki broj lokova (i dead-lokova)
    ◦ Svi DB2 diskovi (data i index) na istom LCU-u



                                      Mart 2012
   Novembar / Decembar 2011
    ◦ CPU 95% -100% od 8.00h – 16.00h
    ◦ CICS transakcije : veliki response time
    ◦ Otežan rad UC službenicima na HOST-u (na
      pojedine CICS upite čeka se duže od 30min!!!)
    ◦ Distribucija podataka i sinhronizacija podataka sa
      terenom otežana
    ◦ Help-desk i sistemska služba pod konstantim
      pritiskom carinskih službenika i špeditera




                                        Mart 2012
100
                                                                                    120




                       0
                           20
                                40
                                                   60
                                                                         80
            00.00.00
            00.30.00
            01.00.00
            01.30.00
            02.00.00
            02.30.00
            03.00.00
            03.30.00
            04.00.00
            04.30.00
            05.00.00
            05.30.00
            06.00.00
            06.30.00
            07.00.00
            07.30.00
            08.00.00
            08.30.00
            09.00.00
            09.30.00
            10.00.00
            10.30.00
            11.00.00
            11.30.00
            12.00.00
            12.30.00
                                                                                          CPU% 2011 pre optimizacije




            13.00.00
            13.30.00
            14.00.00
Mart 2012
            14.30.00
            15.00.00
            15.30.00
            16.00.00
                                     7.12.2011
                                                 6.12.2011
                                                             5.12.2011
   Decembar 18-20 2011
    ◦ WLM
      CICS sa TRANSACTION na REGION mode , Imp.1
       vel.70,classification rules STC
      WLM ne uima u obzir prioritete definisane za CICS
       transakcije u class.rule-ovima
      Prioritet transakcijama definisan u CICS-u
      DB2 AS-ovi vraćeni pod okrilje WLM-a osim IRLM-a!!!
      DB2 V8.Imp.1 vel.85, DB2 veliki disp. priority
     Preporuka :
     - DB2 V9 DSNDBM1 ostaviti pod WLM-om, DSNMSTR
     mora biti SYSSTC



                                        Mart 2012
CPU % Dec. 2011 WLM izmene
120



100



 80



 60                                     18.12.2011

                                        19.12.2011

 40                                     20.12.2011



 20



  0




                            Mart 2012
   Januar / Februar 2012

      CPU % i dalje visok, prvi put posle dužeg vremena sve
       transakcije rade, response time bi mogao biti bolji

      Većina prenosa podataka ka terenu prebačeno na
       asinhron način prenosa (SOD na 1 sat, NDM)




                                         Mart 2012
   Januar / Februar 2012

      Preraspodela Buffer Pool-ova :
          BP0   DB2 katalog
          BP1   data BP
          BP2   index BP
          BP3   sort BP (VPSEQT=96%, 4-5% osaviti za random access)
          BP4   LOB TS BP !!!




                                               Mart 2012
   Januar / Februar 2012
      Buffer Pool-ovi :

     - ALTER BP PGFIX (YES) – Long term page fix
        DB2 i z/OS koriste isti LRU algoritam
        Što veći BP I/O veća korist od PGFIX(YES) atributa
        DB2 warning DSNB541I , ukoliko DB2 BP storage dostigne
         80% iskrišćenja ukupne realne memorije : DB2 ignore
         PGFIX(YES)
        Smanjenje CPU potrošnje(10-20%)
        Bolje iskorišćenje BP-ova




                                           Mart 2012
   Januar / Februar 2012

      RUNSTAT DB2 kataloga (nije rađen od 2007!!!, smanjen broj
       lokova, nema više dead-lock-ova)

      Novi DEFAULT za RUNSTAT :
       TABLE (ALL)
       INDEX (ALL KEYCARD)
       HISTORY (ALL)

     KEYCARD :
     additional column correlation information for indexes with keys
     comprised of more than two columns !!!




                                               Mart 2012
100
                                                                                    120




                       0
                           20
                                40
                                                   60
                                                                         80
            00.00.00
            00.30.00
            01.00.00
            01.30.00
            02.00.00
            02.30.00
            03.00.00
            03.30.00
            04.00.00
            04.30.00
            05.00.00
            05.30.00
            06.00.00
            06.30.00
            07.00.00
            07.30.00
            08.00.00
            08.30.00
            09.00.00
            09.30.00
            10.00.00
            10.30.00
            11.00.00
            11.30.00
            12.00.00
            12.30.00
                                                                                          CPU% 2011 pre optimizacije




            13.00.00
            13.30.00
            14.00.00
Mart 2012
            14.30.00
            15.00.00
            15.30.00
            16.00.00
                                     7.12.2011
                                                 6.12.2011
                                                             5.12.2011
CPU% nakon otimizacije
70


60


50


40                                    20.3.2012

                                      22.3.2012
30
                                      23.3.2012

20


10


 0




                          Mart 2012
   WLM postaviti što realnije gole-ove
   DB2 BP preraspodela , monitoring
   DB2 BP PGFIX(YES) !!!
   RUNSTAT DB2 kataloga bar jednom godišnje
   RUNSTAT DB2 INDEX(ALL) KEYCARD
   Optimizacija upita, pronalaženje aplikacijskih
    uskih grla (CICS APA, DB2 WorkloadTuner)




                                  Mart 2012
PITANJA ?

      Mart 2012
HVALA !

     Mart 2012

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Uc optimizacija

  • 1. Министарство Финансија Управа царина Сектор за информационе технологије Marko Denda dendama@carina.rs
  • 2. UC z/800  WLM & CICS  DB2 BP izmene i RUNSTAT  Preporuke i dobra praksa  Pitanja ??? Mart 2012
  • 3. Procesor tehnološki zastareo (2004), 2 CP-a 160 MIPS-a 28MSU-a,6GB mem.za produkciju, bez spec. CP-a  SW iz 2006. godine (bez PTF support-a) ◦ z/OS 1.7 ◦ CICS 3.1 ◦ DB2 v8.1  Instalirani SW više nije podržan (PTF)  Aplikacije (CSP VAGEN EGL cobol) Mart 2012
  • 4. Distribuirana obrada između z/800 i AS/400 ◦ CPIM transakcija (5000 txn, 4h prosek)  AS/400 HOST, sinhronizacija podataka paketna obrada, two-phase-commit ◦ ACP transakcija (120.000 txn, 4h prosek)  HOST AS/400 , e-JCI, slanje dokumenata slog po slog , two-phase-commit ◦ ELA0 transakcija (10.000 txn, 4h prosek)  Korisničke aplikacije, sve bind-ovane u jedan plan, UC korisnici obrada i pregledi direktno na HOST-u Mart 2012
  • 5. Sve veća potreba za CICS on-line obradama  Asinhrona komunikacija (SOD, EOD) svedena na minimum.  Od 2007 pored standardnog workload-a : ◦ XML – MQ obrade ◦ XML – stored procedure ◦ XML – LOB TS ◦ DDF aplikacije (C#) , potreba otvaranja informacija ka privredi Mart 2012
  • 6. Počeci problema : ◦ Test i produkciono okruženje na istom LPAR-u ◦ WLM definicije nisu menjane i usklađivane sa promenom workload-a ◦ Većina podstistema pod SYSSTC srv klasom ◦ BATCH job-ovima i tso korisnicima(sysadmin) dodeljivane srv klase sa garantovanim 500su/s ◦ Aplikacije – konverzacijske, dostizan thread limit,veliki broj lokova (i dead-lokova) ◦ Svi DB2 diskovi (data i index) na istom LCU-u Mart 2012
  • 7. Novembar / Decembar 2011 ◦ CPU 95% -100% od 8.00h – 16.00h ◦ CICS transakcije : veliki response time ◦ Otežan rad UC službenicima na HOST-u (na pojedine CICS upite čeka se duže od 30min!!!) ◦ Distribucija podataka i sinhronizacija podataka sa terenom otežana ◦ Help-desk i sistemska služba pod konstantim pritiskom carinskih službenika i špeditera Mart 2012
  • 8. 100 120 0 20 40 60 80 00.00.00 00.30.00 01.00.00 01.30.00 02.00.00 02.30.00 03.00.00 03.30.00 04.00.00 04.30.00 05.00.00 05.30.00 06.00.00 06.30.00 07.00.00 07.30.00 08.00.00 08.30.00 09.00.00 09.30.00 10.00.00 10.30.00 11.00.00 11.30.00 12.00.00 12.30.00 CPU% 2011 pre optimizacije 13.00.00 13.30.00 14.00.00 Mart 2012 14.30.00 15.00.00 15.30.00 16.00.00 7.12.2011 6.12.2011 5.12.2011
  • 9. Decembar 18-20 2011 ◦ WLM  CICS sa TRANSACTION na REGION mode , Imp.1 vel.70,classification rules STC  WLM ne uima u obzir prioritete definisane za CICS transakcije u class.rule-ovima  Prioritet transakcijama definisan u CICS-u  DB2 AS-ovi vraćeni pod okrilje WLM-a osim IRLM-a!!!  DB2 V8.Imp.1 vel.85, DB2 veliki disp. priority Preporuka : - DB2 V9 DSNDBM1 ostaviti pod WLM-om, DSNMSTR mora biti SYSSTC Mart 2012
  • 10. CPU % Dec. 2011 WLM izmene 120 100 80 60 18.12.2011 19.12.2011 40 20.12.2011 20 0 Mart 2012
  • 11. Januar / Februar 2012  CPU % i dalje visok, prvi put posle dužeg vremena sve transakcije rade, response time bi mogao biti bolji  Većina prenosa podataka ka terenu prebačeno na asinhron način prenosa (SOD na 1 sat, NDM) Mart 2012
  • 12. Januar / Februar 2012  Preraspodela Buffer Pool-ova :  BP0 DB2 katalog  BP1 data BP  BP2 index BP  BP3 sort BP (VPSEQT=96%, 4-5% osaviti za random access)  BP4 LOB TS BP !!! Mart 2012
  • 13. Januar / Februar 2012  Buffer Pool-ovi : - ALTER BP PGFIX (YES) – Long term page fix  DB2 i z/OS koriste isti LRU algoritam  Što veći BP I/O veća korist od PGFIX(YES) atributa  DB2 warning DSNB541I , ukoliko DB2 BP storage dostigne 80% iskrišćenja ukupne realne memorije : DB2 ignore PGFIX(YES)  Smanjenje CPU potrošnje(10-20%)  Bolje iskorišćenje BP-ova Mart 2012
  • 14. Januar / Februar 2012  RUNSTAT DB2 kataloga (nije rađen od 2007!!!, smanjen broj lokova, nema više dead-lock-ova)  Novi DEFAULT za RUNSTAT : TABLE (ALL) INDEX (ALL KEYCARD) HISTORY (ALL) KEYCARD : additional column correlation information for indexes with keys comprised of more than two columns !!! Mart 2012
  • 15. 100 120 0 20 40 60 80 00.00.00 00.30.00 01.00.00 01.30.00 02.00.00 02.30.00 03.00.00 03.30.00 04.00.00 04.30.00 05.00.00 05.30.00 06.00.00 06.30.00 07.00.00 07.30.00 08.00.00 08.30.00 09.00.00 09.30.00 10.00.00 10.30.00 11.00.00 11.30.00 12.00.00 12.30.00 CPU% 2011 pre optimizacije 13.00.00 13.30.00 14.00.00 Mart 2012 14.30.00 15.00.00 15.30.00 16.00.00 7.12.2011 6.12.2011 5.12.2011
  • 16. CPU% nakon otimizacije 70 60 50 40 20.3.2012 22.3.2012 30 23.3.2012 20 10 0 Mart 2012
  • 17. WLM postaviti što realnije gole-ove  DB2 BP preraspodela , monitoring  DB2 BP PGFIX(YES) !!!  RUNSTAT DB2 kataloga bar jednom godišnje  RUNSTAT DB2 INDEX(ALL) KEYCARD  Optimizacija upita, pronalaženje aplikacijskih uskih grla (CICS APA, DB2 WorkloadTuner) Mart 2012
  • 18. PITANJA ? Mart 2012
  • 19. HVALA ! Mart 2012