Virtual Log Files and impact on ConfigMgr performance


VLF (Virtual Log Files) can have a negative effect on database performance. Too many VLFs will slow down the startup, shutdown and read/write performance of any database.

VLFs are created when a transaction log file is allowed to auto-grow. While auto-growth will likely be enabled per database, the transaction log file should already be sized appropriately so it will not need to auto grow.

A general rule of thumb, there should be fewer than 50 VLFs.

The example illustrated here on SUSDB; may need to be applied to other databases such as the SCCM/ConfigMgr database.

There are scripts available that will list the VLF counts for every database. A simple way to test, using SQL Server Management Studio select the database in question and run the following:


Sample check of SUSDB, note we have a total of 115 VLFs (total records returned). Far too many.


Review log file size, right click on database, and view initial size (adjust this if needed):


Note: if you are going to have auto-growth enabled use a size such as 512MB or 1024MB; at least if the log file needs to auto-grow, you won’t have as many VLFS as it was set to 1MB!

To correct, we need to first shrink the transaction log file, then expand it to the proper size. Note: always do this when the database is lightly used, preferably after hours. The proper size of the transaction log (in this case) was 512MB.







Now, to see the impact of the prior changes, execute the following:


There should be far fewer VLF’s created. We’ve reduced the count from 115 to 10.


As a side note, on this same server, I found that the SCCM database had over 626 VLFs, once the transaction log was shrunk and expanded, the VLF count was 26.

One final point; there is no need to have multiple transaction log files. Logging is sequential, you will gain no performance gains by having more than one log file.


This entry was posted in ConfigMgr, SQL Server. Bookmark the permalink.

1 Response to Virtual Log Files and impact on ConfigMgr performance

  1. Pingback: Why default database Autogrowth settings are bad | Steve Thompson [MVP]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.