SlideShare a Scribd company logo
1 of 11
HOW TO REDUCE LATENCY AND
BOOST YOUR SQL SERVER
PERFORMANCE
Sumeet Bansal Kevin Kline
Tegile SQL Sentry
@SumeetBansal_ @KEKline
1
E-mail ebooks@sqlsentry.com for free copies of our e-books and
tell us you saw it in the Tegile webinar:
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
Ndx Ndx Ndx
Ndx
BASICS OF TUNING SQL SERVER STORAGE
Sales
Databases
Data Log
Emp Sales Prod
Tables
NdxNdx
Cust
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
SUMMARY
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!

More Related Content

What's hot

Database , 4 Data Integration
Database , 4 Data IntegrationDatabase , 4 Data Integration
Database , 4 Data Integration
Ali Usman
 
ITIL V3 and the Unified Service Model
ITIL V3 and the Unified Service ModelITIL V3 and the Unified Service Model
ITIL V3 and the Unified Service Model
David Messineo
 
Formatos de instrucción
Formatos de instrucciónFormatos de instrucción
Formatos de instrucción
Santiago Rozo
 

What's hot (20)

Automating Power BI Creations
Automating Power BI CreationsAutomating Power BI Creations
Automating Power BI Creations
 
Electronic Student course registration System
Electronic Student course registration SystemElectronic Student course registration System
Electronic Student course registration System
 
IT Service Desk
IT Service DeskIT Service Desk
IT Service Desk
 
IT / Help Desk Support Service : Introduction, Advantage, Trend
IT / Help Desk Support Service : Introduction, Advantage, TrendIT / Help Desk Support Service : Introduction, Advantage, Trend
IT / Help Desk Support Service : Introduction, Advantage, Trend
 
Data Flow Diagram - Level 0.pdf
Data Flow Diagram - Level 0.pdfData Flow Diagram - Level 0.pdf
Data Flow Diagram - Level 0.pdf
 
Database , 4 Data Integration
Database , 4 Data IntegrationDatabase , 4 Data Integration
Database , 4 Data Integration
 
Best practices for building network operations center
Best practices for building  network operations centerBest practices for building  network operations center
Best practices for building network operations center
 
Top 3 Help Desk Challenges & What You Can Do About Them
Top 3 Help Desk Challenges & What You Can Do About ThemTop 3 Help Desk Challenges & What You Can Do About Them
Top 3 Help Desk Challenges & What You Can Do About Them
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
 
Document Archiving & Sharing System
Document Archiving & Sharing SystemDocument Archiving & Sharing System
Document Archiving & Sharing System
 
ITIL compliant Open Source tools
ITIL compliant Open Source toolsITIL compliant Open Source tools
ITIL compliant Open Source tools
 
ITIL V3 and the Unified Service Model
ITIL V3 and the Unified Service ModelITIL V3 and the Unified Service Model
ITIL V3 and the Unified Service Model
 
Incident, Problem, Change, Knowledge…and Service Catalog? A Powerful Circle.
Incident, Problem, Change, Knowledge…and Service Catalog? A Powerful Circle. Incident, Problem, Change, Knowledge…and Service Catalog? A Powerful Circle.
Incident, Problem, Change, Knowledge…and Service Catalog? A Powerful Circle.
 
Thesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project ReportThesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project Report
 
Transaction Processing in DBMS.pptx
Transaction Processing in DBMS.pptxTransaction Processing in DBMS.pptx
Transaction Processing in DBMS.pptx
 
Enterprise Application Integration
Enterprise Application IntegrationEnterprise Application Integration
Enterprise Application Integration
 
Formatos de instrucción
Formatos de instrucciónFormatos de instrucción
Formatos de instrucción
 
presentation
presentationpresentation
presentation
 
Etl - Extract Transform Load
Etl - Extract Transform LoadEtl - Extract Transform Load
Etl - Extract Transform Load
 
School Database Management System
School Database Management SystemSchool Database Management System
School Database Management System
 

Viewers also liked

Viewers also liked (8)

Top 10 DBA Mistakes on Microsoft SQL Server
Top 10 DBA Mistakes on Microsoft SQL ServerTop 10 DBA Mistakes on Microsoft SQL Server
Top 10 DBA Mistakes on Microsoft SQL Server
 
Ultimate Free SQL Server Toolkit
Ultimate Free SQL Server ToolkitUltimate Free SQL Server Toolkit
Ultimate Free SQL Server Toolkit
 
End-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL ServerEnd-to-end Troubleshooting Checklist for Microsoft SQL Server
End-to-end Troubleshooting Checklist for Microsoft SQL Server
 
Microsoft SQL Server internals & architecture
Microsoft SQL Server internals & architectureMicrosoft SQL Server internals & architecture
Microsoft SQL Server internals & architecture
 
Ten query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should knowTen query tuning techniques every SQL Server programmer should know
Ten query tuning techniques every SQL Server programmer should know
 
Convince me – persuasion techniques that get things done
Convince me – persuasion techniques that get things doneConvince me – persuasion techniques that get things done
Convince me – persuasion techniques that get things done
 
Who wants to be a DBA? Roles and Responsibilities
Who wants to be a DBA? Roles and ResponsibilitiesWho wants to be a DBA? Roles and Responsibilities
Who wants to be a DBA? Roles and Responsibilities
 
Understanding and preventing sql injection attacks
Understanding and preventing sql injection attacksUnderstanding and preventing sql injection attacks
Understanding and preventing sql injection attacks
 

Similar to Reduce latency and boost sql server io performance

Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
Antonios Chatzipavlis
 
Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...
Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...
Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...
Charley Hanania
 
Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2
Amazon Web Services
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
shuwutong
 
What SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePointWhat SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePoint
J.D. Wade
 

Similar to Reduce latency and boost sql server io performance (20)

Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
 
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SPSMadrid Get sql spinning with SharePoint. Best practice for the back endSPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
 
Pre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctlyPre and post tips to installing sql server correctly
Pre and post tips to installing sql server correctly
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
 
Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...
Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...
Pass chapter meeting dec 2013 - compression a hidden gem for io heavy databas...
 
Sql server 2016 Discovery Day
Sql server 2016 Discovery DaySql server 2016 Discovery Day
Sql server 2016 Discovery Day
 
Topic1
Topic1Topic1
Topic1
 
Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2Databases in the Cloud - DevDay Austin 2017 Day 2
Databases in the Cloud - DevDay Austin 2017 Day 2
 
Get your SharePoint spinning with SQL Server
Get your SharePoint spinning with SQL ServerGet your SharePoint spinning with SQL Server
Get your SharePoint spinning with SQL Server
 
In-memory ColumnStore Index
In-memory ColumnStore IndexIn-memory ColumnStore Index
In-memory ColumnStore Index
 
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
SQL Server and SharePoint - Best Practices presented by Steffen Krause, Micro...
 
SharePoint 2010 database maintenance
SharePoint 2010 database maintenanceSharePoint 2010 database maintenance
SharePoint 2010 database maintenance
 
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloudKoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
 
Tah 03302015 withendclient
Tah 03302015 withendclientTah 03302015 withendclient
Tah 03302015 withendclient
 
(ISM303) Migrating Your Enterprise Data Warehouse To Amazon Redshift
(ISM303) Migrating Your Enterprise Data Warehouse To Amazon Redshift(ISM303) Migrating Your Enterprise Data Warehouse To Amazon Redshift
(ISM303) Migrating Your Enterprise Data Warehouse To Amazon Redshift
 
Accelerate SQL Server Migration to the AWS Cloud
Accelerate SQL Server Migration to the AWS Cloud Accelerate SQL Server Migration to the AWS Cloud
Accelerate SQL Server Migration to the AWS Cloud
 
PASS_Summit_2019_Azure_Storage_Options_for_Analytics
PASS_Summit_2019_Azure_Storage_Options_for_AnalyticsPASS_Summit_2019_Azure_Storage_Options_for_Analytics
PASS_Summit_2019_Azure_Storage_Options_for_Analytics
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
 
Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAs
 
What SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePointWhat SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePoint
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

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 1
  • 2. E-mail ebooks@sqlsentry.com for free copies of our e-books and tell us you saw it in the Tegile webinar:
  • 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!