SlideShare a Scribd company logo
What the VLF?
Mike Hillwig
Boston, MA
Mike Hillwig
 SQL Server DBA
 Working with SQL Server since SQL 7
 Senior DBA at hosting division of a financial software
company owned by a large financial institution
 Resume includes Acme Packet, Shawmut Design and
Construction, Equitable Resources
Mike Hillwig
 Owned by Two Pugs
 Avid Cook
 Lover of Blue Cheese
 And Bacon
 Geek at Heart
Obligatory Social Networking Slide
 mikehillwig.com
 sqlserverpedia.com
 twitter.com/mikehillwig
 anysocialnetworkingsite/mikehillwig
Housekeeping
 Blog post at mikehillwig.com/go/vlf
 Please complete your session evaluations.
Beware of the Blogs
 There is some amazing
advice out there. But…
 Anybody can put bad
advice on the internet
 Trust people you know
 Assume I’m an idiot
 I don’t trust people who
say “ALWAYS” or
“NEVER”
 Test everything in your
own test environment
first.
What is a VLF?
 Very Large Filesystem
 A Virtual Log File
 Construct within a transaction log file
 Breaks your transaction log files into smaller
chunks
I am not THE Expert
 Kimberly Tripp from SQLSkills wrote THE
definitive blog post on VLFs.
 Linked from my post at mikehillwig.com/go/vlf
Why do we care?
 Too many VLFs can cause performance
problems with DML
 Too few VLFs can cause a performance
problems with transaction log backups
How did this happen?
 Most frequent cause is transaction log files
that grow in small increments.
 Are you growing your transaction log files by
10%?
 If so, you probably have a high number of
VLFs.
How will I know?
 Cue the Whitney
Houston reference
 DBCC LOGINFO
WITH
TABLERESULTS
 Demo
The Goldilocks Problem
 This one has too
many
 This one has too few
 This one is just right.
 And there is a just
right for your
environment.
But how do we know what’s just right?
 You have to baseline and test
 Know that thousands of VLFs may be too
many
 Know that a handful may be too few
 Number of VLFs will vary based on the size
of your transaction log file
Does Size Matter?
 Yes.
 But size isn’t everything.
 Look at throughput
 And look at the size of your VLFs, not just the
number
 And the frequency of your transaction log
backups is a factor as well.
This is a Balancing Act
 Amount of throughput
 Size of the VLFs
 Frequency of
transaction log
backups
How do we fix it?
 Note how big our transaction log file is today
 Shrink it down
 Manually grow it.
 Be careful not to grow it to more than 8 GB at
a time, though. This could lead to HUGE
VLFs.

More Related Content

PPTX
SQL Phone Home: Teaching Your SQL Servers to Call for Help
PPTX
Do More With Less: SQL Central Management Server and Multi-Server Administration
PDF
Facebook, Robert Johnson
PPT
Building High Performance Web Applications
PPT
Website Backup
KEY
Doing less
PDF
Product Development at Flood IO
PPT
Steve Huffman - Lessons learned while at reddit.com
SQL Phone Home: Teaching Your SQL Servers to Call for Help
Do More With Less: SQL Central Management Server and Multi-Server Administration
Facebook, Robert Johnson
Building High Performance Web Applications
Website Backup
Doing less
Product Development at Flood IO
Steve Huffman - Lessons learned while at reddit.com

What's hot (20)

PDF
Testing Portugal: Making Your Team Awesome as Just a tester
PPTX
Did i do the right thing show
DOCX
Importance of-website-backups
PPTX
TechORama : The Toolshed: Inside Windows Azure Tools : Monaco and other tooli...
PPT
Email Management
PPTX
Did i do the right thing?
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252 (4)
PPT
Sage run error checking
PPTX
Humans by the hundred (DevOps Days Ohio)
PDF
Reactive Guide for Spring MVC - Rossen Stoyanchev
PDF
W3 schools javascript quiz test
PDF
Secure Your Asses
PPTX
Building Responsible Wordpress Sites
PDF
Your time saving front end workflow
PPTX
Html web workers
PDF
Bootstrapping your startup & building it lean: stop wasting time
PPT
CMs presentation March 2010
PDF
How I learned to stop worrying and love the bugs with Jenkins & Continuous In...
PPTX
PPTX
Introduction to php for absolute beginners
Testing Portugal: Making Your Team Awesome as Just a tester
Did i do the right thing show
Importance of-website-backups
TechORama : The Toolshed: Inside Windows Azure Tools : Monaco and other tooli...
Email Management
Did i do the right thing?
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252 (4)
Sage run error checking
Humans by the hundred (DevOps Days Ohio)
Reactive Guide for Spring MVC - Rossen Stoyanchev
W3 schools javascript quiz test
Secure Your Asses
Building Responsible Wordpress Sites
Your time saving front end workflow
Html web workers
Bootstrapping your startup & building it lean: stop wasting time
CMs presentation March 2010
How I learned to stop worrying and love the bugs with Jenkins & Continuous In...
Introduction to php for absolute beginners
Ad

Similar to What the VLF (6)

PPTX
Microsoft SQL Server Log Management
PPTX
Recovery, logging and the transaction log
PPT
Kb 40 kevin_klineukug_reading20070717[1]
PDF
Datavail Health Check
PDF
Lesson 3 backup
Microsoft SQL Server Log Management
Recovery, logging and the transaction log
Kb 40 kevin_klineukug_reading20070717[1]
Datavail Health Check
Lesson 3 backup
Ad

More from Mike Hillwig (9)

PPTX
Closing
PPTX
Opening
PPTX
Recovery and backup for beginners
PPTX
Defy the Defaults
PDF
Seven Jobs You Should Be Running #sqlsat126
PDF
New Server in an Hour #sqlsat121
PDF
How Not to be a Cranky DBA
PDF
New Server in an Hour
PPTX
How not to be a cranky dba
Closing
Opening
Recovery and backup for beginners
Defy the Defaults
Seven Jobs You Should Be Running #sqlsat126
New Server in an Hour #sqlsat121
How Not to be a Cranky DBA
New Server in an Hour
How not to be a cranky dba

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Approach and Philosophy of On baking technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Big Data Technologies - Introduction.pptx
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced IT Governance
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine learning based COVID-19 study performance prediction
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Approach and Philosophy of On baking technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Empathic Computing: Creating Shared Understanding
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Big Data Technologies - Introduction.pptx
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced IT Governance
MYSQL Presentation for SQL database connectivity
Diabetes mellitus diagnosis method based random forest with bat algorithm
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

What the VLF

  • 1. What the VLF? Mike Hillwig Boston, MA
  • 2. Mike Hillwig  SQL Server DBA  Working with SQL Server since SQL 7  Senior DBA at hosting division of a financial software company owned by a large financial institution  Resume includes Acme Packet, Shawmut Design and Construction, Equitable Resources
  • 3. Mike Hillwig  Owned by Two Pugs  Avid Cook  Lover of Blue Cheese  And Bacon  Geek at Heart
  • 4. Obligatory Social Networking Slide  mikehillwig.com  sqlserverpedia.com  twitter.com/mikehillwig  anysocialnetworkingsite/mikehillwig
  • 5. Housekeeping  Blog post at mikehillwig.com/go/vlf  Please complete your session evaluations.
  • 6. Beware of the Blogs  There is some amazing advice out there. But…  Anybody can put bad advice on the internet  Trust people you know  Assume I’m an idiot  I don’t trust people who say “ALWAYS” or “NEVER”  Test everything in your own test environment first.
  • 7. What is a VLF?  Very Large Filesystem  A Virtual Log File  Construct within a transaction log file  Breaks your transaction log files into smaller chunks
  • 8. I am not THE Expert  Kimberly Tripp from SQLSkills wrote THE definitive blog post on VLFs.  Linked from my post at mikehillwig.com/go/vlf
  • 9. Why do we care?  Too many VLFs can cause performance problems with DML  Too few VLFs can cause a performance problems with transaction log backups
  • 10. How did this happen?  Most frequent cause is transaction log files that grow in small increments.  Are you growing your transaction log files by 10%?  If so, you probably have a high number of VLFs.
  • 11. How will I know?  Cue the Whitney Houston reference  DBCC LOGINFO WITH TABLERESULTS
  • 13. The Goldilocks Problem  This one has too many  This one has too few  This one is just right.  And there is a just right for your environment.
  • 14. But how do we know what’s just right?  You have to baseline and test  Know that thousands of VLFs may be too many  Know that a handful may be too few  Number of VLFs will vary based on the size of your transaction log file
  • 15. Does Size Matter?  Yes.  But size isn’t everything.  Look at throughput  And look at the size of your VLFs, not just the number  And the frequency of your transaction log backups is a factor as well.
  • 16. This is a Balancing Act  Amount of throughput  Size of the VLFs  Frequency of transaction log backups
  • 17. How do we fix it?  Note how big our transaction log file is today  Shrink it down  Manually grow it.  Be careful not to grow it to more than 8 GB at a time, though. This could lead to HUGE VLFs.

Editor's Notes

  • #7: Good advice out there, but…Lots of outdated information. Do DB servers really need 2x RAM for PF?