Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance...
-
Upload
sincere-fountain -
Category
Documents
-
view
223 -
download
1
Transcript of Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance...
![Page 1: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/1.jpg)
Chapter 9Chapter 9Chapter 9Chapter 9
![Page 2: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/2.jpg)
Performance Management
• Enterprise wide endeavor• Research and ascertain all
performance problems – not just DBMS
• Five factors influence DB performance
![Page 3: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/3.jpg)
DB performance• Five factors
– Workload – combination of online transactions, batch jobs, ad hoc queries, datawarehousing analysis and system
– Throughput – overall capability of the computer to process data
– Resources – hardware and software tools at the disposal of the system
![Page 4: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/4.jpg)
Performance continued– Optimization – to optimize such
things as queries, SQL formulation, database parameters
– Contention – condition where two or more components of the workload are attempting to use a single resources in a conflicting way (dual updates to same piece of data, etc.)
![Page 5: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/5.jpg)
Poor performance• Table scans• Lack of appropriate indexes• Improper indexing choices• Not using the available indexes• Outdated database statistics• Tables joined in a suboptimal order
![Page 6: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/6.jpg)
Poor Performance continued
• Application joins instead of more efficient SQL joins
• Improper join method (nested loops, etc.)
• Efficient SQL inside of inefficient application code (loops)
![Page 7: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/7.jpg)
Poor performance continued
• Inefficient subquery formulation (exists, not exists, etc.)
• Unnecessary sorting
![Page 8: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/8.jpg)
80/20 Rule• Pareto Principle
– 80% o the results come from 20% of the effort
– DBA should concentrate on the most likely causes of performance problems first, because he will receive a high return on his tuning investment
![Page 9: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/9.jpg)
Other potential problems
• Memory allocation (buffer/cache)• Logging options (log cache, log
size, rollback statements)• I/O efficiency (separation of tables
and indexes on disk, database size, fragmented and extended files)
![Page 10: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/10.jpg)
Problems continued• Overall application & database
workload on server• Database schema definitions
![Page 11: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/11.jpg)
Performance Management
• Three specific components– Monitoring – scanning the
environment, reviewing the output of instrumentation facilities, and watching the system as it runs (identifies problems)
– Analysis – looking at what was collected from monitoring – done by DBA or others
![Page 12: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/12.jpg)
Performance continued– Optimization – corrective action;
some may be done automatically by the system, others are generated
![Page 13: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/13.jpg)
Management• Reactive performance
management – Planning for the unplanned
performance problems– Manual– Time consuming
![Page 14: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/14.jpg)
Management continued• Proactive performance
management– Combined forethought, planning and
automation to minimize reactive monitoring and tuning
– Reduces amount of time, effort and human error
![Page 15: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/15.jpg)
Life Cycle• Life cycle needs to be monitored
from the beginning• Problems caught earlier on are
less costly and easier to fix
![Page 16: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/16.jpg)
Historical Trending• Capturing and analyzing resource
usage trends and performance statistics over time
• Predict needs for hardware upgrades
• Track key performance statistics (put in tracker tables)
![Page 17: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/17.jpg)
Service Level Management
• Disciplined, proactive methodology and procedures used to ensure that adequate levels of service are delivered to all IT users at acceptable costs– Problems with silos
![Page 18: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/18.jpg)
Performance Tuning• System tuning• Database tuning• Application tuning
![Page 19: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/19.jpg)
Tuning tools• Performance monitors
– Realtime, near time (intervals) and trends
• Performance estimation tools• Capacity planning tools
– Includes “what if” scenarios
![Page 20: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/20.jpg)
Tools continued• SQL analysis and tuning tools• Advisory tools• Systems analysis and tuning tools
![Page 21: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/21.jpg)
Database tuning tools• Reorganization tools (rebuild)• Compression tools• Sorting tools
![Page 22: Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.](https://reader036.fdocuments.net/reader036/viewer/2022062404/5518a150550346b31f8b489c/html5/thumbnails/22.jpg)
Performance Basics• Do not over-tune• Remain focused• Do not panic• Communicate clearly• Accept reality