Reduce latency and boost sql server io performance

Post on 11-Apr-2017

1052 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

Transcript

1

HOW TO REDUCE LATENCY AND BOOST YOUR SQL SERVER

PERFORMANCE

Sumeet Bansal Kevin Kline

Tegile SQL Sentry

@SumeetBansal_@KEKline

E-mail ebooks@sqlsentry.com for free copies of our e-books and tell us you saw it in the Tegile webinar:

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

Ndx Ndx NdxNdx

BASICS OF TUNING SQL SERVER STORAGE

SalesDatabases Data Log

Emp Sales Prod

Tables

NdxNdxCust

Indexes

Reports

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

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!

• 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.

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/.

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

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!

Q & A

• Send questions to Sumeet at Sumeet@Tegile.com: • Send questions to Kevin at kkline@sqlsentry.com: o Twitter, Facebook, LinkedIn at KEKlineo Scripts at http://blogs.sqlsentry.com/kevinkline/ o Slides at http://slideshare.net/kkline84

• THANK YOU!

top related