SlideShare a Scribd company logo
MySQL and InnoDB
Performance
Baron Schwartz | OSDC 2010
MySQL Architecture
MySQL Server
Storage Engines
Parser, Optimizer
Executor, Caches
InnoDB Storage Engine
• Transactional, ACID compliant
• Reliable, Stable
• Complex, Flexible
• A History of Poor Scalability
Thinking About Performance
Response Time
Is Everything
Response Time
R = W + S
Utilization
ResponseTime
S
W
Response Time
R = W + S
Utilization
ResponseTime
S
W
MySQL & InnoDB In Context
MySQL & InnoDB In Context
Operating Environment
MySQL Server
InnoDB
Operating Environment
RAM
CPU
I/O
Network
Operating Environment
RAM
CPU
I/O
Network
• Fast
• Up to 24 Cores
• Up to 100's of GB
• RAID + BBU
• Fast SAS Disks
• SSD / FusionIO
• XFS Filesystem
• Deadline Scheduler
• High Bandwidth
• Low Latency
MySQL Performance
Nested-Loop Joins and Subqueries
MySQL Performance
Cache Scalability
InnoDB's Single “Main Thread”
• Too Much Work! Purging, Flushing
• Main Thread Cannot Keep Up
Special-Purpose Threads
• Main Thread
• Purge Thread
• Multiple Read/Write IO Threads
InnoDB Mutex Contention
Buffer Pool
Splitting the Buffer Pool Mutex
Buffer Pool Flush List LRU Hash Free
Current InnoDB Bottlenecks
• Adaptive Hash Search Mutex
• Index Lock Mutex
• After These Are Solved, ???
How To Improve Performance
Measure Carefully
Proper diagnosis is 95% of the work
Use Good Tools
• New Relic
• MySQL Enterprise Monitor
• Cacti
– http://code.google.com/p/mysql-cacti-templates/
• Maatkit
• GDB, strace, oprofile
Instrumentation is Key
• The best performance data is INSIDE MySQL
Percona Server with XtraDB
MySQL Server
Storage Engines
Parser, Optimizer
Executor, Caches
Tunability
Instrumentation
Diagnostics
Current Benchmarks
InnoDB -vs- XtraDB
http://tinyurl.com/xtradb-fusionio-jan-2010
XtraDB is much better than InnoDB in MySQL 5.1.
MySQL 5.5 -vs- Percona Server
http://tinyurl.com/xtradb-mysql5-5-ap2010
High performance is no use without stability.
Other Technologies
• Cloud Computing
– 2 of the 4 critical resources are uncontrollable
• “NoSQL” Databases
– It's too soon to be sure
Summary
• The operating environment is important
• MySQL & InnoDB are getting much faster
• The cloud is not a performance solution
• You are the key to better performance
Where Do You Go Next?
• Become a performance practitioner
– Read High Performance MySQL 2nd
Edition
– Read Optimizing Oracle Performance
– Read The Art Of Capacity Planning
– Read http://www.percona.com/about-us/white-papers/
• Contribute!
– Sponsor features you need or want
– Help improve tools

More Related Content

PDF
Cassandra Development Nirvana
PPTX
SQL Azure for ISUG(SQL Server Israeli User Group)
PDF
Backup and Recovery in MySQL Cluster
PDF
RedisDay London 2018 - Stack Overflow's Next Steps in Redis
PDF
Scylla Summit 2022: Rakuten’s Catalog Platform Migration from Cassandra to Sc...
ODP
Scalablity and benchmark in mysql performance
PDF
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
PDF
Postgres Open
Cassandra Development Nirvana
SQL Azure for ISUG(SQL Server Israeli User Group)
Backup and Recovery in MySQL Cluster
RedisDay London 2018 - Stack Overflow's Next Steps in Redis
Scylla Summit 2022: Rakuten’s Catalog Platform Migration from Cassandra to Sc...
Scalablity and benchmark in mysql performance
RedisDay London 2018 - Layered Orchestration & Redis Enterprise for fun and p...
Postgres Open

What's hot (19)

PPTX
Intro to MySQL Part I
PDF
RedisDay London 2018 - How Redis Powers BBC Online's Biggest Pages
PDF
Introduction to Apache Cassandra
PDF
RedisDay London 2018 - Redis & BioCatch Catching the Bad Guys in Action with ...
PDF
My First 90 days with Vitess
PPT
Performance stack
PPTX
Proxysql use case scenarios hl++ 2017
PDF
Vitess: Scalable Database Architecture - Kubernetes Community Days Africa Ap...
PPT
MongoDB at community engine
PPTX
mParticle's Journey to Scylla from Cassandra
PDF
RedisDay London 2018 - How We Run Redis in Multiple Datacenters
PDF
Migrating to Cassandra
PDF
Getting started in the cloud for developers
PDF
Scylla Summit 2022: Stream Processing with ScyllaDB
PDF
“Kick-off with Scale in Mind” by Yousef Wadi
PPTX
Scylla Summit 2019 Keynote - Avi Kivity
PDF
Introduction to AWS Outposts
PPTX
Scylla Cloud on Display: Functionality, Performance and Demos
PPTX
Scylla Summit 2018: Scylla Feature Talks - Gains by Using Scylla-Specific Dri...
Intro to MySQL Part I
RedisDay London 2018 - How Redis Powers BBC Online's Biggest Pages
Introduction to Apache Cassandra
RedisDay London 2018 - Redis & BioCatch Catching the Bad Guys in Action with ...
My First 90 days with Vitess
Performance stack
Proxysql use case scenarios hl++ 2017
Vitess: Scalable Database Architecture - Kubernetes Community Days Africa Ap...
MongoDB at community engine
mParticle's Journey to Scylla from Cassandra
RedisDay London 2018 - How We Run Redis in Multiple Datacenters
Migrating to Cassandra
Getting started in the cloud for developers
Scylla Summit 2022: Stream Processing with ScyllaDB
“Kick-off with Scale in Mind” by Yousef Wadi
Scylla Summit 2019 Keynote - Avi Kivity
Introduction to AWS Outposts
Scylla Cloud on Display: Functionality, Performance and Demos
Scylla Summit 2018: Scylla Feature Talks - Gains by Using Scylla-Specific Dri...
Ad

Similar to OSDC 2010 | MySQL and InnoDB Performance - what we know, what we don't by Baron Schwartz (20)

PPT
MySQL Strategy&Roadmap
PPT
My sqlstrategyroadmap
PPTX
Handling Massive Writes
PPTX
MySQL London Tech Tour March 2015 - Embedded Database of Choice
PPTX
Laying OpenStack Cinder Block Services
PPT
MySQL Performance Tuning at COSCUP 2014
PDF
MySQL State of the Dolphin - Rich Mason
PPTX
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
PPTX
Citrix Synergy 2014: Going the CloudPlatform Way
PDF
MySQL :What's New #GIDS16
PDF
TechTarget Event - Storage Architectures for the Modern Data Center - Howard ...
PDF
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #5: Oracle’s InnoDB Cluster
PDF
MySQL overview
PDF
My sql 5.5_product_update
PDF
Seminar : "The Future of MySQL - Roadmap to Success" session MySQL ...
PPTX
Drupal performance
PDF
Optimizing MySQL for Cascade Server
PPTX
Mysql ecosystem in 2019
PPTX
MySQL HA Sharding-Fabric
PDF
MySQL 5.7 what's new
MySQL Strategy&Roadmap
My sqlstrategyroadmap
Handling Massive Writes
MySQL London Tech Tour March 2015 - Embedded Database of Choice
Laying OpenStack Cinder Block Services
MySQL Performance Tuning at COSCUP 2014
MySQL State of the Dolphin - Rich Mason
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
Citrix Synergy 2014: Going the CloudPlatform Way
MySQL :What's New #GIDS16
TechTarget Event - Storage Architectures for the Modern Data Center - Howard ...
Webinar Slides: MySQL HA/DR/Geo-Scale - High Noon #5: Oracle’s InnoDB Cluster
MySQL overview
My sql 5.5_product_update
Seminar : "The Future of MySQL - Roadmap to Success" session MySQL ...
Drupal performance
Optimizing MySQL for Cascade Server
Mysql ecosystem in 2019
MySQL HA Sharding-Fabric
MySQL 5.7 what's new
Ad

Recently uploaded (20)

PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PPTX
Tech Workshop Escape Room Tech Workshop
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
PDF
Topaz Photo AI Crack New Download (Latest 2025)
PDF
Types of Token_ From Utility to Security.pdf
PPTX
chapter 5 systemdesign2008.pptx for cimputer science students
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PDF
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
assetexplorer- product-overview - presentation
PDF
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
PPTX
"Secure File Sharing Solutions on AWS".pptx
PDF
Salesforce Agentforce AI Implementation.pdf
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
MCP Security Tutorial - Beginner to Advanced
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
Autodesk AutoCAD Crack Free Download 2025
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Wondershare Recoverit Full Crack New Version (Latest 2025)
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Tech Workshop Escape Room Tech Workshop
Monitoring Stack: Grafana, Loki & Promtail
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
Topaz Photo AI Crack New Download (Latest 2025)
Types of Token_ From Utility to Security.pdf
chapter 5 systemdesign2008.pptx for cimputer science students
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
AI/ML Infra Meetup | LLM Agents and Implementation Challenges
wealthsignaloriginal-com-DS-text-... (1).pdf
assetexplorer- product-overview - presentation
EaseUS PDF Editor Pro 6.2.0.2 Crack with License Key 2025
"Secure File Sharing Solutions on AWS".pptx
Salesforce Agentforce AI Implementation.pdf
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
MCP Security Tutorial - Beginner to Advanced
Weekly report ppt - harsh dattuprasad patel.pptx
Autodesk AutoCAD Crack Free Download 2025
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx

OSDC 2010 | MySQL and InnoDB Performance - what we know, what we don't by Baron Schwartz