You administer SQL Server 2022 on an Azure virtual machine that has 8 logical processors. tempdb has 8 data files. Data file 1 has an initial size of 4 GB and grows by 10 percent. Data files 2 to 8 each have an initial size of 8 MB and grow by 64 MB. The typical workload uses about 50 GB of tempdb data space. Monitoring shows that most tempdb allocations go to data file 1, and that the files autogrow repeatedly after every restart.
You must reconfigure the tempdb data files to meet the following requirements:
- Allocations must be spread evenly across all data files.
- tempdb must not need to autogrow to its typical working size after each restart.
- tempdb must still be able to grow during unplanned growth events.
Which configuration should you apply to the tempdb data files?
Three things are needed together. Equal initial sizes and equal growth increments keep proportional fill balanced across the files. An initial size that covers the typical workload removes repeated autogrow after each restart. Autogrow left enabled handles unplanned spikes. Only the configuration with 8 equal 8 GB files and identical 64 MB growth increments meets all three requirements; each other option breaks at least one.
- Not correct: Set data file 1 to 22 GB and the other 7 data files to 4 GB, with 64 MB autogrowth on every file. The source explains that proportional fill favours files with more free space, and the source shows that a larger file receives more of the writes. File 1 would receive more allocations than any other individual file, leaving allocations uneven.
- Not correct: Set each of the 8 data files to 8 GB, with autogrowth disabled on every file. The sizing is even and large enough. However, the source recommends keeping autogrow turned on for tempdb files so that space is available when unexpected growth happens, and this option turns it off.
- Not correct: Set each of the 8 data files to 8 MB, with 64 MB autogrowth on every file. The files are even, but the source warns that a too-small initial size makes tempdb autogrow to the size the workload needs every time the instance restarts. Preallocating space prevents this.
- Not correct: Set each of the 8 data files to 8 GB, with 64 MB autogrowth on file 1 and 1 GB on the others. The source advises using one identical growth increment across every tempdb data file so that growth stays balanced. With different increments, the files would differ in size after growth events and allocations would become uneven.
- Correct: Set each of the 8 data files to 8 GB, with 64 MB autogrowth on every file. Equal sizes and equal growth increments avoid allocation imbalance under proportional fill. The 64 GB total covers the roughly 50 GB typical workload, so no autogrow is needed after a restart. Autogrow stays enabled for unplanned growth, as the source recommends.
- tempdb Database - SQL ServerMicrosoft Learn
- Configure SQL Server resources for optimal performance: Optimize database storageMicrosoft Learn