Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Temp database size and growth

Posted on by 345

Attached is the screenshot of the tempdb size and growth.

Is this Perfect or I should increase the growth % .

Command used for attached output : use tempdb then exec sp_helpfile

Please advice.

regards

tempdbSize.png

*This post is locked for comments

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Temp database size and growth

    Your settings are wrong. You need to have more TempDB data files, to avoid contention. Typically you have at least 4 TempDB files, and if you have an extremely large number of NUMA / CPU cores allocated to your SQL instance, then you may grow it further, so CPU threads could write to the files in a round-robin fashion.

    Also growth should never be percentage-based! You would typically set it to grow by chunks between 100 MB - 1000 MB, both for data and log. We have set 8 files with a total size at 80 GB as our TempDB data file and 10 GB as log file size as pre-allocation.

    Check the following blogs:

    https://blogs.msdn.microsoft.com/axsupport/2014/09/05/ax-performance-troubleshooting-checklist-part-1a-introduction-and-sql-configuration/

    https://blogs.msdn.microsoft.com/axsupport/2015/09/25/ax-performance-analyzing-key-sql-server-configuration-and-database-settings/

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,219 Super User 2024 Season 2 on at
    RE: Temp database size and growth

    Hi Mazherullah,

    I have split the thread where you posted this question as it was not related to the original question.

    To be able to know the best size for your tempDB related to AX activities, you need to do some monitoring on size and growth. I cannot suggest if the current size and growth is correct for your environment as I don't know how it is used.

    Note that growth in larger blocks is recommended. Standard SQL settings will auto growth in small portions which could lead to delays in responses.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans