Is SQL Server slow for you? Attend this webinar and learn how you can optimize your SQL Server performance. (Download the companion T-SQL scripts from Kevin's at http://blogs.sqlsentry.com/KevinKline). Hear how the pros pinpoint performance bottlenecks and leverage the latest advancements in storage technology to decrease access latency and IO wait times. By the end of the webinar you'll have the tools and information you need to recommend the best approach for your SQL Server environment.
3. Ndx Ndx Ndx
Ndx
BASICS OF SQL SERVER I/O CONFIGURATION
SQL Server
Databases:
Filegroups &
Files
Data Log
LOBsIndexes
Req
Opn
Emp Sales Prod
Tables
Ndx
Ndx
Cust
Indexes
4. Ndx Ndx Ndx
Ndx
BASICS OF TUNING SQL SERVER STORAGE
Sales
Databases
Data Log
Emp Sales Prod
Tables
NdxNdx
Cust
Indexes
Reports
5. 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
6. 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!
7. • 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.
8. 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/.
9. 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
11. Q & A
• Send questions to Sumeet at Sumeet@Tegile.com:
• Send questions to Kevin at kkline@sqlsentry.com:
o Twitter, Facebook, LinkedIn at KEKline
o Scripts at http://blogs.sqlsentry.com/kevinkline/
o Slides at http://slideshare.net/kkline84
• THANK YOU!