Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright 2013 BDS3 with use by agreement – DBI and CODUG Trifecta MSP/MLK ORD 2014/6/3-5 75 Ways to SAVE IO & 25 Ways to Save CPU Lee Goddard DBI Software.

Similar presentations


Presentation on theme: "Copyright 2013 BDS3 with use by agreement – DBI and CODUG Trifecta MSP/MLK ORD 2014/6/3-5 75 Ways to SAVE IO & 25 Ways to Save CPU Lee Goddard DBI Software."— Presentation transcript:

1 Copyright 2013 BDS3 with use by agreement – DBI and CODUG Trifecta MSP/MLK ORD 2014/6/3-5 75 Ways to SAVE IO & 25 Ways to Save CPU Lee Goddard DBI Software 2013-11-19 | Platform: LUW

2 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Disclaimer All is my opinion… take it for what it’s worth… Your mileage will vary Facts only valid just prior to writing them down… Study on Retaining Information: See or hear = 20-30% Discuss = 70% Teach = 90-95% 2

3 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Agenda Session Objectives Introduction Not just a checklist but a systematic methodology for profiling your system and then ATTACKING the problem How do I save I/O – 75 Ways Discussion System, Storage, Middleware (incl. DB) How do I save CPU – 25 Ways Discussion System, Storage, Middleware (incl. DB) 3

4 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Session Objectives Demonstrate a Systematic Methodology for profiling your system Discuss issues Provide a roadmap / checklist to SAVE resources CPU Memory I/O Time Energy Upgrades Software costs … and more 4

5 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Background, Role and Contact Information  Lee Goddard Indiana, USA  Served 26+ years IBM  Executive / Sr. Certified Consulting SWIT Specialist) and Team Lead Midwest BI Best Practice Team and Team Lead for IM Tech Team  Last 2+ decades, Lee led > 200 clients projects  w/80+ being Terabyte Class 4 + 12 Petabyte level designs  Certified IBM Teraplex VLDB Integration Specialist – Certified in HW, SW, & Svc w/ Info. Mgmt. and AIX tech certs  Currently: Chief Performance Architect at DBI Software  www.linkedin.com/in/leegoddardin/ www.linkedin.com/in/leegoddardin/  Lee.Goddard@dbiSoftware.com petabytedw@yahoo.com Lee.Goddard@dbiSoftware.com 5

6 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Who is in the Audience??? DBA’s? Architects? Managers? CXX? Performance > 30% of job? 6

7 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Who is using a Virtualized Environments???? LPARs? zLinux? IFLs? VMWare? Microsoft? Others? 7

8 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 DB2Night Show™ How many know about DBI’s free DB2 educations on the DB2Night Show™? How many people know about the replays? How many people know about the LUW and DB2 on z? 8

9 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 DB2Night Show™ Hundreds of hours of Free Education 9 SEASON #5: Schedule and Registration Links 15 Shows Scheduled for Season 5! LUW (119) and DB2 for zOS (41) http://www.dbisoftware.com/db2nightshow/ Replays: almost 400,000 downloads! http://www.dbisoftware.com/blog/db2nightshow.php

10 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 What are the performance issues? Ref: DB2Night Show™ 10

11 Copyright 2013 BDS3 with use by agreement – DBI and CODUG Trifecta MSP/MLK ORD 2014/6/3-5 Taming the Data Tsunami: 17 Laws of Building Petabyte Level DB Systems & excerpts from: I like Big Data and I Cannot Lie… Getting Your Arms Around the Chaos Lee GoddardDB2Night Show™ dbi SoftwareSeason 5 - #118 Also - IDUG Australia 2013: Session Code: C12 ½ Day Workshop 2013-9-12 8:30-12:30 | Platform: LUW – I (Rm 11.03) Shameless Plug

12 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 17 Laws of Building Terabyte Class DB Systems 1.3 Absolutes 2.Requirements need to be well understoodRequirements need to be well understood 3.Governance, sponsorship and funding mattersGovernance, sponsorship and funding matters 4.You cannot boil the ocean 5.You can only compress time so far 6.3 Most Important things in MPP (Scalability)3 Most Important things in MPP (Scalability) 7.I/O Subsystem mattersI/O Subsystem matters 8.Crayne's Law 9.3 things clients always ask

13 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 17 Laws of Building TB Class DB Sys. (cont.) 10. There will be speed bumpsThere will be speed bumps 11. Few uses FS compression or near line storageFew uses FS compression or near line storage 12. The Moose on the table 13. Balanced Configuration Unit (BCU) 14. Be:Proactive, continual and methodic capacity planning mattersProactive, continual and methodic capacity planning matters 15. Organization mattersOrganization matters 16. Relationships matters 17. Leadership matters

14 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Observations: As leaders in the industry…. WE need to do more faster… WE need more test systems! WE need more research projects WE need more testing and discipline and less WE need to collect value of a transaction & costs WE need to mentor more WE need to write and give back more WE need to grow more SKILLS! … AND NOT settle for ‘black boxes’ e.g. Storage … “You don’t understand, the Storage guy works for another manager and another agenda” 14

15 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 First you need a plan… a process… a roadmap! 1.Triage which system first 2.Determine what needs to be fixed on that system Sort and fix the ‘BIG ROCKs FIRST!” 3.Fix the issue! 15

16 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 First you need a plan… a process… a roadmap tri·age http://dictionary.reference.com/browse/triage?s=t [tree-ahzh] Show IPA noun, adjective, verb, tri·aged, tri·ag·ing. noun the process of sorting victims, as of a battle or disaster, to determine medical priority in order to increase the number of survivors. THE DETERMINATION OF PRIORITIES FOR ACTION IN AN EMERGENCY. Origin: 1925–30; < French: sorting, equivalent to tri ( er ) to sort (see try) + -age -agetry-age 16

17 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Why Bother?  Crayne's Law: All computers wait at the same speed – "The Serious Assembler" circa 1985 for 8086/8088  Once there is a bottleneck…  EVERYTHING WAITS – Network – HW – Operating System – Middleware DB Messaging Etc. – Application 17 Time SLA ….OR LOCKS!

18 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Audience Quiz??? What is the best way of conserving CPU and IO resources? 18 Tell me about an I/O issue you’ve gotten over? Tell me about an CPU issue you’ve gotten over?

19 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 First you need a plan… a process… a roadmap 1.Triage which system first PROCESS? 2007 Score Blog - http://www.dbisoftware.com/blog/Scott_Hayes.php?show=0,08,2007 2.Determine what needs to be fixed on that system Sort and fix the ‘BIG ROCKs FIRST!” http://www.youtube.com/watch?v=to-DyF3AL3o 3.Fix the issue! 19

20 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Being Proactive Matters: The Value of a Good Triage Process What about the 2:00 A.M. Call or page that backup did not run or there is a production problem!? Is your head groggy / fuzzy / not thinking straight at 2:00 AM? Chaos and long weekends or go home on time and kiss the spouse and tickle your children 20 OR 

21 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Being Proactive Matters: The Value of a Good Triage Process What about the 2:00 A.M. Call or page that backup did not run or there is a production problem!? Is your head groggy / fuzzy / not thinking straight at 2:00 AM? Chaos and long weekends or or go home and kiss the spouse and tickle your children Need a well defined or written process so you don’t make mistakes Don’t you think it’s important to have a process? What items are important? What system issues need identified and escalated? Save HW upgrade? Black Friday!? 132 categories of savings! 21

22 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 First you need a plan… a process… a roadmap 1.Triage which system first PROCESS? 2007 Score Blog - http://www.dbisoftware.com/blog/Scott_Hayes.php?show=0,08,2007 2.Determine what needs to be fixed on that system Sort and find the ‘BIG ROCKs FIRST!” - Steven Covey http://www.youtube.com/watch?v=to-DyF3AL3o 3.Fix the issue! 22

23 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Audience Poll Question??? Who has done a research projects? Last 6 months? Why? What have you learned? Proactive vs Reactive? 23

24 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 First you need a plan… a process… a roadmap 1.Triage which system first PROCESS? 2007 Score Blog - http://www.dbisoftware.com/blog/Scott_Hayes.php?show=0,08,2007 2.Determine what needs to be fixed on that system Sort and fix the ‘BIG ROCKs FIRST!” Big Rocks First - http://www.youtube.com/watch?v=to-DyF3AL3ohttp://www.youtube.com/watch?v=to-DyF3AL3o 3.Fix the issue! Even if you know what needs to be fixed, wouldn’t it be nice to have a checklist sorted by type of fix? So STAY TUNED! 24

25 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 BI Infrastructure Optimization – Value of Balance Query performance improvements of 50%+ *base slide via Simon Field IBM UK Database Architecture System ServerStorage MemoryCPUsCluster/ SMP ArchActuatorsLUNs Disk Size RAID 100% ISAS – InfoSphere Smart Analytic Sys = Balanced (BCU) Approach System Software Share Nothing Architecture Actuators per LUN LUNs per Array Disk Size RAID 100% Storage Throughput Efficiency 50% Traditional Approach  30%+ overhead on I/O  High I/O waits  Lower process utilization  BI performance problems are 60%+ I/O related

26 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Indexes, Indexes, Indexes Unique / non-unique Compound Clustering Allow Reverse scans Collect statistics for indexes w/ Extended detail statistics Ascending Descending Expression on Index % free % of minimum amount of used space to be left on index page Include column Others… 26 Webinar Index Design Best Practices and Case Studies? http://www.dbisoftware.com/media/ 20090812INDEXES.wmv

27 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Access Path Matters: Doing Less Work w/Better Path Optimizer level Influence which index? Which path? Who is using Index Advisor? Who is using Workload Query Tuner? Other tools? 27

28 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Disk Layout Matters: Case Study - Better Performance 20% improvement by laying out arrays differently Ratio of Disk to CPU Observation: 4-6 usually Observation: 70% of ‘emergency phone calls’ for performance issues – I/O Best Practice: 10 per Proc! 50% improvement in large tables Daily MQT’s recalc > 24 hours = 12 min.! Don’t just accept the virtual disk they give you! 28

29 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Efficiency Matters and NOT Ratios In an OLTP system How many rows should you have to access before you get your row needed? Expert Advice E.g. Advice: Index Read Efficiency http://www.dbisoftware.com/brother-eagle/advice/db2dbiref.php 29

30 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Efficiency Matters and NOT Ratios In an OLTP system How many rows should you have to access before you get your row needed? Expert Advice E.g. Advice: Index Read Efficiency http://www.dbisoftware.com/ brother- eagle/advice/db2dbiref.php http://www.dbisoftware.com/ brother- eagle/advice/db2dbiref.php If you had 80# of pack 50# of Sand (aggregated sub sec queries - granules represent the small queries!) 30 “PHYSICAL DESIGN FLAWS OBFUSCATED BY LARGE MEMORY POOLS ARE THE NUMBER ONE CPU KILLER IN AMERICA AND AROUND THE GLOBE” Scott Hayes http://www.dbisoftware.com/blog/db2_performance.php?id=102

31 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 How do you know where the GOAL LINE IS? Observation: MOST teams do NOT have a good base line… 31

32 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 How many I/O’s can your CPU Generate? Do you know how many I/O’s your CPU can generate? Have you tested? Have you researched – TPC-C, TPC-H, Specint, other benchmarks? Do you realize that it they can generate X,000,000 I/O’s with X HW Why not divide the I/O’s by the # CPUs = MAX_IO_PER_POWERX 32

33 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 How many I/O’s can your IO Subsystem Generate? *** Send me an e-mail  Spreadsheet reference What EXERCISER programs do you use? nstress https://www.ibm.com/develop erworks/community/wikis/hom e?lang=en#!/wiki/Power+Syste ms/page/nstress 33

34 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Think big, plan ahead….Faster Gargantuan volume increases are coming...

35 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 I/O Profile Differences Between OLTP, DW, Big Data, OLAP, BLU OLTP CPU per tx low Indexing – want to be very efficient IREF* <10 Performance Objects Indexes Lower optimization DW / Big Data CPU per query very high Good design Performance Objects Indexing High optimization Layered Data Architecture (Hot Warm Cold MQTs Partitioning 35

36 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 I/O Profile Differences Between OLTP, DW, Big Data, OLAP, BLU CharacteristicOLTPDWBig DataOLAPBLU CPU Memory I/O # Users Size of Query 36

37 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Profile Differences Between OLTP, DW, Big Data, OLAP, BLU CharacteristicOLTPDWBig DataOLAPBLU CPU – Sys LevHigh MediumHigh per txLowVery HighHighVery LowMed-High MemoryLowHighDependsVery HighHigh per txLowHighHigh-VHLow–MedMed-High I/OVery Low Very High Very LowLow-Med # UsersVery High Low to Medium Very LowHighMed-High Size of QueryVery Small Very Large Small – Medium Small – V Large ETLShort txVH - Load batch / N Real Time H Parallel / Light Schema INTENSEMed-High 37

38 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Click to edit Master title style You Need a SOLID Foundation

39 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 39 Sizing Systems Why don’t we spend more time planning? Q: Why does your systems ran out of ‘gas’ to early? How do you do capacity planning?

40 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 How do you monitor CPU / IO today? NMON? db2top? Scripts? Tools? Db2batch Auto? Config advisor? Presets like BLU, SAP? How do you preserve history? Trend / graph? Triage? Methodology? Roadmap? 40

41 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 What FEATURES MATTER for I/O? …BY Version.Release? Stay tuned… DB2Night Show™ = JAN 41

42 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 V8.1 Performance Tuning "DB2 Universal Database Enterprise Server Edition V8.1: Basic Performance Tuning Guidelines“DB2 Universal Database Enterprise Server Edition V8.1: Basic Performance Tuning Guidelines "Best practices for tuning DB2 UDB v8.1 and its databases" (developerWorks: April 2004): Get optimal performance out of your DB2 UDB database and its applications.Best practices for tuning DB2 UDB v8.1 and its databases "A Quick Reference for Tuning DB2 Universal Database EEE" (developerWorks, May 2002)A Quick Reference for Tuning DB2 Universal Database EEE "DB2 Tuning Tips for OLTP Applications" (developerWorks, January 2002)DB2 Tuning Tips for OLTP Applications "Initial Tuning and Design Considerations" (developerWorks, May 2002)Initial Tuning and Design Considerations "Setting the Volume to Eleven - Tuning DB2 Configuration Parameters" (developerWorks: April 2002)Setting the Volume to Eleven - Tuning DB2 Configuration Parameters "Top 10 performance tips" (developerWorks, March 2004)Top 10 performance tips Redbooks: http://www.redbooks.ibm.com/abstracts/sg246012.html http://www.redbooks.ibm.com/Redbooks.nsf/RedbookA bstracts/sg246949.html - DB2 for Content Manager http://www.redbooks.ibm.com/Redbooks.nsf/RedbookA bstracts/sg246949.html 42

43 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Your Selection of SQL Matters: MAJOR I/O SAVINGS ROLLUP CUBE Grouping Sets Grouping Set - 15 level Benchmark 2X processors vs Oracle but 1,000x FASTER!!!!! 43 SINGLE PASS OF THE TABLE!

44 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 DB2 V9 Days http://publib.boulder.ib m.com/infocenter/db2l uw/v9/index.jsp?topic= %2Fcom.ibm.db2.udb.a dmin.doc%2Fdoc%2Fc0 007586.htm Compression 44

45 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 45

46 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 IBM’s DB2 V9.5 …and before: CPU CUBE ROLLUP Grouping sets Locality of data MQT MDC Online Reorg V9 WLM 46

47 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 IBM’s DB2 V9.5 …and before: I/O CUBE ROLLUP Grouping sets Locality of data MQT MDC Compression anyone? MDC rollout delete improvements 47

48 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 DB2 V9.7 Days - CPU Optimizer: Access plan reuse Statement Concentrator enables access plan sharing RUNSTATS sampling improvements statistical views ALTER PACKAGE – apply optimization profiles Cost models improved in partitioned env. Other perf items CS w/ currently committed MQT matching enhancements 48

49 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 DB2 V9.7 Days – I/O Compression XML Temp tables Indexes Replicated Source Tables FP1: Compression Dictionary creation improvements Scan Sharing Partitioned Index on partitioned tables Storage Management Reclaim unused space tablespace and MDC Inline small LOBs (Gets compressed too!) AIX – IOCP (IO Completion Ports) >16 cores w/ AIO (Asynchronous I/O) Truncate table as SQL statement WLM & Monitoring Enhancements - lighter weight XML – optimization profile support 49

50 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 DB2 V10.1 Days - CPU Still more compression Multi-Temperature Storage Included in DB2 ESE, AESE, Enterprise Developer Edition Time Travel queries WLM CPU shares and CPU limit attributes pureScale support SAS Scoring Accelerator for DB2 Announcement: http://www- 01.ibm.com/common/ssi/cgi- bin/ssialias?subtype=ca&infotype=an &supplier=897&letternum=ENUS212- 074 50

51 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 DB2 V10.1 Days – I/O Savings Still more compression Multi-Temperature Storage Included in DB2 ESE, AESE, Enterprise Developer Edition Time Travel queries Insert Time Cluster Tables runstats INDEXSAMPLE VIEW Auto_sampling Optimization Profile enhancements Statistical Views Jump scans Improved Star Schema Detection: w primary key, unique index, or unique constraint on the dimension table Zigzag join Storage Groups LARGE POWER 7 AIX - DB2_RESOURCE_POLICY =AUTOMATIC (EDU=Engine Dispatchable Units / 16 cores Prefetching SSD / Flash Defining RAID Devices Device Read Rate 100 MB/Sec Overhead 6.725 ms TRANSFERRATE Data Tag - WLM Priority 51

52 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 DB2 V10.1 Days – I/O Savings - Continued SAS Scoring Accelerator for DB2 V4.1 db2set DB2_SAS_SETTINGS registry variable enables the SAS EP pureScale AIX - Remote Direct Memory Access (RDMA) over Converged Ethernet (RoCE) network Table Partitioning Current Member Column – partition workloads MON_GET_GROUP_BUFFERPOOL table function DB2 WLM now availible! FP2: Recovery history file improvements - still an important part of maintaining performance – less pruning fcm_parallelism XML: New Index types (Decimal and Integer) Functional Indexes (fn:upper-case and fn:exists functions) Binary Pg 40 of What’s new Pg 145 Optimizer can now choose VARCHAR indexes for queries that contain fn:starts-with FP2: RDF (Resource Description Framework) think - ->Graph store 52

53 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 IBM’s Kepler DB2 V10.5 - 7 Big Ideas - How many Save I/O and CPU? BLU STILL MORE COMPRESSION COLUMN &… Data Skipping… and more … see MANY BLU sessions. 53

54 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 IBM’s Kepler DB2 V10.5 – Continued = CPU CPU Index on Expression! Exclude Null from Indexes NOT ENFORCED primary key and unique constraints 54

55 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 IBM’s Kepler DB2 V10.5 – Continued = I/O I/O Index on Expression! Exclude Null from Indexes Large Row Size (extended) NOT ENFORCED primary key and unique constraints Table Reorg In place Adaptive Compression In place pureScale Reclaim extents on ITC (Insert Time Clustering) tables Index Random Order Load - STATISTICS USE PROFILE vs STATISTICS YES DB2 Text Search Index 55

56 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Freebie: Locking V10.5 Explicit Hierarchical Locking (EHL) 56

57 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Performance and Tuning Matters: Indexes During index creation or Needs LARGE UTILITY HEAP (util_heal_sz – DB cfg) Reduce sort overflows – increase sheapthres DBM cfg Separate tablespaces for relational indexes If you use ORDER BY’s, Group BY’s, or Distinct the optimizer might NOT choose and indexed if: Index clustering poor (Syscat.indexes – CLUSTERRATIO and CLUSTERFACTOR) Small tables cheaper to scan Competing index choices 57 Ref: DB2 Performance Tuning and Troubleshooting guide

58 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Question??? What year will there be no more spinning disk 58 Gartner said “2017 70+%”

59 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Trends: Moore’s Law  Performance/Price doubles every 18 months  100x per decade  Progress in next 18 months = ALL previous progress New storage = sum of all old storage (ever) New processing = sum of all old processing.  E. coli double ever 20 minutes! 15 years ago … a freebie

60 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 The IO Access Time Myth  The Myth: seek or pick time dominates  The reality: (1) Queuing dominates (2) Transfer dominates large block IO (3) Disk seeks often short  Conclusion: many cheap disks better than one/several fast expensive disk shorter queues parallel transfer lower cost/access and cost/byte  Spindles make a difference! IO requests spread between more disks Seek Rotate Transfer Seek Rotate Transfer Wait Jim Gray & Gordon Bell: VLDB 95 Parallel Database Systems Survey Quiz: What is the CPU Myth?

61 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Architectural backdrop – Amdahl’s Law The Constraint Law:“The slowest component constrains the faster components”  A simple expression of the maximum potential benefit from parallel processing was defined by Amdahl’s Law. The model separates the tasks that can be performed in parallel from the tasks that need to be serialized. The speedup time on N processing, S(N), is defined a the ratio of execution time on a single processor T(1) to the execution time on N processors T(N). Amdahl subdivides the time T into serial processing time Ts and parallel processing time Tp, and then expresses the optimal speedup as:  However, even tasks that are well suited to parallel processing often do not improve in performance with additional CPUs. The major limitation is generally called “overhead”, and includes factors such as context switching, set up time (stack operators, thread or process initialization), bus contention etc. When the overhead time is large compared to the processing time one can expect parallel processing to perform poorly and in some cases even cause performance to get worse. This overhead is often non-linear, for example the cost of bus contention, and context switching can increase in non-linear ways as the system resource becomes saturated. If we model the overhead as To(N), then the speedup becomes approximately: Gene Myron Amdahl is best known for his work in mainframe computers at IBM in the 1950’s and 1960’s. He founded Amdahl Corporation in 1970. Amdahl Corp manufactured "plug-compatible" mainframes, shipping its first machine in 1975. The 1975 Amdahl 470 V6, was a less expensive, more reliable and faster computer than IBM’s System 370/165. By 1979 Amdahl had over 6000 employees and had sold over 1 billion USD in mainframe equipment. Gene left Amdahl in 1979 and went on to found and consult on numerous other technology firms.

62 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 I/O Subsystem Matters  400 MB, 1GB, 2 GB, 4 GB, 9.1 GB, 18 GB, 36 GB, 72 GB, 146 GB, 300GB, 750GB, 1TB, 2TB, 3 TB, 4TB … and now New SSD / Hybrid drives! 590,000 IOPS Arrays! – Yikes where will it stop?  RATE OF CHANGE increasing  “In the next 2.x years, we will create more information, than has been created since the inception of mankind”  Increase in VOLUME, VARIETY, VELOCITY, VULNERABILITY of data being stored  Increasing # of users & complexity of queries  Implementation of new applications and retiring old ones  Individual disk sizes increasing  # of spindles per tablespace or per processor decreasing. Go look @ TPC-H!  CACHE marketing ‘promises’ but not delivering!  Storage Subsystems  Debug harder  Multi-tier and moving hot blocks make it virtually impossible to tune!  SAN and Mixed Workloads (DSS and OLTP) in same system  Access pattern will be ‘all over the board  On Demand will blur planning  CLOUD, Grid, and Utility model could dramatically complicate pattern – RAID is the norm – More going to more sophisticated RAID Styles 6 & * Physical disk is invisible to DB2 Stripped Container and Parallel_IO are helpful but need variable knob to drive subsystem harder  Tools and understanding lacking  BEZNext has modeling capability  dbi Software – “5 Clicks to Success”  Storage, DB, System folks have some tools – Need TOTAL SYSTEM VIEW, NEED Business input, SPC, by LOB  Operating system is ‘corn-fused’… reporting at what it thinks is the hdisk (vpaths, dynamic vpath load balancing, etc.)  Debug is to say the least… extremely hard through all of the layers! “ Disk planning on sizes and layout is a pervasive issue” IBM CAC - Petabyte Council IBM Technical Competency Team AND anyone else that has done this before ! #7

63 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Hardware Technology Trends & Directions  Ever more powerful CPUs  Moore's law still applies 2x number transistors every 18 months  Similar improvements in Memory  Larger SMP servers (up to 128 CPUs) Largest pSeries SMP capable of ~13TB raw data  Larger drive storage capacities  9 GB  18 GB  36 GB  73 GB  146 GB  300 GB  1TB  Performance per GB of storage remains static  Enterprise Storage architectures  Monolithic storage vs Modular storage  Enterprise Managed (SAN)  Storage consolidation  Resource/Skill Silos  Storage Management  Systems Administrators  Database Administrators  Application Developers 6+Yr Relative Disk Performance Improvements Number of disks per processor vs MB/Sec

64 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Quiz: What does your disk cost you?

65 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Quiz: What does your CPU cost you?

66 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 RAID 5 20%+- Balancing out Disk Requirement Step 1: Raw Data to Useable Disk  Total disk space before RAID= 4 x Raw  What is your RAW to Disk Req?  What is your Active RAW Data? Number of Rows * Average Row Length RAID 5 14%-25% Raw data Working Space Staging, Logs, storage overheads 1 x Raw Performance Structures Aggregates, MQTs & Indexes 1 x Raw Temp space 1 x Raw RAID 1 / 10 ADD 100% Spinning Disk Usable Space

67 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Quiz: What’s your Disk RATIO number? If you have one row or 1 MB of data to load, how many rows and MB does that mean for your data base growth? 67

68 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Saving I/O on ETL – Best Practices SKILL CHECK!? Understand you full stack Be able to understand the terms and acronyms Aggregation Metadata? Partitioning? Partition as early in the process as possible To SORT or NOT to SORT, that is the Question? 68

69 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 What’s your ETL number (ratio)? 69

70 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19  No Redos - Nothing burns the time line like redoing something – Re-layout the disks due to bottlenecks – Change Data Integration processes from daily to part day to Near Real Time – Scope creep! New application – Disk space is off by 30 - 50% – Adding disk and reorganization is almost never optimal Requirements need to be well understood … UP FRONT! #2 … REF: 15 WAYS TO RUN OUT OF DISK

71 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 A Full Stack Perspective Matters” I/O Balance Suggested Building Block Double or triple striped? CPU Reduce Processor Stall – Cache miss- BLU

72 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 15 Ways to Run out of disk! … besides data envy! New applications Unexpected growth within an application MANY copies of tables Multiple copies Entire DB, tablespace, table, HA, DR Non-Prod Test, QA, Perf Requirements not well understood - REDO Delays / Debug copies ETL Ratio creep SAS extracts User space never cleaned up or regulated RAID1, 5, 6, 8, 10 WAY to many indexes MDC on wrong column New Versions, Releases, Fixpacks Someone forgot to CLEANUP / prune – dumps, logs, old versions, tar files UNICODE 72

73 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Governance, sponsorship & funding  Governance  Sponsorship – “If the lead dog is not leading, the sled will not stay on track” – Business Intelligence has proven itself  Funding – $Green is not a 4 letter word and should not be a one time event! Don’t ‘bean count’ / ‘pinch pennies’ good business decisions! – Equipping: Nothing derails a project faster than not having the proper resources – Consulting – Equipment – Time Line – EXPECTATION! #3

74 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O – System Level  Precept – Do less work and things will run faster!  Overallocation = paging = ”performance goes into the toilet”  Concurrent I/O and VMTUNE -P -p  Network: MTU size, send / rec sizes  Block sizes to large - DPF Solid State and Ramdisk Do only 1 level of striping--> DB2 ONLY File Opens Match sizes of I/O from: App->DB->OS->dsk Benchmarking and caching Virtualization “OVER-HEAD” Other Benefits: Kernel Resources, paging, I/O & mem buss Less reboot time

75 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Saving CPU at the System Level * Freebie Shift batch to batch window! Free cycles Vs dribbling CPU on floor Don't pin processes to processor Smaller LPARs means smaller memory footprint to sort Codepage Conversion / comparison

76 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O – Disk Subsystem  Matching I/O - Block, strip, stripe, size  Parallel I/O & Stripped Container (RAID5)  Redundant stripping – Application – Middleware (DB) – OS / file system – Storage Subsystem – Disk – Multiple COMP Fragmentation Data placement on the disk < seek time Myths: “our predictive cache is all you need” Myth: “the averages are ok... I don't see any problems” Benchmarking

77 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 75 Ways to Save I/O – DB Level Blue Triangle Demo – Locality of data (more good data and less bad data) Card trick - Partition Elimination and N squared effect “Sort is a 4 letter word” – Sort or order on ETL? – RCT – Range Cluster Tables – ITC – Insert Time Cluster – Index (forward and reverse, partition key – Sort overflows Ratio of Rows/GB for total memory Sort is non-linear – Heaps – careful and error message are confusing

78 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O – DB Level (cont.) Indexes – Include Columns – RCT – MDC – ITC (Insert Time Cluster) – MQT – Forward and Backward – Don't OVER INDEX! - impact on ETL and deletes – Don't use RI  ETL? Clustered % free (table and index) Block (Did I mention MDCs?) Index and Temp Compression (V9.7)

79 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O – DB Level (cont.) Leg Elimination – Union all views – Table Partition / roll in roll out – Hash WLM (WorkLoad Mgmt) Buffered Inserts For Fetch Only Fetch first 100 rows More Memory or More partitions? ETL Related LOAD vs Insert HPU vs export DataStage deep parallelism Commit Frequency Shift batch to batch window! LDA vs Marts ELT vs ETL Append Compatible processes DON'T DIM THE LIGHTS by extracting the whole table to app (DataStage, SAS, ETL, app, mining, etc.)!

80 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O – DB Level (cont.) SQL Tuning – Bad queries – cartesian joins – Generated – 'perceived penalty / cost' – “120 page explain” – SAVE OFF ACCESS PLANS – BEFORE THE UPGRADE! – DB Design – Optimizer Level / profiles / statistical views – Static vs Dynamic RUN RUNSTATS! Correlation Distribution Statistics Locking (UR Access Path Optimizer levels Replicated tables CUBE ROLLUP Grouping Sets

81 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O – DB Level (cont.) Cache – Disk – Disk Subsystem – CIO / DIO vs File System – Buffer Pool – Big block reads – BE CAREFUL with AUTOMATIC SETTINGS… – TEST, TEST TEST – BE Carefule of defaults

82 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Saving CPU – DB Level * Freebie MQT – CPU & I/O MDC ITC (Insert Time Cluster) WLM

83 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Homework Matters ISAS = IBM SMART ANALYTICS SYS (DPF) – BALANCE zLinux Pricing and packaging Compression value Be a student of tips and best practices Write about what you learned (Amber Crooks, Scott Hayes) Layered Data Architecture Temporal / Time Travel??? ITC = Insert Time Cluster 83

84 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Homework Matters – Cont. How is memory consumption regulated? WLM? How do you tell what application is using what disk? Prediction vs Trending? Reactive vs proactive = SPM= Strategic Performance Management “A prescriptive” approach

85 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Proactive, Continual and Methodic Capacity Planning Matters  SPM – Strategic Performance Management – Be Proactive, Continual, Methodic – EXPECTATIONS  Meta Group article on SPM  What is the value of accurate sizings? – A web based company in Florida was open for 2 days before it’s system imploded, and so did the company! – After a hurricane a large insurance company got 10X the # of transactions and, the Data Architect said“…their system fell over” DO the Homework #14

86 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 What is this Application’s Workload / Profile?  Per Application – # Users? – Concurrency? – IO/Sec requirement? – CPU consumption? – Growth? Existing apps? New apps? New users? GEO?

87 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O - DB  Blue Triangle Demo – Locality of Data – Leg Elimination – Drive all the resources N 2 effect # 1 ISSUE: I/O is undersized # of spindles per processor ( I/O per sec req.) Sort overflow RAW data ratio to: Processor Partition GB of Mem # 2 AFTER application design is access plan = Optimzer Opt settings #3 SQL generated?

88 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 LAW: There will be speed bumps  You have to plan for problems… rest assured, they will come  Some known things: – Fixpacks! – Version Upgrades! – Data volumes increases!! – More data sources!!!! – Near Real Time pressures changing ETML processes! – Delays or part of the team not meeting schedule  There are many others and unknown ‘rocks’ “Inventive thought takes time ! #10 15 Ways to Run out of Disk

89 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Why didn’t more people use compression or near line storage? … Now they are!  Why don’t people use compression at the file system level?  Why not near line storage? – Conclusion: Disk prices are falling so no one cares… Do not get sucked into this.  Survey??? – If you could compress large amounts of data by a significant amount (trading off CPU and time for the convenience), would you use it? Source: Fortune Magazine: 3/17/03 Storage shipments up 57% in past 3 yrs and is expected to rise 430% by 2006 Don’t get ‘Data Envy’ You need several years of history…fine… but no one deletes! #11

90 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Recipe for a Successful TB Class System  Find a business opportunity  Supply a solution by: finding the 'Pans' - (HW), and the following 'Ingredients' - (SW and people)  Starting with 2 metric Tons of brain cycles – Apply business application liberally  Develop a plan that includes: – A Sound vision from the leadership to: Define the quantity of 'servings' you will need for clients Define what it will take in infrastructure costs Defined what it will take in integration of the idea to industrialization and Creating a quickly scaleable, web enabled and a gargantuan warehouse!  Defined Key success factors:  Start with 6 pounds of elbow grease from the right skill, at the right time. Tempered with world class consultants that have 'Scars of several successes under their belts are key'  Baking Instructions:  Establish a good name brand  Build the capital to acquire market share  Hire the best!  Get infrastructure and staff on board as quickly as possible.  Schedule the additional skilled folks you need. Baking Instructions (cont.) Stir in the ideas from the 'brain cycles' slowly while mixing in talented people that have done each component before, and avoid 'lumps', by mixing well. Add 'Sugar'(capital) as needed. Bake at an reasonable (not aggressive) time line with scope changing as the business dictates In parallel, Shake vigorously, the need for clients, advertising, Sales, inventory control, market basket analysis, cost of goods sold analysis, supply chain analysis, hiring, firing, growing, investing, divesting, and acquiring. Set the production date at an aggressive time, while balancing the dollars available. Enjoy!

91 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Organization Matters  Has politics ever hampered one of your projects? – Infighting, “throwing it over the wall”* and departments not having the same priorities or sense of urgency  What is the most efficient organization? #15

92 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Summary: Need = Not just a checklist but a systematic methodology for profiling your system (even by application) Prioritizing Then ATTACKING the problem Research and Science projects How do I save I/O – 75 Ways Discussion System, Storage, Middleware (incl. DB) How do I save CPU – 25 Ways Discussion System, Storage, Middleware (incl. DB) More to come by version / release – Jan DB2Night Show™ 92

93 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Quick Review  Now that you have completed this session, you should be able to: – Understand that there are a number of issues in Building Terabyte Class DB Systems We discussed – 3 Absolutes – 3 most important things in MPP – 3 things client asks – Understand value of implementing best practice processes for defining Requirements Matter, I/O Subsystem Matters, BCU – Homework: Other session review (e.g. BCU, SPM, RoT) – Most of all, if you forget everything else, get a mentor that has done a 3 or 4 times already and learn from their experience!

94 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Session Review  Trends and Observations  3 Things Everyone Always asks  3 Most Important Things  3 Absolutes  After completing this session, you should be able to: – Identify key characteristics of building Terabyte Class DB Sys – Importance of following best practice processes (Balanced Configuration Unit - BCU) – Identify known problem areas from field experiences – Will help you in your planning sessions with clients, SAR, Migration and readiness plans – Help me gather more names for observations and research information to complete the book – Homework (BCU, SPM - Strategic Performance Management is and how it relates to capacity planning) – UNDERSTAND BALANCE and that the I/O subsystems MATTER

95 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Questions????

96 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Questions???? Don’t forget the DB2Night Show™ downloads # 118 Taming the Data Tsunami: 17 Laws of building Petabyte Level DB Systems Evaluations

97 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 Great Performance URLs: www.db2nightshow.com Free DB2 Education from DBIwww.db2nightshow.com Free DB2 Education from DBI http://www.dbisoftware.com/brother -eagle/advice/db2dbiref.phphttp://www.dbisoftware.com/brother -eagle/advice/db2dbiref.php http://www.dbisoftware.com/brother -eagle/advice/db2dbssdwt.phphttp://www.dbisoftware.com/brother -eagle/advice/db2dbssdwt.php http://db2commerce.com/ Ember Crookshttp://db2commerce.com/ Manual City: http://www- 01.ibm.com/support/docview.wss?uid =swg27009474 http://www- 01.ibm.com/support/docview.wss?uid =swg27009474 By version,.PDFs, best practices http://www.ibm.com/developerworks /data/library/techarticle/dm- 0404mcarthur/http://www.ibm.com/developerworks /data/library/techarticle/dm- 0404mcarthur/ http://www.mydeveloperconnection. com/pdf/DB2-SQL-Tuning.pdf http://www.ibm.com/developerw orks/data/library/techarticle/ansh um/0107anshum.htmlhttp://www.ibm.com/developerw orks/data/library/techarticle/ansh um/0107anshum.html http://performancewiki.com/db2- tuning.htmlhttp://performancewiki.com/db2- tuning.html http://publib.boulder.ibm.com/inf ocenter/db2luw/v9/index.jsp?topi c=%2Fcom.ibm.db2.udb.admin.do c%2Fdoc%2Fc0007586.htmhttp://publib.boulder.ibm.com/inf ocenter/db2luw/v9/index.jsp?topi c=%2Fcom.ibm.db2.udb.admin.do c%2Fdoc%2Fc0007586.htm Redbooks: http://www.redbooks.ibm.com/abstr acts/sg246012.html http://www.redbooks.ibm.com/abstr acts/sg246012.html http://www.redbooks.ibm.com/Redb ooks.nsf/RedbookAbstracts/sg246949.html http://www.redbooks.ibm.com/Redb ooks.nsf/RedbookAbstracts/sg246949.html http://www.db2dean.com/Previo us/PerformTools.htmlhttp://www.db2dean.com/Previo us/PerformTools.html 97

98 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 10.5 Performance Related Publications! DB2PerfTuneTroublesho ot-db2d3e1050.pdf DB2AdminRoutinesView s-db2are1050.pdf DB2-SQL-Tuning.pdf DB2Monitoring- db2f0e1050.pdf DB2Partitioning- db2pce1050.pdf 98

99 Copyright 2013 BDS3 with use by agreement – DBI and CODUG Trifecta MSP/MLK ORD 2014/6/3-5 Lee Goddard dbi Software Lee.Goddard@dbiSoftware.com 75 Ways to Save I/O and 25 Ways to Save CPU

100 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 BACKUP CHARTS

101 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 N 2 Effect 1/N 2 Fourth Millennium Technologies

102 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 N 2 Effect 1/N 2

103 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Compute Bandwidth ‘IN THE BOX’

104 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Compute Bandwidth ‘IN THE BOX’

105 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Partitioned Database Model Database is divided into multiple partitions Database Partitions can run on different nodes Each Database Partition has dedicated resources (Engine, LogMg., LockMg., Caches, etc.) Parallel Processing occurs on all partitions and is coordinated by the DBMS Single system image to user and application DB2 – Shared Nothing Architecture Fast communication manager DataLog Database Partition data log data log data log data log

106 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 The full gestalt! Hash distributed & Union ALL VIEW (or Table Partitions soon) & Clustered (MDC) with MQT & indexes MQT with aggregation and MDC P1P1 Jan Feb Ma r P2P2 P3P3 Range partitioned by month

107 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Bringing it all together : parallel IOs buffer Partition 0 buffer Partition 2 buffer IO agent Partition 1 coord extents io servers Containers db agents parallel prefetch agent

108 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Scalability Matters #9B SMP PPPPPP PPPPPP PPPP SMP PPPPPP PPPPPP PPPP

109 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Layered Data Architecture Offers a Proven Solution  Enables Cross-enterprise View of the business – single view of the truth  Reduces information latency – Enables business process management – Enables business performance management  Reduce costs and complexity – Reduces data redundancy – Reduces ETL development costs and latency – Maximizes utilization of resources  Enables iterative development of additional business areas Enterprise (Consolidated) Data Warehouse Centralized Integrated Data With Direct User Access  Business Enterprise view  Design consistency & data quality  Data reusability Sources Users DW

110 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 OLAP I/O and Best Practices Case Study: One of Largest US Banks Terabyte Class Cubes are possible! 80 / 20 Rule 80% of the accesses speed of thought in precalculated cube 20% drill down 80% to MQT’s 20% direct I/O 110

111 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Blue Triangle Demo

112 Click to edit Master title style Copyright 2014 BDS3 CODUG 2013-11-19 75 Ways to Save I/O - Storage Other benefits: reduced administration use automated scripts for DB Ready appliance approach

113 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Pop Quiz!  3 Most Important things in MPP –

114 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 Hint  In real estate – Location

115 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 3 Most Important things in MPP  Parallel #6

116 Click to edit Master title style Copyright 2013 BDS3 with CODUG & DBI use by agreement CODUG 2013-11-19 General Trends & Observations  “In the next 3 years, we will create more information, than has been created since the inception of mankind” Janet Perna 2006  Mega Vendors – IBM, SAP, & others  It’s cool to be cool, but... “don't read 3 to many articles...”  XML is invisible so security and backup are not happening  Mining and heavy analytics  Pace of deployment to slow – need a sense of urgency!  Outsourcing  Compliance driving LOTS of ‘ergs’ and churn - ROI  Next few slides – Database Ready vs Appliance – BCU / ISAS vs reference architecture – “Taming the Data Tsunami : 17 Laws of Building Petabyte Class DB Systems”


Download ppt "Copyright 2013 BDS3 with use by agreement – DBI and CODUG Trifecta MSP/MLK ORD 2014/6/3-5 75 Ways to SAVE IO & 25 Ways to Save CPU Lee Goddard DBI Software."

Similar presentations


Ads by Google