A Transaction Log "Ballast" File

Kevin describes how a "ballast" file can give your transaction log design better balance.

1 Min Read
ITPro Today logo in a gray background | ITPro Today

I've done a lot of sessions and articles about performance tuning your SQL Server environment over the years.  A common question that comes up is where and how to place the log files of a SQL Server database.  Of course, ideally, you'd place the transaction logs on their own mirrored pair of disks.  However, the follow-up question usually sounds something like "Yeah, that'd be great, but I can't afford that.  So what do you recommend?"

In a situation like this, I usually recommend that log files and the OS share a mirrored pair of disks, especially for smaller systems.  My recommendation follows that of Geoff Hiten, one of the sharpest SQL Server MVPs I know who's especially well-versed in hardware tuning.  Geoff's reasoning follows - once a SQL server is up and running in a steady state, there is little activity on the OS partition. A well-tuned SQL server should not page significantly.

Geoff also introduced me to something called a "ballast" file.  Of course, ballast is the heavy stuff, usually water, held in the bottom of a ship to properly balance its weight.  With SQL Server transaction logs, a ballast file is a sort of extra, empty log file that you can "dump" (that is, easily delete) to get a few hundred megabytes back if you should ever allow your log files to grow too large.  Even better, naturally, is to cap the total growth of your transaction log files so that they cannot consume all available space on a disk array.

Cheers!

-Kevin

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like