Introduction. Outline What is database tuning What is changing The trends that impact database systems and their applications What is NOT changing The.

Slides:



Advertisements
Similar presentations
Tuning the Dennis Shasha and Philippe Bonnet, 2013.
Advertisements

1 Copyright © 2012 Oracle and/or its affiliates. All rights reserved. Convergence of HPC, Databases, and Analytics Tirthankar Lahiri Senior Director, Oracle.
1 CS 5226: Database Administration and Performance Tuning.
Database Tuning Principles, Experiments and Troubleshooting Techniques Baseado nos slides do tutorial com o mesmo nome da autoria de: Dennis Shasha
U NIVERSITY U NIVERSITY OF T ORONTO U NIVERSITY OF T ORONTO Bionic databases are coming. What will they look like? *Ryan Johnson & Ippokratis Pandis**
IT Infrastructure Database Tuning – Fall 2015.
OLAP Tuning. Outline OLAP 101 – Data warehouse architecture – ROLAP, MOLAP and HOLAP Data Cube – Star Schema and operations – The CUBE operator – Tuning.
1 Database Servers on Chip Multiprocessors: Limitations and Opportunities Nikos Hardavellas With Ippokratis Pandis, Ryan Johnson, Naju Mancheril, Anastassia.
International Conference on Supercomputing June 12, 2009
What will my performance be? Resource Advisor for DB admins Dushyanth Narayanan, Paul Barham Microsoft Research, Cambridge Eno Thereska, Anastassia Ailamaki.
MS DB Proposal Scott Canaan B. Thomas Golisano College of Computing & Information Sciences.
1 Lecture 13: Database Heterogeneity Debriefing Project Phase 2.
EET 4250: Chapter 1 Performance Measurement, Instruction Count & CPI Acknowledgements: Some slides and lecture notes for this course adapted from Prof.
OS Tuning Database Tuning - Spring Operating System Software that provide services to applications and abstracts hardware resources: – Processing.
Capacity Planning in SharePoint Capacity Planning Process of evaluating a technology … Deciding … Hardware … Variety of Ways Different Services.
Measuring zSeries System Performance Dr. Chu J. Jong School of Information Technology Illinois State University 06/11/2012 Sponsored in part by Deer &
1 Database Administration and Performance Tuning --Introduction.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Computer System Architectures Computer System Software
1 VLSI and Computer Architecture Trends ECE 25 Fall 2012.
COLLABORATIVE EXECUTION ENVIRONMENT FOR HETEROGENEOUS PARALLEL SYSTEMS Aleksandar Ili´c, Leonel Sousa 2010 IEEE International Symposium on Parallel & Distributed.
Practical Database Design and Tuning. Outline  Practical Database Design and Tuning Physical Database Design in Relational Databases An Overview of Database.
Chapter 2 CIS Sungchul Hong
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Task Scheduling for Highly Concurrent Analytical and Transactional Main-Memory Workloads Iraklis Psaroudakis (EPFL), Tobias Scheuer (SAP AG), Norman May.
Lecture 03: Fundamentals of Computer Design - Trends and Performance Kai Bu
Database Environment Chapter 2 AIT632 Sungchul Hong.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Improving Network I/O Virtualization for Cloud Computing.
© Dennis Shasha, Philippe Bonnet – 2013 Communicating with the Outside.
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
Dr. Mohamed Osman Hegazi 1 Database Systems Concepts Database Systems Concepts Course Outlines: Introduction to Databases and DBMS. Database System Concepts.
NoSQL Databases Oracle - Berkeley DB. Content A brief intro to NoSQL About Berkeley Db About our application.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology Sections 1.5 – 1.11.
Tag line, tag line Power Management in Storage Systems Kaladhar Voruganti Technical Director CTO Office, Sunnyvale June 12, 2009.
High Performance Computing Processors Felix Noble Mirayma V. Rodriguez Agnes Velez Electric and Computer Engineer Department August 25, 2004.
Designing and Deploying a Scalable EPM Solution Ken Toole Platform Test Manager MS Project Microsoft.
DATABASE MANAGEMENT SYSTEMS IN DATA INTENSIVE ENVIRONMENNTS Leon Guzenda Chief Technology Officer.
Chapter 16 Practical Database Design and Tuning Copyright © 2004 Pearson Education, Inc.
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
Increasing Use of SSDs in High-End DBMS Machines Kyle Mogan and Lihua Zhang.
1 CS : Technology Trends Ion Stoica and Ali Ghodsi ( August 31, 2015.
VMware vSphere Configuration and Management v6
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
연세대학교 Yonsei University Data Processing Systems for Solid State Drive Yonsei University Mincheol Shin
1 Lecture 2: Performance, MIPS ISA Today’s topics:  Performance equations  MIPS instructions Reminder: canvas and class webpage:
Scalable data access with Impala Zbigniew Baranowski Maciej Grzybek Daniel Lanza Garcia Kacper Surdy.
Hardware Trends CSE451 Andrew Whitaker. Motivation Hardware moves quickly OS code tends to stick around for a while “System building” extends way beyond.
Advanced Databases COMP3017 Dr Nicholas Gibbins
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
Software Architecture of Sensors. Hardware - Sensor Nodes Sensing: sensor --a transducer that converts a physical, chemical, or biological parameter into.
1 An Introduction to Database Tuning Spring 2002 Prof. Sang Ho Lee School of Computing, Soongsil Univ.
Computer Organization and Architecture Lecture 1 : Introduction
CS 540 Database Management Systems
Practical Database Design and Tuning
Big Data Management – Fall 2016
Flash Storage 101 Revolutionizing Databases
Using non-volatile memory (NVDIMM-N) as block storage in Windows Server 2016 Tobias Klima Program Manager.
System On Chip.
Distributed Databases
HPE Persistent Memory Microsoft Ignite 2017
Morgan Kaufmann Publishers
Software Architecture in Practice
Practical Database Design and Tuning
Cloud computing mechanisms
Database Systems Instructor Name: Lecture-3.
Performance And Scalability In Oracle9i And SQL Server 2000
Presentation transcript:

Introduction

Outline What is database tuning What is changing The trends that impact database systems and their applications What is NOT changing The principles that underly our approach What these lectures are Dennis Shasha and Philippe Bonnet, 2013

Definition Database tuning is the activity of making database applications run faster – Faster means higher throughput or/and lower response time – Avoiding transactions that create bottlenecks or avoiding queries that run for hours unnecessarily is a Dennis Shasha and Philippe Bonnet, 2013

Why database Dennis Shasha and Philippe Bonnet, 2013 Troubleshooting: – Make managers and users happy given an application as well as DBMS/OS/Hardware Capacity Sizing: – Buy the right DBMS/OS/Hardware given application requirements Application Programming: – Code your application for performance given DBMS/OS/Hardware

Why do we teach database Dennis Shasha and Philippe Bonnet, 2013 Simple case study: The following query runs too slowly select * from R where R.a > 5; What do you do?

Trends Data – Sense making and the data deluge Hardware – Towards dark silicon – The age of semiconductor based persistence – The importance of Dennis Shasha and Philippe Bonnet, 2013

Data Growth #1: Dennis Shasha and Philippe Bonnet, 2013 Source:

Data Growth #2: Data Dennis Shasha and Philippe Bonnet, 2013 Source:

Sense making #1: Current Dennis Shasha and Philippe Bonnet, 2013 Source - Questions to answer Build conceptual model Build a logical model Build a physical model Load the data (Tune) Answer the questions t  Time to Insight: Weeks to Months Collect the data

Sense making #2: Paradigm Dennis Shasha and Philippe Bonnet, 2013 Source – Model Scope of Analysis Scope of Analysis Available Data Available Data Traditional System Traditional System Traditional System Traditional System New System New System Model Available Data Available Data

Sense making #3: New Dennis Shasha and Philippe Bonnet, 2013 Structure / Value Signal Data Information Knowledge Application Data Information Knowledge Application t  Time to Insight Digital Shoebox Information Production Monitor, Mine, Manage Transform & Load Model Generation Effort / Latency Source:

Towards Dark Dennis Shasha and Philippe Bonnet, 2013 Source:

The End of Multicore Scaling Utilization Wall: With each successive process generation, the percentage of a chip that can actively switch drops exponentially due to power Dennis Shasha and Philippe Bonnet, 2013 Source: 65 nm 32nm GHz4 2x1.8 GHz (12 cores dark)

Hardware Dennis Shasha and Philippe Bonnet, 2013 Source:

Slotnik’s Law of Effort #1: Heterogeneous Dennis Shasha and Philippe Bonnet, 2013 LOOK UP: Slotnik vs. Amdahl (AFIPS’67), Michael Flynn’s talk on dataflow machines, Ryan Johnson’s paper on bionic databases.SlotnikAmdahl Michael Flynn’s talk Ryan Johnson’s paper Source:

Read Write Logical address space Scheduling & Mapping Wear Leveling Garbage collection Read Program Erase Chip … … … … Flash memory array Channels Physical address Dennis Shasha and Philippe Bonnet, 2013 Slotnik’s Law of Effort #2: The emergence of SSDs Throughput for 4K read IOs from product specifications Latency of 5000 random writes on an Intel 710 SSD (10 successive passes over 250 KB with 512B random writes on a random formatted device). LOOK UP: The necessary death of the block device interfaceThe necessary death of the block device interface

Warehouse-Scale Dennis Shasha and Philippe Bonnet, 2013 Source: LOOK UP: Werner Voegels on virtualization.Werner Voegels on virtualization

Database Dennis Shasha and Philippe Bonnet, 2013 Source:

Trends and Database Dennis Shasha and Philippe Bonnet, 2013 Source:

Trends and Database Dennis Shasha and Philippe Bonnet, 2013 Source:

Trends & Database Tuning Compression is of the essence Different classes of systems adapted to different classes of applications Data outgrows any well-defined model Time to insight is impacting all applications Energy is a key metric Dealing with parallelism requires efforts – RAM locality is king – Incorporating hardware acceleration – Emergence of utility computing/storage – Vertical integration removes abstraction Dennis Shasha and Philippe Bonnet, 2013

Database Systems Invariants The power of transactions – LOOK UP: Virtues and limitations by Jim Gray, reflections on the CAP theorem by Eric Brewer.Virtues and limitations reflections on the CAP theorem The primacy of data independence – LOOK UP: System RSystem R The beauty of declarative queries – LOOK UP: The birth of SQLThe birth of SQL A success story for parallelism – LOOK UP: Parallel Database SystemsParallel Database Dennis Shasha and Philippe Bonnet, 2013

Tuning Invariants 1.Think globally; fix locally 2.Partitioning breaks bottlenecks 3.Start-up costs are high; running costs are low 4.Render unto server what is due unto server 5.Be prepared for Dennis Shasha and Philippe Bonnet, 2013

Classes of Applications/Systems OLAP + OLTP applications Relational systems: – Oracle 12g – IBM DB – SQL Server 2012 – MySQL 6 & InnoDB 5 – Dennis Shasha and Philippe Bonnet, 2013

Storage Manager (r-store, SSD) Storage Manager (r-store, SSD) Storage Manager (c-store, SSD) Storage Manager (c-store, SSD) Application Server Web Server System Dennis Shasha and Philippe Bonnet, 2013 Hardware OS DBMS Query Processor Storage Manager (c-store, HDD) Storage Manager (c-store, HDD) Application Server Web Server instance Storage Manager (RAM) Storage Manager (RAM) Storage Manager (r-store, HDD) Storage Manager (r-store, HDD)

Lectures Troubleshooting techniques Tuning the guts Tuning transactions Tuning the writes Index tuning Schema tuning Query tuning Tuning the application interface Tuning across instances OLAP tuning OLTP Dennis Shasha and Philippe Bonnet, 2013