Top Banner
HOW TO REDUCE LATENCY AND BOOST YOUR SQL SERVER PERFORMANCE Sumeet Bansal Kevin Kline Tegile SQL Sentry @SumeetBansal_ @KEKline 1
11

Reduce latency and boost sql server io performance

Apr 11, 2017

Download

Technology

Kevin Kline
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Reduce latency and boost sql server io performance

1

HOW TO REDUCE LATENCY AND BOOST YOUR SQL SERVER

PERFORMANCE

Sumeet Bansal Kevin Kline

Tegile SQL Sentry

@SumeetBansal_@KEKline

Page 2: Reduce latency and boost sql server io performance

E-mail [email protected] for free copies of our e-books and tell us you saw it in the Tegile webinar:

Page 3: Reduce latency and boost sql server io performance

Ndx Ndx NdxNdx

BASICS OF SQL SERVER I/O CONFIGURATION

SQL ServerDatabases:Filegroups &

Files

Data Log

LOBsIndexes

Req

Opn

Emp Sales Prod

Tables

NdxNdxCust

Indexes

Page 4: Reduce latency and boost sql server io performance

Ndx Ndx NdxNdx

BASICS OF TUNING SQL SERVER STORAGE

SalesDatabases Data Log

Emp Sales Prod

Tables

NdxNdxCust

Indexes

Reports

Page 5: Reduce latency and boost sql server io performance

THE OLD WAY TO REDUCE LATENCY & BOOST PERF, STEP 1: TUNE DATABASE I/O

Trans Logs

• Segregate database files from transaction log files onto separate disks.

Size and number of

Files

• Multiple files based on number of available CPUs.• Files of identical size and growth pattern (TFs

1117, 2371)

Indexing

• Proper indexing is essential.• “SARG-ability” for WHERE and JOIN clauses,

primary and foreign keys, ect

Page 6: Reduce latency and boost sql server io performance

THE OLD WAY TO REDUCE LATENCY & BOOST PERF, STEP 2: TUNING OVERALL WORKLOAD

Segregate Workloads •Tempdb onto its own array.•Read-heavy workloads separated from Write-heavy workloads.

Segregate Subsystems •System database onto their own arrays: Distribution, Master, MSDB.•Use partitioning to segregate time-differentiated data.

More Cowbell!

•Add disks, files, and filegroups.•Add more memory.•Tune SQL ... a lot!

Page 7: Reduce latency and boost sql server io performance

• I/O Performance Tuning for SQL Server DEMO• SQL Server can tell you exactly which databases and workloads need to be tuned.

• A Transact-SQL scripts that identify SQL Server bottlenecks and show you which databases, files, and elements of SQL Server are most relevant.

Page 8: Reduce latency and boost sql server io performance

A FINAL TIP – GET A FREE I/O BOOST WITH COMPRESSION

• If you’re using SQL Server Enterprise Edition, version 2008 or later…• … You may lose out on free I/O boost from a feature called Data

Compression.o Works at Page and Row levels.

• Data compression enables a SQL Server to compress tables and indexes to conserve IOPs at cost of added CPU. o Big performance improvement for I/O performance because fewer pages are used.o Big space savings.

• There a great multi-part data compression case study at http://blogs.sqlsentry.com/author/MelissaConnors/.

Page 9: Reduce latency and boost sql server io performance

TRADITIONAL I/O BOTTLENECK REDUCTION APPROACHES…

Refactor database and application

design

Time consuming; Skill dependent;

Labor intensive; COSTLY

Add CPU and memory Dead-end if not I/O bound; COSTLY

Upgrade server hardware

Complexity; Reliability & Scalability

Concerns; COSTLY; Vendor lock In

Add hard disk drives, controllers

COSTLY; Power, cooling, and footprint limitations;

Performance constrained

Upgrade traditional storage

Hit Rate Limited; Randomized I/O Issues; COSTLY

u

u

u

u

u

Page 10: Reduce latency and boost sql server io performance

SUMMARYTegile and SQL Sentry want to help solve your SQL Server performance problems!

Tegile = IO performance. SQL Sentry = software performance.Tuning IO is costly, time-consuming, and skill-intensive. Use Tegile instead!Root-cause analysis using SQL Server DMVs is hard going. Use SQL Sentry instead!Every Jedi needs a light saber. Let Tegile and SQL Sentry take you to the next level!

Page 11: Reduce latency and boost sql server io performance

Q & A

• Send questions to Sumeet at [email protected]: • Send questions to Kevin at [email protected]: o Twitter, Facebook, LinkedIn at KEKlineo Scripts at http://blogs.sqlsentry.com/kevinkline/ o Slides at http://slideshare.net/kkline84

• THANK YOU!