Performance Tuning Methods Author: Vladimir Andreev Semantec GmbH Lector: Stoyan Ivanov Semantec Bulgaria OOD Semantec GmbH Benzstr. 32 D-71083 Herrenberg,

Slides:



Advertisements
Similar presentations
Focusing Your Oracle Database Tuning Efforts For PeopleSoft Applications Bobby Durrett U. S. Foodservice, Inc.
Advertisements

0 - 0.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition.
Database Tuning. Objectives Describe the roles associated with database tuning. Describe the dependency between tuning in different development phases.
1 Chapter 16 Tuning RMAN. 2 Background One of the hardest chapters to develop material for Tuning RMAN can sometimes be difficult Authors tried to capture.
1 Proven Process for SQL Tuning Dean Richards Senior DBA, Confio Software.
DAT 342 Advanced SQL Server Performance and Tuning Bren Newman Program Manager SQL Server Development Microsoft Corporation.
Copyright 2007, Information Builders. Slide 1 Performance and Tuning Mark Nesson, Vashti Ragoonath June 2008.
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Oracle Wait Events That Everyone Should Know Kerry Osborne Senior Oracle Guy.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
© Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi © Bharati Vidyapeeths Institute of Computer Applications and.
QA practitioners viewpoint
Database Performance Tuning and Query Optimization
Circling Back To Littles Law Now that we have tools to gather information.
1 Symbol Tables. 2 Contents Introduction Introduction A Simple Compiler A Simple Compiler Scanning – Theory and Practice Scanning – Theory and Practice.
DBA Intranet Web - based monitoring tool Jan Dryak System Support Specialist - DBA Informix DHL Information Services (Europe) s.r.o. Session A04 Day 4/22.
Page 1 October 31, 2000 An Introduction to Large-Scale Software Development Steve Varnau Core HP-UX Operation October 31, 2000.
Executional Architecture
Pig Optimization and Execution Page 1 Alan F. © Hortonworks Inc
SSRS 2008 Architecture Improvements Scale-out SSRS 2008 Report Engine Scalability Improvements.
IO Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Waits Covered in this Section  db file sequential read  db file scattered.
Application Graphic design / svetagraphics.com 01 FRAMEWORK data service.
Finding the Performance Bottlenecks in Your Application Ian Jones and Roger Schrag Database Specialists, Inc. IOUG-A Live! 1999 Paper.
1 Chapter 16 Latch and Mutex Contention. 2 Architecture Overview of Latches Protect Oracle’s SGA Prevent two processes from updating same area of SGA.
The State of the Art in Distributed Query Processing by Donald Kossmann Presented by Chris Gianfrancesco.
Buffer Cache Waits. #.2 Copyright 2006 Kyle Hailey Buffer Cache Waits Waits Disk I/O Buffer Busy Library Cache Enqueue SQL*Net Free Buffer Hot Blocks.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
Googalize your Search with DirectInfo Documents DirectInfo Documents - New Features Author: Kiril Rusev Software Architect Semantec Bulgaria OOD Semantec.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Overview SAP Basis Functions. SAP Technical Overview Learning Objectives What the Basis system is How does SAP handle a transaction request Differentiating.
© 2011 IBM Corporation 11 April 2011 IDS Architecture.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 11 Database Performance Tuning and Query Optimization.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Part II : Waits Events Kyle Hailey
March 19981© Dennis Adams Associates Tuning Oracle: Key Considerations Dennis Adams 25 March 1998.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
SEMANTEC 1 Oracle Performance Tuning - Part I Krasen Paskalev Oracle 8i Certified DBA.
Achieving Scalability, Performance and Availability on Linux with Oracle 9iR2-RAC Grant McAlister Senior Database Engineer Amazon.com Paper
By Shanna Epstein IS 257 September 16, Cnet.com Provides information, tools, and advice to help customers decide what to buy and how to get the.
CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
Using Correlated Tracing to Diagnose Query Level Performance What’s slowing down my app? Jerome Halmans Senior Software Development Engineer Microsoft.
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Flash Storage 101 Revolutionizing Databases
Database Performance Tuning and Query Optimization
Targeting Wait Statistics with Extended Events
Oracle Memory Internals
Troubleshooting Techniques(*)
Index Index.
Chapter 11 Database Performance Tuning and Query Optimization
Using wait stats to determine why my server is slow
Performance Tuning ETL Process
Presentation transcript:

Performance Tuning Methods Author: Vladimir Andreev Semantec GmbH Lector: Stoyan Ivanov Semantec Bulgaria OOD Semantec GmbH Benzstr. 32 D Herrenberg, Germany Semantec Bulgaria OOD Hubcha Str Sofia, Bulgaria Reactive Tuning at its Best

2 About us More than ten years of Oracle-related experience Application design and development Database administration Performance tuning Performance analysis

3 Developers and DBAs Developers: Control the design and implementation Work in a sandbox No danger Low data volumes Low concurrency Different platform Incomplete system architecture Work on a schedule

4 Developers and DBAs DBAs: Have no control over the design and implementation Deal with production systems Controlled changes High availability requirements Real user and data loads Have tasks with higher priority than performance Availability Maintenance End user support

5 Tuning Modes Proactive Is planned Low time pressure Any methods and tools are allowed No scope or target Reactive Cannot be planned High time pressure Methods constrained by live data and packaged application Scope limited to a single (group of) problems A target always exists

6 The Plan for Success Must be simple and straightforward Must lead to fast solutions Must cover all possible cases

7 The Plan for Success 1. Reproduce the problem 2. Define the target 3. Find the bottleneck component 4. If the bottleneck happens to be in the database, use response time analysis to find the reason

8 Things to do first Reproduce the problem Trust the users for Effects of the problem Do not trust the users for Reasons for the problem Candidate solutions Scale down, but carefully Define the target Keep baselines

9 Find the bottleneck component Tier Walk Start from the end-user perspective Try to decompose the Application Response Time into time spent at all individual tiers Concentrate on the tier where most time is spent Inside Out Server_Idle_Time = User_Think_Time + Client_Processing_Time User Think Time can be ignored: When tuning batch jobs without user interaction By limiting the observation period to exclude user interaction

10 Tier Walk

11 Inside Out Benefits Client applications are generally not instrumented The Oracle Database Server has an excellent set of statistics: Complete Standardised Fairly well documented Tools V$ Views (and StatsPack) V$Session (Logon_Time) V$Session_Event (Event, Time_Waited) V$Session_Wait (Seconds_In_Wait) V$SesStat (CPU used by this session) STATS$Idle_Event (Event) SQL_Trace Event 10046, Level 12 tkprof, version 9.0 and above

12 Response Time Analysis Basics Response Time = Service Time + Wait Time Service Time = CPU time Wait Time = Idle Time + Non-Idle Time Non-Idle Time = I/O Waits + Other Waits System-Level Aggregated statistics prevent accurate analysis in multi-session environment Maybe useful for overall performance analysis, but not for reactive tuning Session-Level Reflect a linear (non-parallel) process Allow the tuner to ignore the other processing taking place in the server

13 OK, it is the database: CPU CPU-Bound Logical reads Inefficient SQL Inefficient Application Design (Re-)Parsing SQL with literals Shared Pool Size Invalidation PL/SQL Deterministic functions Tools: DBMS_Profiler

14 OK, it is the database: Disk I/O I/O-Bound Inefficient SQL + inadequate buffer sizes Table and index scans Disk sorts Hash Joins Inefficient Application Design: heavy client (or PL/SQL) processing Hot disks

15 Network I/O Communication stepNetwork wait event The server waits for the client to send a request SQL*Net message from client The client submits a request, which is split into several pieces by SQL*Net and the first piece is sent to the server The server waits for the next piece of the request SQL*Net more data from client The server assembles the request, processes it, and sends the first chunk of the results using send() SQL*Net message to client The server sends subsequent chunks of the result using send() SQL*Net more data to client After the last chunk is sent, the server starts waiting for the next request SQL*Net message from client

16 OK, it is the database: Contention Contention Latches and locks Shared pool Library cache Cache buffer chains Hot blocks Segment headers (freelists) Rollback segment headers Leading block of an index

17 Want to know more? Semantec GmbH., Semantec Bulgaria OOD Vladimir Andreev, Stoyan Ivanov Hubcha Str Sofia, Bulgaria +359(2) (2) (2) Company: Names: Address: Telephone: Fax: Internet: