Question

Have a dedicated DB server with 16 cores and 200+ GB of memory.

Use tempdb a lot but it typically stays under 4 GB

Recently added a dedicated SSD stripe for tempdb

Based on this page should create multiple files

Optimizing tempdb Performance

Understand multiple row files.

Here is my question:
Should I also create multiple tempdb log files?

It does say "create one data file for each CPU".
So my thought is that data means row (not log) files.

Était-ce utile?

La solution

No, as with all databases, SQL server can only use one log file at a time so there is no benefit at all in having multiple log files.

The best thing you can do with log files really is keep them on separate drives to the data files as they have different IO requirements, pre-size them so they don't have to auto grow and if they do have to autogrow, make sure they do so at a sensible level to manage the number of virtual log files that are created inside them.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top