Real-World Performance Training Core Database Performance

Similar documents
<Insert Picture Here> Maximizing Database Performance: Performance Tuning with DB Time

Copyright 2018, Oracle and/or its affiliates. All rights reserved.

Oralogic Education Systems

RAC Performance Monitoring and Diagnosis using Oracle Enterprise Manager. Kai Yu Senior System Engineer Dell Oracle Solutions Engineering

System Design for a Million TPS

Oracle Database 12c: Performance Management and Tuning

Oracle Performance on M5000 with F20 Flash Cache. Benchmark Report September 2011

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

Real-World Performance Training Extreme OLTP Performance

Oracle Database 10g The Self-Managing Database

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

SQL Gone Wild: Taming Bad SQL the Easy Way (or the Hard Way) Sergey Koltakov Product Manager, Database Manageability

Anthony AWR report INTERPRETATION PART I

Visualizing ASH. John Beresniewicz NoCOUG 2018

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases

End-to-end Management with Grid Control. John Abrahams Technology Sales Consultant Oracle Nederland B.V.

Oracle EXAM - 1Z Oracle Database 11g: Performance Tuning. Buy Full Product.

Distributed File Systems Part II. Distributed File System Implementation

EMC Unisphere for VMAX Database Storage Analyzer

Katharina Römer Principal Sales Consultant STCC Stuttgart ORACLE Deutschland GmbH

The Role of Database Aware Flash Technologies in Accelerating Mission- Critical Databases

Identify and Eliminate Oracle Database Bottlenecks

Oracle 10g Self-Management Framework Internals: Exploring the Automatic Workload Repository. Open World September 2005

<Insert Picture Here> DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g

Oracle 1Z0-054 Exam Questions and Answers (PDF) Oracle 1Z0-054 Exam Questions 1Z0-054 BrainDumps

Oracle Database 11g: Real Application Testing & Manageability Overview

ORACLE DIAGNOSTICS PACK

Oracle Enterprise Manager 12 c : ASH in 3D

1Z Upgrade to Oracle Database 12cm Exam Summary Syllabus Questions

Addressing a performance issue: the drilldown approach

Foglight. Resolving the Database Performance. Finding clues in your DB2 LUW workloads

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

Accelerating SAP Performance and Scalability with Kaminario K2

Database Performance Analysis Techniques Using Metric Extensions and SPA

In the Oracle Database 12c: Performance Management and

Oracle Database 12c Performance Management and Tuning

Oracle Diagnostics Pack For Oracle Database

Using Automatic Workload Repository for Database Tuning: Tips for Expert DBAs. Kurt Engeleiter Product Manager

Managing Oracle Database 12c with Oracle Enterprise Manager 12c

Oracle Performance Tuning. Overview of performance tuning strategies

Common Performance Monitoring Mistakes

OpenWorld 2018 SQL Tuning Tips for Cloud Administrators

Learning Objectives : This chapter provides an introduction to performance tuning scenarios and its tools.

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

An Oracle White Paper September Optimizing Oracle Database Performance on Oracle Linux with Flash

Jyotheswar Kuricheti

<Insert Picture Here> Exadata MAA Best Practices Series Session #4: Exadata and OLTP Applications

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Exadata X3 in action: Measuring Smart Scan efficiency with AWR. Franck Pachot Senior Consultant

Oracle 1Z0-417 Exam Questions and Answers (PDF) Oracle 1Z0-417 Exam Questions 1Z0-417 BrainDumps

ArcGIS Enterprise Performance and Scalability Best Practices. Andrew Sakowicz

SSD Architecture for Consistent Enterprise Performance

Oracle Database 12c: JMS Sharded Queues

What is Real Application Testing?

Leng Leng Tan Vice President Server Manageability and Diagnosability Oracle Corporation. Arvind Gidwani Kothandapani Subramaniyam

Enterprise Manager: Scalable Oracle Management

Explore metrics in the ExtraHop system to investigate DNS failures

Session 1079: Using Real Application Testing to Successfully Migrate to Exadata - Best Practices and Customer Case Studies

Moving Databases to Oracle Cloud: Performance Best Practices

Demystifying SQL Tuning: Tips and Techniques for SQL Experts

Oracle Database 12c Rel. 2 Cluster Health Advisor - How it Works & How to Use it

Session id: The Self-Managing Database: Guided Application and SQL Tuning

Four Steps to Unleashing The Full Potential of Your Database

Oracle Database Performance Tuning

Resource Mapping A Wait Time Based Methodology for Database Performance Analysis

EMC Unisphere for VMAX Database Storage Analyzer

Oracle Database. 2 Day + Performance Tuning Guide 11g Release 2 (11.2) E

PERFORMANCE TUNING TRAINING IN BANGALORE

Removing the I/O Bottleneck in Enterprise Storage

ArcGIS Enterprise Systems: Performance and Scalability

Making Storage Smarter Jim Williams Martin K. Petersen

Last Class: Processes

2010 (c)2013 OraPub, Inc. This presentation was given by Craig Shallahamer at the NoCOUG conference on 15-AUG-2013.

<Insert Picture Here> Controlling resources in an Exadata environment

Oracle Database 11g for Experienced 9i Database Administrators

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. reserved. Insert Information Protection Policy Classification from Slide 8

User Perspective. Module III: System Perspective. Module III: Topics Covered. Module III Overview of Storage Structures, QP, and TM

L7: Performance. Frans Kaashoek Spring 2013

<Insert Picture Here> Managing Oracle Exadata Database Machine with Oracle Enterprise Manager 11g

ArcGIS Enterprise: Performance and Scalability Best Practices. Darren Baird, PE, Esri

Using Active Session History for Performance Tuning: Advanced Topics in Performance Diagnostics

B.H.GARDI COLLEGE OF ENGINEERING & TECHNOLOGY (MCA Dept.) Parallel Database Database Management System - 2

Real Application Testing Certified for SAP

CPU Scheduling. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

Live Migration: Even faster, now with a dedicated thread!

On BigFix Performance: Disk is King. How to get your infrastructure right the first time! Case Study: IBM Cloud Development - WW IT Services

VMAX: PERFORMANCE MADE SIMPLE

MAXGAUGE for Oracle Web Version 5.3

Improve Web Application Performance with Zend Platform

Oracle Database B

YOUR machine and MY database a performing relationship!? (#141)

DB2 is a complex system, with a major impact upon your processing environment. There are substantial performance and instrumentation changes in

Database monitoring and service validation. Dirk Duellmann CERN IT/PSS and 3D

Systems Infrastructure for Data Science. Web Science Group Uni Freiburg WS 2014/15

Evaluating SMB2 Performance for Home Directory Workloads

1Z Oracle Database Performance and Tuning Essentials 2015 Exam Summary Syllabus Questions

Deploy a High-Performance Database Solution: Cisco UCS B420 M4 Blade Server with Fusion iomemory PX600 Using Oracle Database 12c

Increasing Performance for PowerCenter Sessions that Use Partitions

RMOUG Training Days 2018

Performance Problems

Transcription:

Real-World Performance Training Core Database Performance Real-World Performance Team

Agenda 1 2 3 4 5 6 Computer Science Basics Schema Types and Database Design Database Interface DB Deployment and Access Options Application Algorithms Resource Management

Agenda 1 2 3 4 5 6 Computer Science Basics Schema Types and Database Design Database Interface DB Deployment and Access Options Application Algorithms Resource Management

Some Computer Science Basics

Database Performance Core Principles The Oracle database is a process based architecture To perform efficiently each process requires, at least: Idle CPU to schedule a running process System services such as network, Disk I/O and inter-process coordination should be fast and efficient

Database Performance Core Principles To determine acceptable CPU utilization take a probabilistic approach to the subject. If a CPU is 50% busy the chance of getting scheduled is 1 in 2 If a CPU is 66% busy the chance of getting scheduled is 1 in 3 If a CPU is 80% busy the chance of getting scheduled is 1 in 5 If a CPU is 90% busy the chance of getting scheduled is 1 in10 If the probabilities are used as indicator of the predictability of user response time, then the variance in user response time becomes noticeable at about 60-65% This has been observed in production and laboratory conditions for many years.

Database Core Principles Impact of Too Many Processes Tx/s 16000 14000 12000 10000 8000 6000 4000 2000 0 4 8 12 16 20 24 28 32 #of CPUs 1 Proc/Core 10 Proc/Core Avg 50 Proc/Core Avg 10 Proc/Core Max 50 Proc/Core Max 10 Proc/Core Min 50 Proc/Core Min

Response Time What it means Response time defines your users (customers) experience Response time is a measure of performance quality Consistency of response time is an equally important measure of performance quality If response time is not consistent, bad things happen!

Response Time By Numbers 10 Frequency X 1,000,000 9 8 7 Multi hump indicating inconsistent response times 6 5 Single distinct spike of the majority of transactions 4 GOOD BAD 3 2 1 0 0 1 2 3 4 5 6 7 8 9 10 Response Time ms Short tail Long tail

Response Time v DB Time v Latency Network Application Network Database Server Server End User Time Line Total User Response Time

Database Time Total time spent in database ON IDLE SYSTEM Recorded wait time User 1 Db file sequential read Run-queue On CPU Actual wait time ON DEGRADED SYSTEM Recorded wait time Recorded wait time Recorded wait time User 2 Run-queue Lock Wait Run-queue On CPU Db file sequential read Actual wait time On CPU On CPU On CPU Lock Wait On CPU On CPU On CPU Latch On CPU On CPU Wait Actual wait time Actual wait time

Latency - Some Important Numbers Best Block Access Speeds Block Location Access Time L2 CPU cache ~ 1 nano sec ( 10-9 ) Virtual Memory ~ 1 micro sec ( 10-6 ) NUMA Far Memory ~ 10 micro sec ( 10-6 ) Flash Memory (PCI) ~ 0.01 milli sec ( 10-3 ) Flash Memory (Networked) ~ 0.1 milli sec ( 10-3 ) Disk I/O ~ 1-10 milli sec ( 10-3 )

Response Time - Demo Observations Users experiencing poor response time Low overall system throughput Wait events observed in the database Culture of blame: Blame the database for all performance issues Development blames the DBA The DBA blames the SW/HW or system administrators

Response Time Performance Data Response Time > 4 seconds Transaction rate at 3,400 TPS

Response Time Application Server Performance Data Majority of time spent in application logic Application Server CPU at 95%

Bad Response Time Resolution Response time ~ 2 ms, Transaction rate ~ 34,000 TPS Application server changes applied here

Response Time Demo Application Server Bottleneck Data analysis shows: Small proportion of the actual response time is in the database Majority of response time spent in application logic CPU is overloaded on the application servers Potential root cause: Capacity planning mistake? Application code change last week?

Performance is always and only about time Human time is critical to the enterprise Systems performance affects business goals Human time + technology resource time Time is money Performance improvement means doing things faster

Database Time (DB Time) Total time in database calls by foreground sessions Includes CPU time, IO time and non-idle wait time DB Time <> response time Common currency for Oracle performance analysis Database time is total time spent by user processes either actively working or actively waiting in a database call.

Where is DB Time used? ADDM EM Performance page and drill downs EM Express ASH report AWR and AWR compare periods reports

Avg Active Sessions and DB Time Active sessions ASH sample count is value of active sessions function at sample times DB time is area under curve t = 1 sec DB Time t0 time t1