MySQL and SSD: Usage Patterns MySQL Conference & Expo 2011 12-Apr-2011 Vadim Tkachenko Co-founder, CTO, Percona Inc Date, time, place: Reporter:

Slides:



Advertisements
Similar presentations
Case Study: Photo.net March 20, What is photo.net? An online learning community for amateur and professional photographers 90,000 registered users.
Advertisements

Computing Infrastructure
Gecko Storage System Tudor Marian, Lakshmi Ganesh, and Hakim Weatherspoon Cornell University.
Removing the I/O Bottleneck with Virident PCIe Solid State Storage Solutions Jan Silverman VP Operations.
2 Proprietary & Confidential What is Sharding Benefits of Sharding Alternatives of Sharding When to start Sharding Agenda.
Lecture 13 Page 1 CS 111 Online File Systems: Introduction CS 111 On-Line MS Program Operating Systems Peter Reiher.
1 CSC 486/586 Network Storage. 2 Objectives Familiarization with network data storage technologies Understanding of RAID concepts and RAID levels Discuss.
Faster Than Alter – Less Downtime Chris Schneider.
Allocation Methods - Contiguous
Dr. Alexandra Fedorova August 2007 Introduction to Systems Research at SFU.
Toolbox Mirror -Overview Effective Distributed Learning.
Boost Write Performance for DBMS on Solid State Drive Yu LI.
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
High-Performance Task Distribution for Volunteer Computing Rom Walton
Harvard University Oracle Database Administration Session 2 System Level.
SanDisk® DAS Cache Brought to you by.
OS and Hardware Tuning. Tuning Considerations Hardware  Storage subsystem Configuring the disk array Using the controller cache  Components upgrades.
Ji-Yong Shin Cornell University In collaboration with Mahesh Balakrishnan (MSR SVC), Tudor Marian (Google), and Hakim Weatherspoon (Cornell) Gecko: Contention-Oblivious.
Virtual Network Servers. What is a Server? 1. A software application that provides a specific one or more services to other computers  Example: Apache.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
Nexenta Proprietary Global Leader in Software Defined Storage Nexenta Technical Sales Professional (NTSP) COURSE CONTENT.
InnoDB Performance and Usability Patches MySQL CE 2009 Vadim Tkachenko, Ewen Fortune Percona Inc MySQLPerformanceBlog.com.
Understanding Intrinsic Characteristics and System Implications of Flash Memory based Solid State Drives Feng Chen, David A. Koufaty, and Xiaodong Zhang.
DISKS IS421. DISK  A disk consists of Read/write head, and arm  A platter is divided into Tracks and sector  The R/W heads can R/W at the same time.
Day 10 Hardware Fault Tolerance RAID. High availability All servers should be on UPSs –2 Types Smart UPS –Serial cable connects from UPS to computer.
Nexenta Proprietary Global Leader in Software Defined Storage Nexenta Technical Sales Professional (NTSP) COURSE CONTENT.
Nexenta Proprietary Global Leader in Software Defined Storage Nexenta Technical Sales Professional (NTSP) COURSE CONTENT.
Luca Canali, CERN Dawid Wojcik, CERN
Storage in Big Data Systems
Module – 4 Intelligent storage system
CSE 451: Operating Systems Section 10 Project 3 wrap-up, final exam review.
CERN - IT Department CH-1211 Genève 23 Switzerland t Tier0 database extensions and multi-core/64 bit studies Maria Girone, CERN IT-PSS LCG.
MySQL. Dept. of Computing Science, University of Aberdeen2 In this lecture you will learn The main subsystems in MySQL architecture The different storage.
Taking the Complexity out of Cluster Computing Vendor Update HPC User Forum Arend Dittmer Director Product Management HPC April,
Linux Servers with JASMine K. Edwards, A. Kowalski, S. Philpott HEPiX May 21, 2003.
Hardware. Make sure you have paper and pen to hand as you will need to take notes and write down answers and thoughts that you can refer to later on.
Experience with the Thumper Wei Yang Stanford Linear Accelerator Center May 27-28, 2008 US ATLAS Tier 2/3 workshop University of Michigan, Ann Arbor.
How Solid-state Technologies are Transforming MySQL Server Performance and the Datacenter Architectures -1- Flash is Revolutionary Changes storage from.
© 2011 IBM Corporation Sizing Guidelines Jana Jamsek ATS Europe.
Security Vulnerabilities in A Virtual Environment
ISCSI. iSCSI Terms An iSCSI initiator is something that requests disk blocks, aka a client An iSCSI target is something that provides disk blocks, aka.
Linux IDE Disk Servers Andrew Sansum 8 March 2000.
PROOF Benchmark on Different Hardware Configurations 1 11/29/2007 Neng Xu, University of Wisconsin-Madison Mengmeng Chen, Annabelle Leung, Bruce Mellado,
Scott Finley University of Wisconsin – Madison CS 736 Project.
OPERATING SYSTEM BY KINSHUK RASTOGI. WHAT IS AN OPERATING SYSTEM? What is an operating system in the first place? An operating system is a software that.
Alibaba and PostgreSQL Guangzhou Zhang Practices on providing PG as a cloud service in Alibaba.
This courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
Universiteit Utrecht MONET CD Session 9 | Monday 6 June 2005 Lee Provoost.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Chapter 9 Memory Organization. 9.1 Hierarchical Memory Systems Figure 9.1.
Taeho Kgil, Trevor Mudge Advanced Computer Architecture Laboratory The University of Michigan Ann Arbor, USA CASES’06.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
Linux on ARM7TDMI or Nothing is as easy as it looks Helicon technologies Ltd. How to run uClinux on NXP LPC22xx.
E2800 Marco Deveronico All Flash or Hybrid system
Hathi: Durable Transactions for Memory using Flash
DIT314 ~ Client Operating System & Administration
Flash Storage 101 Revolutionizing Databases
Using non-volatile memory (NVDIMM-N) as block storage in Windows Server 2016 Tobias Klima Program Manager.
Installation and database instance essentials
Operating Systems ECE344 Lecture 11: SSD Ding Yuan
Get Oracle 8i Running on Your Linux Server Straight Away!
VNX Storage Report Project: Sample VNX Report Project ID:
Oracle Storage Performance Studies
Percona Server: secret features
OS Virtualization.
CSE 451: Operating Systems Autumn 2009 Module 17 Berkeley Log-Structured File System Ed Lazowska Allen Center
Chapter 5 File Systems -Compiled for MCA, PU
Hybrid Buffer Pool The Good, the Bad and the Ugly
Presentation transcript:

MySQL and SSD: Usage Patterns MySQL Conference & Expo Apr-2011 Vadim Tkachenko Co-founder, CTO, Percona Inc Date, time, place: Reporter:

You can get up to 7x gain running MySQL on SSD – Even 20x with some tricks MySQL and SSD: Usage Patterns 12-Apr-2011

What is best setup of MySQL to get most benefit from SSD / Flash In this talk MySQL and SSD: Usage Patterns 12-Apr-2011

MySQL and SSD: basics MySQL and SSD: advanced schemas What’s inside MySQL and SSD: Usage Patterns 12-Apr-2011

SATA PCI-E SAN Types of SSD MySQL and SSD: Usage Patterns 12-Apr-2011

SATA – MB/sec – Intel X25-M/E, OCZ, Unigen PCI-E – Over 1GB/sec, req/sec, under 1ms response time – Virident, FusionIO SAN – Violin memory Types of SSD MySQL and SSD: Usage Patterns 12-Apr-2011

1GB/sec – 70,000 req/sec – A lot, but MySQL can’t use that all What is this for MySQL ? MySQL and SSD: Usage Patterns 12-Apr-2011

– Put all data ( ibdata1, ib_log, tables.ibd) on SSD 5-7x difference MySQL basic usage MySQL and SSD: Usage Patterns 12-Apr-2011

– Boring, some recommendation: XFS, better with 4k blocks – Mkfs.xfs -s size=4096 – Mount –o nobarrier Multiple threads Percona Server or InnoDB-plugin or MySQL 5.5 – Still uses about 5,000 req/sec, ~200MB/sec MySQL basic usage MySQL and SSD: Usage Patterns 12-Apr-2011

– Single threaded sequential stuff InnoDB transactional logs with fsyncs Binary logs Doublewrite buffer ( with whole ibdata) – RAID with BBU good place for them Up to 45% improvement Can we do better ? MySQL and SSD: Usage Patterns 12-Apr-2011

– innodb_flush_neighbor_pages= ON | OFF – innodb_log_block_size = 512 | 4096 – innodb_page_size = 4K | 8K | 16K Use carefully – innodb_doublewrite_file – Innodb_adaptive_checkpoint=keep_average – innodb_log_file_size > 4GB What is in Percona Server for it ? MySQL and SSD: Usage Patterns 12-Apr-2011

– Data is too large Or SSD too small What if ? MySQL and SSD: Usage Patterns 12-Apr-2011

– Most data on regular disks – Put “hot” ibd files on SSD Symlinks from data directory Naive solution MySQL and SSD: Usage Patterns 12-Apr-2011

– It works – But pain to manage and till first “ALTER TABLE” – Facebook has patch for it Naive solution MySQL and SSD: Usage Patterns 12-Apr-2011

– Data stored on regular disks Caching data on SSD – Flashcache Open source Developed and maintained by Facebook, deployed in production – DirectCache Proprietary solution from FusionIO Advanced solution: caching MySQL and SSD: Usage Patterns 12-Apr-2011

– Shows good results – Stable work in production deployments – Not much user friendly FlashCache MySQL and SSD: Usage Patterns 12-Apr-2011

– Write-through and write-back modes – FIFO and LRU block management – You need to compile kernel module by yourself – The same choice for ibdata1/ib_logs location FlashCache details MySQL and SSD: Usage Patterns 12-Apr-2011

– ZFS supports SSD caching mode – Linux native port available ZFS MySQL and SSD: Usage Patterns 12-Apr-2011

– For temporary tables on disks – --tmpdir=/mnt/ssd Interesting trick MySQL and SSD: Usage Patterns 12-Apr-2011

– Several SSD / Flash cards in the server Still not enough space? MySQL and SSD: Usage Patterns 12-Apr-2011

– SATA Choice good RAID controller, maybe challenge – PCI-E Software RAID – Usually comes as stripping ( RAID0 ) – Reliability ? – Mirroring does not work really well Combining cards MySQL and SSD: Usage Patterns 12-Apr-2011

Single MySQL instance is not able to utilize all IO provided by card What about promised 20x ? MySQL and SSD: Usage Patterns 12-Apr-2011

Solution obvious: – Several instances Several instances MySQL and SSD: Usage Patterns 12-Apr-2011

Dell PowerEdge R815 4 physical AMD CPUs / 48 cores 144GB of RAM Virident tachIOn 200GB card 48 user connections Experiment MySQL and SSD: Usage Patterns 12-Apr-2011

Dell PowerEdge R815 4 physical AMD CPUs / 48 cores 144GB of RAM Virident tachIOn 200GB card Tpcc-mysql workload – 48 user connections Experiment MySQL and SSD: Usage Patterns 12-Apr-2011

Results MySQL and SSD: Usage Patterns 12-Apr-2011

With 120GB memory single instance result worse then with 26GB – InnoDB contentions problems again Two instances allows to improve 1.5x-6x Results conclusions MySQL and SSD: Usage Patterns 12-Apr-2011

I do not like it – Management complexity – Good scripts solve it 2 instances seems reasonable SAN-like Flash-arrays Multi-instance MySQL and SSD: Usage Patterns 12-Apr-2011

The end MySQL and SSD: Usage Patterns 12-Apr-2011 Slides will be online. Your questions ? We are hiring!