SlideShare a Scribd company logo
1 of 28
Download to read offline
IO, IO! Why’s my SQL slow?
Brian Flynn
Product Manager
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Define Speed?
» Acceleration
» Burst/Top Speed
» Sustained Speed
» Constraints
» Total Trip Time
» Average Speed
2
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
» Imagine transporting things a long distance.
» Just you and an over night bag vs everything you own…
3
Latency, Speed, & Throughput
High Acceleration (Low Latency) Medium Acceleration (Medium Latency) Low Acceleration (High Latency)
High Top Speed Medium Top Speed Low Top Speed
Small Cargo Medium Cargo Large Cargo
Low Capacity Medium Capacity High Capacity
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Latency, Speed, & Throughput
» Electricity:
 Volts / Ohms = Amps
 Volts * Amps = Watts
» Data:
 Buffer Size / Latency = Transfer Rate
 Buffer Size * Transfer Rate = Throughput
4
Analogy Size Current Resistance Capacity
Electricity Volts Amps Ohms Watts
Water Pressure Flow Rate Inverse of channel
diameter
Volume/Time
Data Buffer Size
* compression
* jumbo frames
Transfer Rate
*IOPS
Latency
* Function of Distance
* Function of storage type
Throughput
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Latency, Speed, & Throughput
» When speed is
constant, packet size
governs throughput.
» Larger packets increase
throughput.
» Greater distance
increases latency which
lowers perceived
throughput.
5
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
True speed is all about latency
» 1 byte or 1000 bytes,
same trip time.
» Overhead accounts
for more constraint
than sum of the
serialized trips.
6
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Aren’t we talking about storage?
» HDD latency
 Rotating the platter
 Moving the head
» SSD latency
 One controller is a gateway for multiple chips
» RAID latency
 Mirror – Improves read IOPS if split reads is supported.
 Stripe – Improves read & write IOPS.
 Distributed Parity – Write IOPS penalty for calculating parity bits.
 Raid 10 – Mirror & Stripe. No write penalty. Twice the price of stripe only.
» SAN latency
 One controller is the gateway to many disks.
 Limited bandwidth to arrays
» NAS latency
 Network is usually the weakest link
7
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Enough already, just make it faster!
» There’s more than straight line acceleration.
» Complex systems force us to tease out the latency bottlenecks
» Balancing 3 Options
1. Get the same work done with fewer operations
2. Do more in parallel
3. Make individual operations faster
8
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Get the same work done with fewer operations
» In our transportation example, same work with fewer trips
… The big semi does this… larger cargo or payload.
» With data, however…
 Eliminate redundant or superfluous database work
• Create indexes that reduce table scans
• Keep tables defragmented to increase read-ahead
• Keep frequently used data in application memory
 Caching techniques to reduce re-reading from storage
• SAN cache
• Server memory
• SQL 2014 Buffer Pool Extension
 Compress data
• More pages in memory increases page life expectancy
• Compressed data will fit into fewer Physical I/Os
• ** CPU latency must be lower than storage latency
9
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Do more in parallel
» Adding disks to an array increases maximum IOPS
 Helps where I/O can be parallelized
• Multiple CPU issuing synchronous I/Os
• SQL Server Pre-fetch & Read-ahead
• Reference: MSDN: Sequential Read Ahead
» Defragmentation increases Read-ahead, which is asynchronous
» Evaluate for parallel capabilities end to end
 Multiple file groups on isolated storage
 Multiple, isolated LUNs
 Multiple OS disk queues
 Consider SAN paths & controllers
» Bottom line, you can’t parallelize everything
 Business Analogy: The Mythical Man Month
 Humorous Analogy: The Pregnancy Problem
10
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Make individual operations faster
» Almost always, a winner! But often, the most expensive solution.
» Lower latency storage
 HDD Moving parts  Mechanical latency
 Random reads  More mechanical latency
 Thus to optimize, maximize sequential reads before random reads
 Of course, with RAID arrays, almost every read is random
 SSDs have no moving parts  No mechanical latency
 Thus all reads are equal. No benefit to sequential vs random
» Who’s IO are we talking about?
 Typical disk I/Os are usually 4K
 SQL Server I/Os range from 8K to 512K
» REF: http://www.confio.com/logicalread/fragmentation-reorganization-rebuilds-sql-server-table-scans-bf01/#.U1aJKvldU9I
11
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
How Do I Choose? It depends… :-
» It depends… At best, all three. Next best, any combination.
 3rd party software may not permit your query tuning
 Budget constraints may not permit low latency storage
 The size of I/Os may not lend to parallelizing workloads
» General rules:
 Reducing total # I/Os is always a winner.
 For large result sets or concurrency  Increasing IOPS can help a lot
 For small result sets  Raw speed (Latency) may be your only hope.
12
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Disk Queue Depth
» I hate queues, especially at the DMV! Waiting in line stinks!
» Disk Queue Length is a measure of I/O constraint.
» How high is OK? It depends on your environment.
 Different performance expectation between OLTP and OLAP systems
» If it’s consistently high, adding disks to the array may help.
» You should be watching this one and DPA does that…
13
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Other WMI Counters
» Latency-Like
 Avg. Disk Sec/Read is the average time, in seconds, of a read of data
from the disk.
 Avg. Disk Sec/Write is the average time, in seconds, of a write of data
to the disk.
» Current-Like
 Avg. Disk Reads/Sec is the rate of read operations on the disk.
 Avg. Disk Writes/Sec is the rate of write operations on the disk.
» Physical Disk: %Disk Time is the percentage of elapsed time
that the selected disk drive was busy servicing read or write
requests.
REF: http://blogs.msdn.com/b/dpless/archive/2010/12/01/leveraging-sys-dm-io-virtual-file-stats.aspx?Redirected=true
14
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Virtual File Stats DMO
15
http://technet.microsoft.com/en-us/library/ms190326.aspx
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Crystal Disk Mark
» A great, free tool that tells you the throughput of your
storage under a few mixtures of I/O size, queue depth
and sequential or random I/O. You may not get your
storage admin’s blessing to run this.  But it’s a decent
way to measure throughput.
16
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
SQLIO
17
REF: http://www.brentozar.com/archive/2008/09/finding-your-san-bottlenecks-with-sqlio/
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
18
Query Plans & Process Monitor
» Query plans tell you when you’re scanning and seeking
» ProcMon tells you how many and how big are the storage I/Os
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Server memory, SAN Cache, Tierd Storage etc
» You’ll have to clear a few obstacles.
» SQL Server caches pages in RAM so when
testing you’ll need dump the buffer cache to
ensure you are going to disk.
» And unless your storage admin is a gift from
the DBA gods, you’ll have to get real creative
to control for SAN cache in any experiments.
» Tiered storage can cause unpredictability too.
19
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Free Tools for SAN & VM environments
20
http://www.solarwinds.com/products/freetools/san_monitor/
http://www.solarwinds.com/products/freetools/storage-response-time-monitor.aspx
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Design Choices : Fragmentation Impacts
» Design for Read Ahead
 Understand & avoid physical and logical fragmentation
 Clustered indexes that monotonously increment on isolated storage
 Pre-allocate files in larger swatches rather than auto-grow
» Use file groups and different storage based on I/O demand
 Rarely accessed things on less performant media
 Frequently accessed things on highly performant media
» Plan ahead!
21
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
DMV Wait Types
» Multiple wait types indicate storage I/O
» DPA breaks down query execution by wait type over time.
 http://database.demo.solarwinds.com/
22
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
DEMONSTRATION TIME!
23
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Think you have Database I/O issues?
» DPA can identify and recommend action on I/O issues.
» Check out the new Storage I/O feature in DPA 9.0!
24
http://www.solarwinds.com/resources/videos/utilize-dpa-storage-io-to-find-performance-issues.html
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Quickly resolve Oracle performance issues
» Try Database Performance Analyzer FREE for 14 days
» Improve root cause of slow performance
 Identify issues that impact end-user response time
 Isolates root cause in just four clicks
 See historical trends over days, months, and years
 Understand impact of VMware® performance
 Agentless architecture with no dependence on Oracle Packs, installs in
minutes
www.solarwinds.com/dpa-download/
Thank you!
» Brian Flynn
» brian.flynn@solarwinds.com
» Twitter : @brianpaulflynn
» LinkedIn: brianpaulflynn
26
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Questions?
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Thank You!
The SOLARWINDS and SOLARWINDS & Design marks are the exclusive
property of SolarWinds Worldwide, LLC, are registered with the U.S.
Patent and Trademark Office, and may be registered or pending
registration in other countries. All other SolarWinds trademarks, service
marks, and logos may be common law marks, registered or pending
registration in the United States or in other countries. All other
trademarks mentioned herein are used for identification purposes only
and may be or are trademarks or registered trademarks of their respective
companies.

More Related Content

What's hot

Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
elliando dias
 
Troubleshooting SQL Server
Troubleshooting SQL ServerTroubleshooting SQL Server
Troubleshooting SQL Server
Stephen Rose
 
A Guide to your Tagadab Shared Hosting Control Panel
A Guide to your Tagadab Shared Hosting Control PanelA Guide to your Tagadab Shared Hosting Control Panel
A Guide to your Tagadab Shared Hosting Control Panel
webhostingguy
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
Joseph D'Antoni
 

What's hot (20)

SQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type ExplainedSQL Server ASYNC_NETWORK_IO Wait Type Explained
SQL Server ASYNC_NETWORK_IO Wait Type Explained
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL ServersScaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Servers
 
Why new hardware may not make Oracle databases faster
Why new hardware may not make Oracle databases fasterWhy new hardware may not make Oracle databases faster
Why new hardware may not make Oracle databases faster
 
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best PracticesVMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
 
SQL Server Best Practices - Install SQL Server like a boss (RELOADED)
SQL Server Best Practices - Install SQL Server like a boss (RELOADED)SQL Server Best Practices - Install SQL Server like a boss (RELOADED)
SQL Server Best Practices - Install SQL Server like a boss (RELOADED)
 
ASH and AWR on DB12c
ASH and AWR on DB12cASH and AWR on DB12c
ASH and AWR on DB12c
 
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
 
High availability disaster recovery 101
High availability   disaster recovery 101High availability   disaster recovery 101
High availability disaster recovery 101
 
Troubleshooting SQL Server
Troubleshooting SQL ServerTroubleshooting SQL Server
Troubleshooting SQL Server
 
KoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbegan
KoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbeganKoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbegan
KoprowskiT_SQLSat219_Kiev_2AM-aDisasterJustbegan
 
SQL Query Optimization: Why Is It So Hard to Get Right?
SQL Query Optimization: Why Is It So Hard to Get Right?SQL Query Optimization: Why Is It So Hard to Get Right?
SQL Query Optimization: Why Is It So Hard to Get Right?
 
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
 
Distributed caching with java JCache
Distributed caching with java JCacheDistributed caching with java JCache
Distributed caching with java JCache
 
Performance Tuning
Performance TuningPerformance Tuning
Performance Tuning
 
A Guide to your Tagadab Shared Hosting Control Panel
A Guide to your Tagadab Shared Hosting Control PanelA Guide to your Tagadab Shared Hosting Control Panel
A Guide to your Tagadab Shared Hosting Control Panel
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
 
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft EngineerPLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
PLSSUG - Troubleshoot SQL Server performance problems like a Microsoft Engineer
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
 
Progress OpenEdge database administration guide and reference
Progress OpenEdge database administration guide and referenceProgress OpenEdge database administration guide and reference
Progress OpenEdge database administration guide and reference
 
Caching
CachingCaching
Caching
 

Viewers also liked

Air Force Webinar: Using a SIEM to Improve Your IT Security
Air Force Webinar: Using a SIEM to Improve Your IT Security Air Force Webinar: Using a SIEM to Improve Your IT Security
Air Force Webinar: Using a SIEM to Improve Your IT Security
SolarWinds
 

Viewers also liked (20)

The Fiction behind IT Security Confidence
The Fiction behind IT Security ConfidenceThe Fiction behind IT Security Confidence
The Fiction behind IT Security Confidence
 
Survey: IT is Everywhere (End Users’ Perspective, UK)
Survey: IT is Everywhere (End Users’ Perspective, UK)Survey: IT is Everywhere (End Users’ Perspective, UK)
Survey: IT is Everywhere (End Users’ Perspective, UK)
 
Easy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL ServerEasy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL Server
 
SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds Federal Webinar: Technical Update & Demo of New FeaturesSolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds Federal Webinar: Technical Update & Demo of New Features
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases fasterAdvanced tips for making Oracle databases faster
Advanced tips for making Oracle databases faster
 
Ending the Tyranny of Expensive Security Tools
Ending the Tyranny of Expensive Security ToolsEnding the Tyranny of Expensive Security Tools
Ending the Tyranny of Expensive Security Tools
 
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
 
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
 
Air Force Webinar: Using a SIEM to Improve Your IT Security
Air Force Webinar: Using a SIEM to Improve Your IT Security Air Force Webinar: Using a SIEM to Improve Your IT Security
Air Force Webinar: Using a SIEM to Improve Your IT Security
 
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
 
Survey: IT is Everywhere (End Users’ Perspective, Singapore)
Survey: IT is Everywhere (End Users’ Perspective, Singapore)Survey: IT is Everywhere (End Users’ Perspective, Singapore)
Survey: IT is Everywhere (End Users’ Perspective, Singapore)
 
National Government Webinar: Reap the Rewards of IT Consolidation
National Government Webinar: Reap the Rewards of IT ConsolidationNational Government Webinar: Reap the Rewards of IT Consolidation
National Government Webinar: Reap the Rewards of IT Consolidation
 
Get High-Octane Virtual Datacenter Performance
Get High-Octane Virtual Datacenter PerformanceGet High-Octane Virtual Datacenter Performance
Get High-Octane Virtual Datacenter Performance
 
SolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
SolarWinds Federal User Group 2016 - Optimizing SolarWinds OrionSolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
SolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
 
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
 
SAM Webinar - Keep Your Web Apps Running Lean & Mean
SAM Webinar - Keep Your Web Apps Running Lean & Mean SAM Webinar - Keep Your Web Apps Running Lean & Mean
SAM Webinar - Keep Your Web Apps Running Lean & Mean
 
SolarWinds Application Performance End User Survey (Public Sector Results)
SolarWinds Application Performance End User Survey (Public Sector Results)SolarWinds Application Performance End User Survey (Public Sector Results)
SolarWinds Application Performance End User Survey (Public Sector Results)
 
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
Why SQL Server 2014 Cardinality Estimator is *the* killer featureWhy SQL Server 2014 Cardinality Estimator is *the* killer feature
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
 
Survey: IT is Everywhere (End Users’ Perspective, Australia)
Survey: IT is Everywhere (End Users’ Perspective, Australia)Survey: IT is Everywhere (End Users’ Perspective, Australia)
Survey: IT is Everywhere (End Users’ Perspective, Australia)
 
Survey: IT is Everywhere (End Users’ Perspective, Brazil)
Survey: IT is Everywhere (End Users’ Perspective, Brazil)Survey: IT is Everywhere (End Users’ Perspective, Brazil)
Survey: IT is Everywhere (End Users’ Perspective, Brazil)
 

Similar to How to fix IO problems for faster SQL Server performance

Using preferred read groups in oracle asm michael ault
Using preferred read groups in oracle asm michael aultUsing preferred read groups in oracle asm michael ault
Using preferred read groups in oracle asm michael ault
Louis liu
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
guest18a0f1
 

Similar to How to fix IO problems for faster SQL Server performance (20)

How Do I Know My SQL & Virtual Environments Are Ready for SSD?
How Do I Know My SQL & Virtual Environments Are Ready for SSD?How Do I Know My SQL & Virtual Environments Are Ready for SSD?
How Do I Know My SQL & Virtual Environments Are Ready for SSD?
 
How to configure SQL Server for SSDs and VMs
How to configure SQL Server for SSDs and VMsHow to configure SQL Server for SSDs and VMs
How to configure SQL Server for SSDs and VMs
 
Is This Really a SAN Problem? Understanding the Performance of Your IO Subsy...
Is This Really a SAN Problem? Understanding the Performance of  Your IO Subsy...Is This Really a SAN Problem? Understanding the Performance of  Your IO Subsy...
Is This Really a SAN Problem? Understanding the Performance of Your IO Subsy...
 
Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?Why does my choice of storage matter with cassandra?
Why does my choice of storage matter with cassandra?
 
Trouble shooting Storage Area Networks for virtualisation deployments
Trouble shooting Storage Area Networks for virtualisation deploymentsTrouble shooting Storage Area Networks for virtualisation deployments
Trouble shooting Storage Area Networks for virtualisation deployments
 
MNPHP Scalable Architecture 101 - Feb 3 2011
MNPHP Scalable Architecture 101 - Feb 3 2011MNPHP Scalable Architecture 101 - Feb 3 2011
MNPHP Scalable Architecture 101 - Feb 3 2011
 
Using preferred read groups in oracle asm michael ault
Using preferred read groups in oracle asm michael aultUsing preferred read groups in oracle asm michael ault
Using preferred read groups in oracle asm michael ault
 
Building Data Pipelines with SMACK: Designing Storage Strategies for Scale an...
Building Data Pipelines with SMACK: Designing Storage Strategies for Scale an...Building Data Pipelines with SMACK: Designing Storage Strategies for Scale an...
Building Data Pipelines with SMACK: Designing Storage Strategies for Scale an...
 
Next Generation Software-Defined Storage
Next Generation Software-Defined StorageNext Generation Software-Defined Storage
Next Generation Software-Defined Storage
 
Introduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed DatabasesIntroduction to Distributed Computing & Distributed Databases
Introduction to Distributed Computing & Distributed Databases
 
The Fundamental Characteristics of Storage concepts for DBAs
The Fundamental Characteristics of Storage concepts for DBAsThe Fundamental Characteristics of Storage concepts for DBAs
The Fundamental Characteristics of Storage concepts for DBAs
 
Stopping Storage Hardware Sprawl
Stopping Storage Hardware SprawlStopping Storage Hardware Sprawl
Stopping Storage Hardware Sprawl
 
Cohodatawebinar
Cohodatawebinar Cohodatawebinar
Cohodatawebinar
 
San presentation nov 2012 central pa
San presentation nov 2012 central paSan presentation nov 2012 central pa
San presentation nov 2012 central pa
 
Towards User-Defined SLA in Cloud Flash Storage.pptx
Towards User-Defined SLA in Cloud Flash Storage.pptxTowards User-Defined SLA in Cloud Flash Storage.pptx
Towards User-Defined SLA in Cloud Flash Storage.pptx
 
BigData as a Platform: Cassandra and Current Trends
BigData as a Platform: Cassandra and Current TrendsBigData as a Platform: Cassandra and Current Trends
BigData as a Platform: Cassandra and Current Trends
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
 
World-class Data Engineering with Amazon Redshift
World-class Data Engineering with Amazon RedshiftWorld-class Data Engineering with Amazon Redshift
World-class Data Engineering with Amazon Redshift
 

More from SolarWinds

More from SolarWinds (20)

SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
 
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
 
Government Webinar: Alerting and Reporting in the Age of Observability
Government Webinar: Alerting and Reporting in the Age of ObservabilityGovernment Webinar: Alerting and Reporting in the Age of Observability
Government Webinar: Alerting and Reporting in the Age of Observability
 
Government and Education Webinar: Full Stack Observability
Government and Education Webinar: Full Stack ObservabilityGovernment and Education Webinar: Full Stack Observability
Government and Education Webinar: Full Stack Observability
 
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
 
Becoming Secure By Design: Questions You Should Ask Your Software Vendors
Becoming Secure By Design: Questions You Should Ask Your Software VendorsBecoming Secure By Design: Questions You Should Ask Your Software Vendors
Becoming Secure By Design: Questions You Should Ask Your Software Vendors
 
Government and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
Government and Education Webinar: Real-Time Mission, CIO, and Command DashboardsGovernment and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
Government and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
 
Government and Education Webinar: Simplify Your Database Performance Manageme...
Government and Education Webinar: Simplify Your Database Performance Manageme...Government and Education Webinar: Simplify Your Database Performance Manageme...
Government and Education Webinar: Simplify Your Database Performance Manageme...
 
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
 
Government and Education Webinar: Leverage Automation to Improve IT Operations
Government and Education Webinar: Leverage Automation to Improve IT OperationsGovernment and Education Webinar: Leverage Automation to Improve IT Operations
Government and Education Webinar: Leverage Automation to Improve IT Operations
 
Government and Education Webinar: Improving Application Performance
Government and Education Webinar: Improving Application PerformanceGovernment and Education Webinar: Improving Application Performance
Government and Education Webinar: Improving Application Performance
 
Government and Education: IT Tools to Support Your Hybrid Workforce
Government and Education: IT Tools to Support Your Hybrid WorkforceGovernment and Education: IT Tools to Support Your Hybrid Workforce
Government and Education: IT Tools to Support Your Hybrid Workforce
 
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
 
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
 
Government and Education Webinar: Zero-Trust Panel Discussion
Government and Education Webinar: Zero-Trust Panel Discussion Government and Education Webinar: Zero-Trust Panel Discussion
Government and Education Webinar: Zero-Trust Panel Discussion
 
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
 
Government and Education Webinar: SQL Server—Advanced Performance Tuning
Government and Education Webinar: SQL Server—Advanced Performance Tuning Government and Education Webinar: SQL Server—Advanced Performance Tuning
Government and Education Webinar: SQL Server—Advanced Performance Tuning
 
Government and Education Webinar: Recovering IP Addresses on Your Network
Government and Education Webinar: Recovering IP Addresses on Your NetworkGovernment and Education Webinar: Recovering IP Addresses on Your Network
Government and Education Webinar: Recovering IP Addresses on Your Network
 
Government and Education Webinar: Optimize Performance With Advanced Host Mon...
Government and Education Webinar: Optimize Performance With Advanced Host Mon...Government and Education Webinar: Optimize Performance With Advanced Host Mon...
Government and Education Webinar: Optimize Performance With Advanced Host Mon...
 
Government and Education Webinar: Conquering Remote Work IT Challenges
Government and Education Webinar: Conquering Remote Work IT Challenges Government and Education Webinar: Conquering Remote Work IT Challenges
Government and Education Webinar: Conquering Remote Work IT Challenges
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

How to fix IO problems for faster SQL Server performance

  • 1. IO, IO! Why’s my SQL slow? Brian Flynn Product Manager © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 2. Define Speed? » Acceleration » Burst/Top Speed » Sustained Speed » Constraints » Total Trip Time » Average Speed 2 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 3. » Imagine transporting things a long distance. » Just you and an over night bag vs everything you own… 3 Latency, Speed, & Throughput High Acceleration (Low Latency) Medium Acceleration (Medium Latency) Low Acceleration (High Latency) High Top Speed Medium Top Speed Low Top Speed Small Cargo Medium Cargo Large Cargo Low Capacity Medium Capacity High Capacity © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 4. Latency, Speed, & Throughput » Electricity:  Volts / Ohms = Amps  Volts * Amps = Watts » Data:  Buffer Size / Latency = Transfer Rate  Buffer Size * Transfer Rate = Throughput 4 Analogy Size Current Resistance Capacity Electricity Volts Amps Ohms Watts Water Pressure Flow Rate Inverse of channel diameter Volume/Time Data Buffer Size * compression * jumbo frames Transfer Rate *IOPS Latency * Function of Distance * Function of storage type Throughput © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 5. Latency, Speed, & Throughput » When speed is constant, packet size governs throughput. » Larger packets increase throughput. » Greater distance increases latency which lowers perceived throughput. 5 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 6. True speed is all about latency » 1 byte or 1000 bytes, same trip time. » Overhead accounts for more constraint than sum of the serialized trips. 6 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 7. Aren’t we talking about storage? » HDD latency  Rotating the platter  Moving the head » SSD latency  One controller is a gateway for multiple chips » RAID latency  Mirror – Improves read IOPS if split reads is supported.  Stripe – Improves read & write IOPS.  Distributed Parity – Write IOPS penalty for calculating parity bits.  Raid 10 – Mirror & Stripe. No write penalty. Twice the price of stripe only. » SAN latency  One controller is the gateway to many disks.  Limited bandwidth to arrays » NAS latency  Network is usually the weakest link 7 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 8. Enough already, just make it faster! » There’s more than straight line acceleration. » Complex systems force us to tease out the latency bottlenecks » Balancing 3 Options 1. Get the same work done with fewer operations 2. Do more in parallel 3. Make individual operations faster 8 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 9. Get the same work done with fewer operations » In our transportation example, same work with fewer trips … The big semi does this… larger cargo or payload. » With data, however…  Eliminate redundant or superfluous database work • Create indexes that reduce table scans • Keep tables defragmented to increase read-ahead • Keep frequently used data in application memory  Caching techniques to reduce re-reading from storage • SAN cache • Server memory • SQL 2014 Buffer Pool Extension  Compress data • More pages in memory increases page life expectancy • Compressed data will fit into fewer Physical I/Os • ** CPU latency must be lower than storage latency 9 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 10. Do more in parallel » Adding disks to an array increases maximum IOPS  Helps where I/O can be parallelized • Multiple CPU issuing synchronous I/Os • SQL Server Pre-fetch & Read-ahead • Reference: MSDN: Sequential Read Ahead » Defragmentation increases Read-ahead, which is asynchronous » Evaluate for parallel capabilities end to end  Multiple file groups on isolated storage  Multiple, isolated LUNs  Multiple OS disk queues  Consider SAN paths & controllers » Bottom line, you can’t parallelize everything  Business Analogy: The Mythical Man Month  Humorous Analogy: The Pregnancy Problem 10 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 11. Make individual operations faster » Almost always, a winner! But often, the most expensive solution. » Lower latency storage  HDD Moving parts  Mechanical latency  Random reads  More mechanical latency  Thus to optimize, maximize sequential reads before random reads  Of course, with RAID arrays, almost every read is random  SSDs have no moving parts  No mechanical latency  Thus all reads are equal. No benefit to sequential vs random » Who’s IO are we talking about?  Typical disk I/Os are usually 4K  SQL Server I/Os range from 8K to 512K » REF: http://www.confio.com/logicalread/fragmentation-reorganization-rebuilds-sql-server-table-scans-bf01/#.U1aJKvldU9I 11 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 12. How Do I Choose? It depends… :- » It depends… At best, all three. Next best, any combination.  3rd party software may not permit your query tuning  Budget constraints may not permit low latency storage  The size of I/Os may not lend to parallelizing workloads » General rules:  Reducing total # I/Os is always a winner.  For large result sets or concurrency  Increasing IOPS can help a lot  For small result sets  Raw speed (Latency) may be your only hope. 12 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 13. Disk Queue Depth » I hate queues, especially at the DMV! Waiting in line stinks! » Disk Queue Length is a measure of I/O constraint. » How high is OK? It depends on your environment.  Different performance expectation between OLTP and OLAP systems » If it’s consistently high, adding disks to the array may help. » You should be watching this one and DPA does that… 13 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 14. Other WMI Counters » Latency-Like  Avg. Disk Sec/Read is the average time, in seconds, of a read of data from the disk.  Avg. Disk Sec/Write is the average time, in seconds, of a write of data to the disk. » Current-Like  Avg. Disk Reads/Sec is the rate of read operations on the disk.  Avg. Disk Writes/Sec is the rate of write operations on the disk. » Physical Disk: %Disk Time is the percentage of elapsed time that the selected disk drive was busy servicing read or write requests. REF: http://blogs.msdn.com/b/dpless/archive/2010/12/01/leveraging-sys-dm-io-virtual-file-stats.aspx?Redirected=true 14 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 15. Virtual File Stats DMO 15 http://technet.microsoft.com/en-us/library/ms190326.aspx © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 16. Crystal Disk Mark » A great, free tool that tells you the throughput of your storage under a few mixtures of I/O size, queue depth and sequential or random I/O. You may not get your storage admin’s blessing to run this.  But it’s a decent way to measure throughput. 16 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 18. 18 Query Plans & Process Monitor » Query plans tell you when you’re scanning and seeking » ProcMon tells you how many and how big are the storage I/Os © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 19. Server memory, SAN Cache, Tierd Storage etc » You’ll have to clear a few obstacles. » SQL Server caches pages in RAM so when testing you’ll need dump the buffer cache to ensure you are going to disk. » And unless your storage admin is a gift from the DBA gods, you’ll have to get real creative to control for SAN cache in any experiments. » Tiered storage can cause unpredictability too. 19 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 20. Free Tools for SAN & VM environments 20 http://www.solarwinds.com/products/freetools/san_monitor/ http://www.solarwinds.com/products/freetools/storage-response-time-monitor.aspx © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 21. Design Choices : Fragmentation Impacts » Design for Read Ahead  Understand & avoid physical and logical fragmentation  Clustered indexes that monotonously increment on isolated storage  Pre-allocate files in larger swatches rather than auto-grow » Use file groups and different storage based on I/O demand  Rarely accessed things on less performant media  Frequently accessed things on highly performant media » Plan ahead! 21 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 22. DMV Wait Types » Multiple wait types indicate storage I/O » DPA breaks down query execution by wait type over time.  http://database.demo.solarwinds.com/ 22 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 23. DEMONSTRATION TIME! 23 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 24. Think you have Database I/O issues? » DPA can identify and recommend action on I/O issues. » Check out the new Storage I/O feature in DPA 9.0! 24 http://www.solarwinds.com/resources/videos/utilize-dpa-storage-io-to-find-performance-issues.html © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 25. © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. Quickly resolve Oracle performance issues » Try Database Performance Analyzer FREE for 14 days » Improve root cause of slow performance  Identify issues that impact end-user response time  Isolates root cause in just four clicks  See historical trends over days, months, and years  Understand impact of VMware® performance  Agentless architecture with no dependence on Oracle Packs, installs in minutes www.solarwinds.com/dpa-download/
  • 26. Thank you! » Brian Flynn » brian.flynn@solarwinds.com » Twitter : @brianpaulflynn » LinkedIn: brianpaulflynn 26 © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 27. Questions? © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 28. © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. Thank You! The SOLARWINDS and SOLARWINDS & Design marks are the exclusive property of SolarWinds Worldwide, LLC, are registered with the U.S. Patent and Trademark Office, and may be registered or pending registration in other countries. All other SolarWinds trademarks, service marks, and logos may be common law marks, registered or pending registration in the United States or in other countries. All other trademarks mentioned herein are used for identification purposes only and may be or are trademarks or registered trademarks of their respective companies.