Various KBs, whitepapers and blogs have outlined the need for the creation of multiple, TEMPDB files, same sized files, trace flags and the like. All of these configuration options increase the scalability of your SQL Server.
In an effort to simplify the tempdb configuration experience, SQL Server 2016 setup has been extended to configure various properties for tempdb for multi-processor environments.
Data Files
Note: If you specify a very large initial size or autogrowth value, ensure that Instant File Initialization is enabled for SQL Server service startup account.
Log File
A default value of 64MB is provided to so that the number of Virtual Log Files (VLFs) during initial creation is a small and manageable number and with appropriate size so that the unused log space can be reclaimed easily.
Enabling all these configuration settings as part of the standard setup experience allows one to deploy and run at peak scalability levels.
Command line setup parameters:
If you are installing SQL Server using command line or configuration file, the above options can be specified using several new parameters as highlighted in the example below:
Please refer to Install SQL Server 2016 from the Command Prompt for additional information on the new parameters.
The command line parameters for tempdb settings are only effective in the following setup scenarios (/action):
Install, CompleteImage (sysprep), InstallFailoverCluster, CompleteFailoverCluster (sysprep), RebuildDatabase
Example:
setup.exe /Q /ACTION=”INSTALL” /IACCEPTSQLSERVERLICENSETERMS /FEATURES=”SQL” /INSTANCENAME=”SQL2016″ .. /SQLTEMPDBFILECOUNT=”8″ /SQLTEMPDBFILESIZE=”16″ /SQLTEMPDBFILEGROWTH=”256″ /SQLTEMPDBDIR=”C:\tempdb” “D:\tempdb” /SQLTEMPDBLOGFILESIZE=”256″ /SQLTEMPDBLOGFILEGROWTH=”0″ /SQLTEMPDBLOGDIR=”E:\tempdblog”
‘It Just Runs Faster’ – Apply a new instance of SQL Server 2016 and setup assists in optimizing TEMPDB for your multi-processor environment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.